1RK(4)                      Kernel Interfaces Manual                      RK(4)
2
3
4

NAME

6       rk - RK-11/RK05 disk
7

SYNOPSIS

9       /sys/conf/SYSTEM:
10            NRK  rk_drives # RK05
11
12       /etc/dtab:
13            #Name Unit# Addr   Vector Br Handler(s)      # Comments
14            rk    ?     177400 220    5  rkintr          # rk05
15
16       major device number(s):
17            raw: 15
18            block: 6
19       minor device encoding:
20            specifies drive: <rk_drive>
21

DESCRIPTION

23       Minor device numbers are drive numbers on one controller.  The standard
24       device names begin with ``rk'' followed by the drive  number  and  then
25       the  letter "h".  The character ? stands here for a drive number in the
26       range 0-7.
27
28       The block files access the disk via the system's normal buffering mech‐
29       anism  and  may  be  read  and  written without regard to physical disk
30       records.  There is also a `raw' interface  which  provides  for  direct
31       transmission  between  the disk and the user's read or write buffer.  A
32       single read or write call results in  exactly  one  I/O  operation  and
33       therefore  raw  I/O  is considerably more efficient when many words are
34       transmitted.  The names of the raw files conventionally begin  with  an
35       extra `r.'
36
37       In  raw I/O the buffer must begin on a word (even) boundary, and counts
38       should be a multiple of 512 bytes (a disk sector).  Likewise seek calls
39       should specify a multiple of 512 bytes.
40

DISK SUPPORT

42       The  rk  driver  does not support pseudo-disks (partitions).  Each file
43       rk?h refers to the entire drive  as  a  single  sequentially  addressed
44       file.  Each drive has 4872 512-byte blocks.
45
46       It's  not  clear  what one would do with one of these drives if one had
47       one ...
48

FILES

50       /dev/rk[0-7]h       block files
51       /dev/rrk[0-7]h      raw files
52       /dev/MAKEDEV        script to create special files
53       /dev/MAKEDEV.local  script to localize special files
54

SEE ALSO

56       hk(4), ra(4), ram(4), rl(4), rp(4), rx(4), si(4), xp(4), dtab(5), auto‐
57       config(8)
58

DIAGNOSTICS

60       rk%d:  hard  error  sn%d  er=%b ds=%b.  An unrecoverable error occurred
61       during transfer of the specified sector of  the  specified  disk.   The
62       contents  of the two error registers are also printed in octal and sym‐
63       bolically with bits decoded.  The error was either unrecoverable, or  a
64       large number of retry attempts could not recover the error.
65
66       rk%d: write locked.  The write protect switch was set on the drive when
67       a write was attempted.  The write operation is not recoverable.
68

BUGS

70       In raw I/O read and write(2) truncate file offsets  to  512-byte  block
71       boundaries,  and  write  scribbles  on  the  tail of incomplete blocks.
72       Thus, in programs that are likely to access raw  devices,  read,  write
73       and lseek(2) should always deal in 512-byte multiples.
74
75       DEC-standard error logging should be supported.
76
77       A  program to analyze the logged error information (even in its present
78       reduced form) is needed.
79
80
81
823rd Berkeley Distribution       August 20, 1987                          RK(4)
Impressum