From: Jerry Cooperstein <coop@axian.com>
To: il boba <il_boba@hotmail.com>, linux-kernel@vger.kernel.org
Subject: Re: what`s wrong?
Date: Wed, 24 Apr 2002 17:42:31 -0700 [thread overview]
Message-ID: <20020424174231.A19184@p3.attbi.com> (raw)
In-Reply-To: <F218eE3VsX7PVTdAMDm0000842f@hotmail.com> <20020424164056.GA15812@turbolinux.com>
On Wed, Apr 24, 2002 at 10:40:56AM -0600, Andreas Dilger wrote:
> On Apr 24, 2002 18:06 +0200, il boba wrote:
> > Is there anybody that can help me understand what`s wrong with this code?
......
Even with all this he's going to have trouble since his buffer is in
kernel space and the read is going to expect it to be in user-context...
Reading and writing files from within the kernel is almost never a good
idea and has been made difficult by design. He should look at what
he is trying to do and perhaps look for another interface, such as
use of ioctls, proc, seq_file, etc.. He probably doesn't need to
do this I/O from within the kernel and should rethink it.
Jerry Cooperstein <coop@axian.com>
Senior Consultant
Axian, Inc. <info@axian.com>
4800 SW Griffith Dr., Ste. 202, Beaverton, OR 97005 USA
http://www.axian.com/ Software Consulting and Training
prev parent reply other threads:[~2002-04-25 0:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-24 16:06 il boba
2002-04-24 16:40 ` Andreas Dilger
2002-04-25 0:42 ` Jerry Cooperstein [this message]
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=20020424174231.A19184@p3.attbi.com \
--to=coop@axian.com \
--cc=il_boba@hotmail.com \
--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
all inboxes | Powered by JetHome®