mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Raw access to block devices
@ 2001-11-17 15:44 Roy S.C. Ho
  2001-11-17 16:15 ` Peter T. Breuer
  0 siblings, 1 reply; 4+ messages in thread
From: Roy S.C. Ho @ 2001-11-17 15:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: scho

Dear all,

I would like to write a driver for a block device that
is better to be accessed directly without going
through the buffer cache. I read the source code raw.c
and learnt that linux does have raw I/O support.
However, it seems to me that the support only provides
a character device interface to users. Is there a
simple way to maintain the block device interface to
user programs / other parts of the kernel, while
bypassing the buffer cache system?

Since struct block_device_operations does not include
read or write operations, I have considered to
redirect the function pointers in filp->f_op to my own
routines when the device is opened. Is this an
appropriate solution? 

Thank you very much. And please kindly correct me if I
am wrong.

Regards,
Roy Ho

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-11-18  8:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-17 15:44 Raw access to block devices Roy S.C. Ho
2001-11-17 16:15 ` Peter T. Breuer
2001-11-18  8:15   ` Roy S.C. Ho
2001-11-18  8:39     ` Peter T. Breuer

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®