lkml.org 
[lkml]   [2002]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: what`s wrong?
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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