lkml.org 
[lkml]   [2004]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: set blksize of block device
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

-
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/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.071 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site