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