Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ch(4) [netbsd man page]

CH(4)							   BSD Kernel Interfaces Manual 						     CH(4)

NAME
ch -- SCSI media changer driver SYNOPSIS
ch* at scsibus? target ? lun ? DESCRIPTION
The ch driver is essentially an ioctl(2) interface to a robot on a SCSI bus - a device that will change media (e.g. tapes, CD-ROMs, etc) in and out of drives for that media. The chio(1) utility program uses this interface to manipulate such robots. FILES
/dev/chu SCSI bus media changer unit u /usr/include/sys/chio.h DIAGNOSTICS
ch%d: waiting %d seconds for changer to settle... Some changers require a long time to settle out, to do tape inventory, for instance. ch%d: offline The changer is not responding. ch%d: warning, READ ELEMENT STATUS avail != count ch%d: could not sense element address page ch%d: could not sense capabilities page SEE ALSO
chio(1), ioctl(2), cd(4), intro(4), scsi(4), st(4) AUTHORS
Jason R. Thorpe BSD
June 10, 1998 BSD

Check Out this Related Man Page

mc(7)							 Miscellaneous Information Manual						     mc(7)

NAME
mc - SCSI medium changer interface DESCRIPTION
The medium changer (mc) interface provides a means for applications to control the robotic medium changers found in tape and optical libraries or jukeboxes. The mc driver may be used for any supported Small Computer System Interface (SCSI) medium changer devices, and potentially for other SCSI- compliant changer devices. Applications use Unix I/O calls (open, close, ioctl) to access changer devices, by means of device special files. Changer device special files are typically created in the /dev/changer directory by the dsfmgr utility on system startup. Refer to the dsfmgr(8) Reference Page and the System Administration Guide if you need to recreate device special files that are deleted acciden- tally. The rz(7) and tz(7) Reference Pages provide information on how device names map to SCSI CAM lun addresses. The format of a a medium changer device special file name is: /dev/changer/mcN where N is an integer representing the instance of the device that is assigned by dsfmgr at system startup. The driver supports a number of ioctl commands that move media in the library or return information about the media. See the header file /usr/sys/include/io/cam/mchanger.h for the ioctl commands and their associated structs. An application opens the device special file corresponding to the changer device, executes appropriate ioctl commands, then closes the device special file. Typically, changer devices are not shared between applications, but this is not due to any limitation on the changer or mc driver, but rather to the possibility of confusing which media belong to which application. An application on a non-cluster system can assure that only it can use a changer by opening that changer's device special file for exclusive access, by including the O_EXCL flag in the open call, and leaving the file open until the application is completely done using the changer. However, if the changer is on a shared bus in a cluster, it is possible for an application on each cluster member to open the device, even if each specifies O_EXCL, because that only grants exclusive access on the local host. In this case it may be useful for the application to use a SCSI device reser- vation to assure exclusive access. (An ioctl command is provided to facilitate reserving a changer.) Refer to the Software Product Description for a list of supported devices under the heading of SCSI CAM Layered Components. Facilities are provided in the operating system to allow the addition of some third-party SCSI-compliant medium changers. Under Digital Unix v4.0 and later, refer to the ddr_config(8) and ddr.dbase(4) reference pages for instructions. Under Digital Unix v3.x, new devices can be added to /sys/data/cam_data.c. See that file for instructions. FILES
changer device special file header file for changer ioctl commands RELATED INFORMATION
Commands: mcutil(1), mcicap(4), dsfmgr(8), scu(8), uerf(8) Interfaces: op(7), tz(7), SCSI(7) delim off mc(7)
Man Page