From 2c6802e80f2bc7be660981b183fe89ecd72061ce Mon Sep 17 00:00:00 2001 From: aiju Date: Fri, 15 Apr 2011 21:01:29 +0200 Subject: added io/seg utility --- sys/man/1/seg | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 sys/man/1/seg (limited to 'sys/man/1/seg') diff --git a/sys/man/1/seg b/sys/man/1/seg new file mode 100644 index 000000000..3fd87f2e2 --- /dev/null +++ b/sys/man/1/seg @@ -0,0 +1,51 @@ +.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. -- cgit v1.2.3