public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* EFAULT from file read.
@ 2001-09-18  9:16 David Chow
  2001-09-18 12:53 ` Richard B. Johnson
  0 siblings, 1 reply; 4+ messages in thread
From: David Chow @ 2001-09-18  9:16 UTC (permalink / raw)
  To: linux-kernel

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.

regards,

David Chow

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-09-19 10:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-18  9:16 EFAULT from file read David Chow
2001-09-18 12:53 ` Richard B. Johnson
2001-09-18 13:04   ` Alexander Viro
2001-09-19 10:24     ` David Chow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox