From mint-bounce@lists.fishpool.fi Mon Sep 12 01:40:05 2005 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de Date: Mon, 12 Sep 2005 01:37:55 +0200 From: Ingo Schmidt Reply-To: Ingo Schmidt X-Priority: 3 (Normal) Message-ID: <102530818.20050912013755@der-ingo.de> To: MiNT-Liste Subject: [MiNT] /kern documentation MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 X-Provags-ID: kundenserver.de abuse@kundenserver.de login:58e864169f3ef71bae3e2b831e61e1a6 X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: ich@der-ingo.de Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: X-Virus-Scanned: by amavisd-new at relay.boerde.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de X-Spam-Status: No, hits=0.0 tagged_above=-50.5 required=7.0 tests=AWL, BAYES_00, PRIORITY_NO_NAME X-Spam-Level: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by wh58-508.st.uni-magdeburg.de id j8BNe5av004981 Hi all! I would like to know what all the values in /kern//meminfo mean. Also, I think there is a bug there. Look at this line: 0000018D-00002000 397 ---- 0000002D 6356992:00 0 After the 397 the next two characters are wrong! If I look in the source in kernget.c I am totally confused: crs += ksprintf (crs, len - (crs - info->buf), "%08x-%08x %3u %c%c%c%c%c%c %08x %02lu:%02lu %lu\n", (ulong) p->p_mem->addr[i], (ulong) p->p_mem->addr[i] + m->len + 1, (unsigned) m->links, m->mflags & M_KEEP ? 'k' : '-', m->mflags & M_SHARED ? 's' : '-', m->mflags & M_FSAVED ? 'f' : '-', m->mflags & M_SHTEXT_T ? 't' : '-', m->mflags & M_SHTEXT ? 's' : '-', m->mflags & M_CORE ? 'c' : m->mflags & M_ALT ? 'a' : m->mflags & M_SWAP ? 's' : m->mflags & M_KER ? 'k' : '-', 0UL, 0UL, 0UL); I am not a good C coder, but to me it seems, that in the format string, 13 arguments are present, while only 12 get passed in the end. Does this maybe cause the weird behaviour? Or is everything correct and I am missing something? And last but not least: What is the use of meminfo anyway? Which programs are using this? Or is it meant to be read by humans, just to have something nice to look at? ;-) Same applies to all the other things in /kern// What do I find in status? statm? I know, writing docs is a horrible and time consuming task, but if there was at least a little bit in the source. At least a few comments, would be nice. Cheers, Ingo =;->