aboutsummaryrefslogtreecommitdiff
path: root/sys/mtio/README
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/mtio/README
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/mtio/README')
-rw-r--r--sys/mtio/README45
1 files changed, 45 insertions, 0 deletions
diff --git a/sys/mtio/README b/sys/mtio/README
new file mode 100644
index 00000000..143917e6
--- /dev/null
+++ b/sys/mtio/README
@@ -0,0 +1,45 @@
+MTIO -- Magtape i/o. This directory contains the FIO device driver for the
+magtape devices plus MTOPEN (used to open a magtape device and hook it to
+FIO) plus a few other routines. See ./doc for additional info.
+
+
+USER ROUTINES
+
+ yes|no = mtfile (fname) # Is fname a magtape device?
+ yes|no = mtneedfileno (mtname) # No file number given?
+ gty = mtcap (mtname)
+ mtfname (mtname, file, outstr, maxch)
+
+ mtparse (mtname, device, fileno, recno, attrl, maxch)
+ mtencode (mtname, maxch, device, fileno, recno, attrl)
+
+ fd = mtopen (mtname, acmode, bufsize)
+ mtrewind (mtname, initcache)
+ mtposition (mtname, file, record)
+
+ Use CLOSE to close a file descriptor opened with mtopen.
+ Use GTYCLOSE to close a termcap descriptor opened with mtcap.
+ MTNAME is the full magtape device specification, i.e, "mt[...]".
+
+
+
+SYSTEM ROUTINES
+
+ mtallocate (mtname)
+ mtdeallocate (mtname, rewind_tape)
+ mtstatus (out, mtname)
+ mtclean (level, stale, out)
+
+
+
+FIO DRIVER
+
+ zopnmt (iodev, acmode, mtchan)
+ zclsmt (mtchan, status)
+ zardmt (mtchan, buf, maxbytes, offset)
+ zawrmt (mtchan, buf, nbytes, offset)
+ zawtmt (mtchan, status)
+ zsttmt (mtchan, what, lvalue)
+
+
+All other procedures are internal to the interface.