On Fri, Sep 29, 2000 at 08:49:06PM +0000, [EMAIL PROTECTED] 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 [EMAIL PROTECTED]:/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
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message