On Wed, 2009-06-03 at 13:15 +0800, Zhang Shukun wrote:
you know in the linux userspace , i can compile and run the
program to get the name or inode number of the files in the /bin directory.
i want to know how to do this in linux kernelspace ? thank you very much!
Please see the following helpful reference topic:
It's likely that you can do what you need but without opening files from
within the kernel. If it's simply an academic project or for interest,
then I suggest asking the kernelnewbies.org
folks for help.