From owner-freebsd-current Fri Sep 29 12:19:41 2000 Delivered-To: freebsd-current@freebsd.org Received: from femail1.sdc1.sfba.home.com (femail1.sdc1.sfba.home.com [24.0.95.81]) by hub.freebsd.org (Postfix) with ESMTP id 2306737B61F for ; Fri, 29 Sep 2000 12:19:35 -0700 (PDT) Received: from beastie.localdomain ([24.19.158.41]) by femail1.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20000929191923.UGLP6495.femail1.sdc1.sfba.home.com@beastie.localdomain>; Fri, 29 Sep 2000 12:19:23 -0700 Received: (from brian@localhost) by beastie.localdomain (8.9.3/8.8.7) id MAA76455; Fri, 29 Sep 2000 12:21:01 -0700 (PDT) (envelope-from brian) Date: Fri, 29 Sep 2000 12:21:01 -0700 From: "Brian O'Shea" To: mirko.viviani@rccr.cremona.it Cc: John Polstra , current@FreeBSD.ORG Subject: Re: procfs info. Message-ID: <20000929122101.U622@beastie.localdomain> Reply-To: boshea@ricochet.net Mail-Followup-To: mirko.viviani@rccr.cremona.it, John Polstra , current@FreeBSD.ORG References: <200009291849.UAA28186@rccr1.rccr.cremona.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <200009291849.UAA28186@rccr1.rccr.cremona.it>; from mirko.viviani@rccr.cremona.it on Fri, Sep 29, 2000 at 08:49:06PM +0000 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Sep 29, 2000 at 08:49:06PM +0000, mirko.viviani@rccr.cremona.it wrote: > You wrote: > > > > I need to know the exact format of the /proc/*/cmdline of > > > FreeBSD. Actually I'm using 4.1 and I have discovered that at the > > > end of cmdline file there are always 2 NULL characters. > > > > I'm not seeing that on my 4.x-stable system from about a month ago: Hmm, but look at this: [panic:/root]# uname -a FreeBSD panic.localdomain 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat Sep 16 16:24:39 PDT 2000 root@panic.localdomain:/usr/obj/usr/local/cvs up/current/src/sys/PANIC i386 [panic:/root]# hd /proc/0/cmdline 00000000 73 77 61 70 70 65 72 00 00 00 00 00 00 00 00 00 |swapper.........| 00000010 [panic:/root]# hd /proc/10/cmdline 00000000 69 64 6c 65 00 65 72 00 00 00 00 00 00 00 00 00 |idle.er.........| 00000010 [panic:/root]# hd /proc/11/cmdline 00000000 73 6f 66 74 69 6e 74 65 72 72 75 70 74 00 00 00 |softinterrupt...| 00000010 [panic:/root]# hd /proc/12/cmdline 00000000 69 72 71 31 34 3a 20 61 74 61 30 00 00 00 00 00 |irq14: ata0.....| 00000010 [panic:/root]# hd /proc/13/cmdline 00000000 69 72 71 31 35 3a 20 61 74 61 31 00 00 00 00 00 |irq15: ata1.....| 00000010 [panic:/root]# hd /proc/14/cmdline 00000000 69 72 71 31 31 3a 20 75 68 63 69 30 2b 00 00 00 |irq11: uhci0+...| 00000010 [panic:/root]# hd /proc/15/cmdline 00000000 69 72 71 36 3a 20 66 64 63 30 00 00 00 00 00 00 |irq6: fdc0......| 00000010 [panic:/root]# hd /proc/16/cmdline 00000000 69 72 71 31 3a 20 61 74 6b 62 64 30 00 00 00 00 |irq1: atkbd0....| 00000010 There seem to be lots of nulls at the end of the names of kernel threads (padding their names to 16 bytes). Not that it matters, but it's strange. -brian -- Brian O'Shea boshea@ricochet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message