struct rule{
int proto;
char source[15];
}instance;
I have written this structure into a file in user space ,say rule.txt .
Say this file contains 10 records , i. e 10 instances of the above
structure.Now I would like to read the same file in kernel space by a
kernel module by reading 1 record at a time. How can i do this ?
Is there any other way to do this without using files ? My objective
is to read the 10 records from kernel space one record at a time and
not the individual bytes.
Amit Saha
http://amitsaha.in.googlepages.com
http://codejourno.blogspot.com
+91 9903140286
---------------------------------
Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it
NOW