Re: How to get file info of a directory in linux kernel space?

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

 



On Wed, 2009-06-03 at 13:15 +0800, Zhang Shukun wrote:

> you know in the linux userspace , i can compile and run the following
> 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!

Hi,

Please see the following helpful reference topic:

http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad

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.

Jon.


_______________________________________________
Fedora-kernel-list mailing list
Fedora-kernel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-kernel-list

[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux