Denis Vlasenko wrote:
On Thursday 28 October 2004 05:25, Lei Yang wrote:
Or in other words, is there generic routines for block devices such that
we could:
get (set) block size of a block device;
read an existing block (e.g. block 4);
write an existing block (e.g. block 5);
Can you stick to "reply below quote" style please?
OK
If nobody could answer this question, what about another one? Is there
a system call or a kernel interface that would allow me to write a
Can you use read, write and seek system calls?
--
vda
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).
Any comments?
Thanks,
Lei
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/