Re: kernel command line

2001-05-18 Thread Roland McGrath
> Ah, yes. I see my error now. But just the one, eh? I guess we'll have to keep working on you to attain full repetence. > Every task gets associated with it a "restricted name". (Alternative > name suggestions welcome.) This is a send right, and I don't envision > anyone ever sending messag

Re: kernel command line

2001-05-18 Thread Thomas Bushnell, BSG
Roland McGrath <[EMAIL PROTECTED]> writes: > I have been assuming that in your proposal task_create completes without > waiting for this notification to be received and processed. If the > notification is a message containing the task port of the creator task, > then this will arrive as MACH_POR

Re: kernel command line

2001-05-17 Thread Roland McGrath
> The original Hurdish ancestor only has to remain alive for long enough > for proc to establish its record and copy the owner ID. If the kernel > actively notifies proc as soon as the process is created with this > information, we can be guaranteed it gets captured and recorded. I have been ass

Re: kernel command line

2001-05-15 Thread Thomas Bushnell, BSG
Roland McGrath <[EMAIL PROTECTED]> writes: > > That's correct, but in the model of just "return null if the parent is > > gone", why is this a problem? > > This model makes it impossible to guarantee an assignment of the task to > its original Hurdish ancestor. I think that guarantee is the mos

Re: kernel command line

2001-05-15 Thread Roland McGrath
> That's correct, but in the model of just "return null if the parent is > gone", why is this a problem? This model makes it impossible to guarantee an assignment of the task to its original Hurdish ancestor. I think that guarantee is the most valuable part of the feature, because it allows unre

Re: kernel command line

2001-05-15 Thread Thomas Bushnell, BSG
Roland McGrath <[EMAIL PROTECTED]> writes: > > * Mach needs a facility to find out what task is the parent of > > a given task. > > I'm not sure if there was a particular motivation for this other than the > kind of thing in proc that I suggested. Also a process accounting motivation here

Re: kernel command line

2001-05-15 Thread Thomas Bushnell, BSG
Marcus Brinkmann <[EMAIL PROTECTED]> writes: > Yes, this would work out the way you described it. How about Mach keeping > track of the task hierarchy? I am not sure how exactly this would need to > be implemented. Mach could keep a pointer to the parent task in the task > structure. Someone

Re: kernel command line

2001-05-15 Thread Roland McGrath
> * Mach needs a facility to find out what task is the parent of > a given task. I'm not sure if there was a particular motivation for this other than the kind of thing in proc that I suggested. I'm not sure there is a reason to do the kernel interface I suggested (propagating a value that pr

Re: kernel command line

2001-05-14 Thread Marcus Brinkmann
On Mon, May 14, 2001 at 02:59:43AM -0400, Roland McGrath wrote: [msgport, boot command line etc] What you write makes sense. I didn't notice msgport before. It looks like it's a great tool. > > BTW, what output can we expect from a pstree on the Hurd? Will the hierarchy > > of a sub-Hurd show

Re: kernel command line

2001-05-13 Thread Roland McGrath
> We don't need to rely on the PID 2 info: > > /gnu/root/D1:2- 7 153M 9.67M 0:00.00 0:12.43 /boot/gnumach.gz root=hd2s5 > > So, the kernel is clearly identified by the program name at least. That is not really clean or robust. I mean: (sh -c "exec -a /boot/gnumach.gz /bin/sleep

Re: kernel command line

2001-05-07 Thread Marcus Brinkmann
On Mon, May 07, 2001 at 06:19:42PM -0700, Thomas Bushnell, BSG wrote: > Roland McGrath <[EMAIL PROTECTED]> writes: > > > > Makes perfect sense. Looking at the output of ps to get the kernel command > > > line is a natural thing to do, and much better than /proc/cmdline indeed. > > > I don't see

Re: kernel command line

2001-05-07 Thread Thomas Bushnell, BSG
Roland McGrath <[EMAIL PROTECTED]> writes: > > Makes perfect sense. Looking at the output of ps to get the kernel command > > line is a natural thing to do, and much better than /proc/cmdline indeed. > > I don't see any explicit need for a fancier programmable interface either. > > Well, I'm no

Re: kernel command line

2001-05-06 Thread Roland McGrath
> Makes perfect sense. Looking at the output of ps to get the kernel command > line is a natural thing to do, and much better than /proc/cmdline indeed. > I don't see any explicit need for a fancier programmable interface either. Well, I'm not entirely sanguine about the "PID 2 is the kernel" co

Re: kernel command line

2001-05-06 Thread Marcus Brinkmann
On Sat, May 05, 2001 at 08:22:42PM -0400, Roland McGrath wrote: > The simplest kludge is to just use "ps --fmt=%command 2" or the libps > equivalent thereof. PID 2 is always the kernel task, and the existing init > hack diddles things so that the kernel command line appears like a normal > proces

Re: kernel command line

2001-05-05 Thread Roland McGrath
> I was wondering about host_get_boot_info and if it could be used to provide > /proc/cmdline in Neals procfs. I don't know about any standard interface to > get a kernel command line. I don't recall ever having noticed the host_get_boot_info interface. That certainly seems like a natural thing

Re: kernel command line

2001-05-04 Thread Marcus Brinkmann
On Fri, May 04, 2001 at 10:26:18PM +0200, Marcus Brinkmann wrote: > This can be pasted into the bootscript via ${kernel-command-line}, and > passed to init via -K. I think it can be passed to init by adding this to > --bootflags of the root filesystem. Can someone confirm this? > > /hurd/ext2fs.