Re: file read/write within device driver

Stephen C. Tweedie (sct@redhat.com)
Thu, 29 Apr 1999 20:53:48 +0100 (BST)


Hi,

On Mon, 26 Apr 1999 11:21:05 -0700 (PDT), David Beccue
<David@Beccue.com> said:

> And to be more precise, I don't really want to do "file" I/O as much
> as I want to do "block device" I/O. I want to write to /dev/sdb3 or
> a loopback driver, not actually an ext2 file.

Then look at any of the existing filesystem code in (say) ext2 or
isofs as an example. The filesystems make extensive use of buffer
cache IO from kernel space, so you should find plenty of relevant
examples.

--Stephen

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