Visible to Intel only — GUID: hax1655971656556
Ixiasoft
Visible to Intel only — GUID: hax1655971656556
Ixiasoft
7.7.1.2. Register a Character Device
int alt_dev_reg (alt_dev* dev)
This function takes a single input argument, which is the device structure to register. The return value is zero upon success. A negative return value indicates that the device cannot be registered.
After a device is registered with the HAL file system, you can access it through the HAL API and the ANSI C standard library. The node name for the device is the name specified in the alt_dev structure.
For more information, refer to the Developing Programs Using the Hardware Abstraction Layer section.