Date: Fri, 29 Sep 2000 12:21:01 -0700 From: "Brian O'Shea" <boshea@ricochet.net> To: mirko.viviani@rccr.cremona.it Cc: John Polstra <jdp@polstra.com>, current@FreeBSD.ORG Subject: Re: procfs info. Message-ID: <20000929122101.U622@beastie.localdomain> In-Reply-To: <200009291849.UAA28186@rccr1.rccr.cremona.it>; from mirko.viviani@rccr.cremona.it on Fri, Sep 29, 2000 at 08:49:06PM %2B0000 References: <200009291849.UAA28186@rccr1.rccr.cremona.it>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000929122101.U622>