I am having trouble in reading a file in the kernel space using the
file->f_op->read call, everything is ok. I start off file->f_pos = 0 . I
also did a mntget to the super block before I call
"file=dentry_open(.....)" . I intend to open the file in read only mode.
What can be wrong? I have also check the inode->i_size is large enough
for me to just read 8 bytes from the file. I keep having EFAULT error
from the read call... also before calling mntget, also did a dget to the
dentry. Any help is welcomed. Thanks.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Sep 23 2001 - 21:00:24 EST