[lkml]   [2001]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectEFAULT from file read.
Dear all,

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.


David Chow
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:03    [W:0.037 / U:1.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site