intro - introductrion to special devices


#include <atod_p.h>
#include <pclock_p.h>
#include <dtoa_p.h>
#include <inbfr_p.h>
#include <hco_p.h>
#include <termio_p.h>
#include <stdio_p.h>
#incldue <ioctl_p.h>
#include <signal_p.h>


This section describes special devices and the standard interface for controlling the devices. The subroutines in this section are divided into two classes:

Device routines supported by the PARASITE system.

Device routines either added or modified in the PARSITE-FS system

Devices are accessed either through calls to user-level functions (see Section 3U) or through calls to a standard device-independent interface (described here). User-level functions control common device operations. The standard interface, on the other hand, allows all aspects of a device that are controllable to be accessible to the user. Therefore, device operations that are not implemented in section 3U may be controlled through the standard interface.

The standard interface to the device drivers consists of the following calls: dopen, dclose, dread, dwrite, and diotctl. Using this scheme, the user calls the subroutine dopen with the name of the device to be controlled and is returned a file descriptor to be used in all subsequent references to the device. Reading and writing is done through the routines dread and dwrite while all other control passes through the dioctl subroutine. Finally, the device is closed by calling dclose.


intro(1F) , intro(2F) , intro(3F)