Re: How to get process name from pid?

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

 



Hareesh Nagarajan wrote:

Hi,

Any idea how I can get the process name from the pid from within the kernel? Is there a function that does this?

Im just a newbie, but Id be suprised if there were one already written.
the kernel doesnt much care about the process name, thats for user-land
to discern from contents of /proc (btw, you could read the code
to see how it does it)

Thanks,



Hareesh

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



--
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