INTRO(4) | Device and Network Interfaces | INTRO(4) |
Intro
, intro
— introduction to special files
This section describes various device and network interfaces available on the system. The types of interfaces described include character and block devices, STREAMS modules, network protocols, file systems, and ioctl requests for driver subsystems and classes.
This section contains the following major collections:
This section describes special files that refer to specific hardware peripherals and device drivers. STREAMS device drivers are also described. Characteristics of both the hardware device and the corresponding device driver are discussed where applicable.
An application accesses a device through that device's special file. This section specifies the device special file to be used to access the device as well as application programming interface (API) information relevant to the use of the device driver. All device special files are located under the /devices directory. The /devices directory hierarchy attempts to mirror the hierarchy of system busses, controllers, and devices configured on the system. Logical device names for special files in /devices are located under the /dev directory. Although not every special file under /devices will have a corresponding logical entry under /dev, whenever possible, an application should reference a device using the logical name for the device. Logical device names are listed in the FILES section of the page for the device in question.
This section also describes driver
configuration where applicable. Many device drivers have a driver
configuration file of the form
driver_name.conf
associated with them (see
driver.conf(5)). The
configuration information stored in the driver configuration file is
used to configure the driver and the device. Driver configuration files
are located in /kernel/drv and
/usr/kernel/drv. Driver configuration files for
platform dependent drivers are located in
/platform/`uname -i`/kernel/drv where
`uname -i` is the output of the
uname(1) command with the
-i
option.
Some driver configuration files may contain user configurable properties. Changes in a driver's configuration file will not take effect until the system is rebooted or the driver has been removed and re-added (see rem_drv(8) and add_drv(8)).
The Internet protocol family, described in
inet(4P), is the primary protocol
family supported by SunOS, although the system can support a number of
others. The raw interface provides low-level services, such as packet
fragmentation and reassembly, routing, addressing, and basic transport
for socket-based implementations. Facilities for communicating using an
Internet-family protocol are generally accessed by specifying the
AF_INET
address family when binding a socket;
see socket(3SOCKET) for
details.
Major protocols in the Internet family include:
SOCK_RAW
type sockets within the
AF_INET
domain.SOCK_STREAM
type sockets.SOCK_DGRAM
type sockets.ioctl(2), Intro(3), socket(3SOCKET), st(4D), mtio(4I), streamio(4I), arp(4P), icmp(4P), inet(4P), ip(4P), tcp(4P), udp(4P), driver.conf(5), add_drv(8), rem_drv(8)
System Administration Guide: IP Services
STREAMS Programming Guide
Writing Device Drivers
March 10, 2023 | OmniOS |