* null pointer error in raw device I/O from kernel threads
@ 2002-03-15 2:54 Andy Tai
0 siblings, 0 replies; only message in thread
From: Andy Tai @ 2002-03-15 2:54 UTC (permalink / raw)
To: linux-kernel; +Cc: atai
Hi, I am trying to do I/O to raw devices from within
kernel threads. I got null pointer error because the
raw device code references current->mm, but for kernel
threads, current->mm is 0 (NULL). I tried to force it
to use current->active_mm but the I/O operation
returns EFAULT (-14).
Any advice on how to make raw device I/O work from
kernel threads is appreciated.
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-03-15 2:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-15 2:54 null pointer error in raw device I/O from kernel threads Andy Tai
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®