Welcome! Log In Create A New Profile

Advanced

Fetch inode of a file from linux kernel module

Posted by Snehal Desai 
Fetch inode of a file from linux kernel module
March 18, 2014 10:31AM
Hello,
I want to fetch inode of a file from linux kernel module. I know name of the file. I tried using stat function but because sys/stat.h header file is not present in my present working directory it shows ' No such file or directory'. I also tried path_lookup function. It gives 'Implicit Declaration Error' as namei.c does not exist in my present working directory.
Please suggest me how to add those header files or any other way to get the inode.
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 4 plus 15?
Message: