Denis Vlasenko wrote:...
...Can you use read, write and seek system calls?
Not really, as I've explained, I want to do all these stuff in kernel space. More specifically, I want to write a newbie kernel module. In this module, I'll do something with a raw block device (with no filesystem). For example, I want to do block I/O operations on ramdisk, and I want to set the block size of ramdisk to whatever value I want (power of 2 of course).
Pick up a copy of Linux Device Drivers by Rubini & Corbet (O'Reilly, 2001) and start with the example ramdisk block driver in chapter 12.
-- Todd
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/