Newbie kernel buffer question

From: Gibson, Chuck (Chuck_Gibson@adaptec.com)
Date: Fri Sep 06 2002 - 16:28:22 EST


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/



This archive was generated by hypermail 2b29 : Sat Sep 07 2002 - 22:00:30 EST