lkml.org 
[lkml]   [2002]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectNewbie kernel buffer question
Date
I am new to Linux (but not kernel development) and am developing a
kernel-mode driver
that needs to read/write a raw disk device. I have been unable to find a
way to map a
kernel buffer for use with block_read() and/or block_write().
Are there alternate calls to block_read/write that will allow use of a
kernel-mode buffer,
or can it be done with MMAP? I am considering a temp hack of having a user
process
do an OPEN on my device and pass a user-space buffer to me for my use. Note
that
the driver does NOT use the normal driver interface, but is an autonomous
driver.

Thanks for any help!

________________
Chuck Gibson
Principal Engineer
Corporate Technology Group
Adaptec, Inc.
(408) 957-2084
cgibson@corp.adaptec.com

-
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:28    [W:0.024 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site