Getting fd list of all processes in the system

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

 



Hello,

I want to get the information of fd (file descriptor)
of all the processes in the system. I mean that the
list of file names which is currently opened by a 
process is needed.

I think I can get it by checking the /proc/<PID>/fd 
directory in the user level. But what I want is 
to get it in kernel level (kernel module)

I think there must some data structures that keep
the list of working processes in the system and also
data strcutures that keep file descriptors which is
currently opened and pointing a file.

Please help me if you know something. Thank you
verh much.

 - Seongsu


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