what would be a better way to find the init task? On Mon, 1 Nov 2004 13:43:19 +0000, Jon Masters <jonmasters@xxxxxxxxx> wrote: > On Sat, 30 Oct 2004 19:28:11 -0400, Brandon Niemczyk > <bniemczyk@xxxxxxxxx> wrote: > > > I'm also a newbie, but It looks to me like it's just finding the init > > process and then printing some info about it. Is this actually in the > > kernel or is it part of a tutorial of sorts? > > It's an Intel specific module which displays some statistics as you > mentioned above. By accessing the thread_struct in this way it's > assuming this running on an x86 box. It's also possibly badly written > since it doesn't need to locate the init_task in this fashion. > > Jon. > -- Brandon Niemczyk http://bniemczyk.doesntexist.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/