Re: getting pids on 2.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 31, 2005 at 03:26:01PM -0800, Jed Brazos hit keys to express the following:
> Thanks,
>  This did what I needed:
> 
> 
>    read_lock(&tasklist_lock);
>      do_each_thread(g,p){
>       touch_nmi_watchdog();
>         printk(" p=%d\n",p->pid);
>      } while_each_thread(g,p);
>    read_unlock(&tasklist_lock);
Thanks. I did not know of these.

-- 
Once, adv.:
	Enough.
		-- Ambrose Bierce, "The Devil's Dictionary"

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux