blob: 1e17b6640d904d53d1bbb4b4a7b83b3ea5e3141d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
.TH SEG 1
.SH NAME
seg \- access a named segment
.SH SYNOPSIS
.B seg
[
.B -WLrw
]
.I segment
.I segment-size
.I offset
[
.I value
]
.SH DESCRIPTION
.B seg
accesses a named segment as provided by e.g. certain drivers.
The operation to be performed is selected with
.B -r
and
.B -w
for reading and writing, respectively.
The default operation size is a byte.
C style notation for integers (e.g.
.B 0x42
or
.BR 023 )
is accepted for the
.IR segment-size ,
.IR offset
and
.I value
parameters.
.PP
.TP
.B -W
Perform a word (16 bit) operation
.TP
.B -L
Perform a long / double word (32 bit) operation.
.SH SOURCE
.B /sys/src/cmd/seg.c
.SH SEE ALSO
.IR io (1)
.SH BUGS
No check of the
.I segment-size
and
.I offset
parameters is performed whatsoever.
Odd values may cause the front to fall off.
.SH HISTORY
.I Seg
first appeared in 9front (April, 2011).
|