Raw vs. block device. I'm confused.
ron%brl-vgr at sri-unix.UUCP
ron%brl-vgr at sri-unix.UUCP
Thu Jan 12 15:18:07 AEST 1984
From: Ron Natalie <ron at brl-vgr>
In one word..."buffering". A io on a block device is always done into
a buffer in the kernel. A raw disk io is done directly into the buffer
the user passed. Of course raw is faster if you are looking at a block
and then throwing it away. You don't need the buffer cache and you don't
need all that copying. There are constraints however. Since the peripheral
really transfers directly into the user buffer the number of characters
the user requested it may not work. Most peripherals require word align
ments, various offsets and minimum granularities. ADB is probably going
away because you are not reading the beginning of a physical disk block,
or you are not reading a whole block.
-ROn
More information about the Comp.unix
mailing list