BSD 3 development
[unix-history] / usr / man / man4 / rk.4
CommitLineData
16773074
BJ
1.TH RK 4
2.SH NAME
3rk \- RK-11/RK03 or RK05 disk
4.SH DESCRIPTION
5.I Rk?
6refers to an entire disk as a single sequentially-addressed
7file.
8Its 256-word blocks are numbered 0 to 4871.
9Minor device numbers are drive numbers on one controller.
10.PP
11The
12.I rk
13files
14discussed above access the disk via the system's normal
15buffering mechanism
16and may be read and written without regard to
17physical disk records.
18There is also a `raw' interface
19which provides for direct transmission between the disk
20and the user's read or write buffer.
21A single read or write call results in exactly one I/O operation
22and therefore raw I/O is considerably more efficient when
23many words are transmitted.
24The names of the raw RK files
25begin with
26.I rrk
27and end with a number which selects the same disk
28as the corresponding
29.I rk
30file.
31.PP
32In raw I/O the buffer must begin on a word boundary,
33and counts should be a multiple of 512 bytes
34(a disk block).
35Likewise
36.I seek
37calls should specify a multiple of 512 bytes.
38.SH FILES
39/dev/rk?, /dev/rrk?
40.SH BUGS
41In raw I/O
42.I read
43and
44.IR write (2)
45truncate file offsets to 512-byte block boundaries,
46and
47.I write
48scribbles on the tail of incomplete blocks.
49Thus,
50in programs that are likely to access raw devices,
51.I read, write
52and
53.IR lseek (2)
54should always deal in 512-byte multiples.