From: David Chow <davidchow@rcn.com.hk>
To: linux-kernel@vger.kernel.org
Subject: EFAULT from file read.
Date: Tue, 18 Sep 2001 17:16:31 +0800 [thread overview]
Message-ID: <3BA710EF.FC38A28B@rcn.com.hk> (raw)
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
next reply other threads:[~2001-09-18 9:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-18 9:16 David Chow [this message]
2001-09-18 12:53 ` EFAULT from file read Richard B. Johnson
2001-09-18 13:04 ` Alexander Viro
2001-09-19 10:24 ` David Chow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3BA710EF.FC38A28B@rcn.com.hk \
--to=davidchow@rcn.com.hk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox