|FIRMLOAD(9F)||Kernel Functions for Drivers||FIRMLOAD(9F)|
*drvname, const char *imgname,
fh, off_t offset, void
*buf, size_t size);
firmload. This is used as the subdirectory holding the firmware images.
firmloadprovides a simple and convenient API for device drivers to load firmware images from files residing in the file system that are necessary for the devices that they control. It is primarily intended for devices without non-volatile firmware memory, which usually require the driver to load a firmware image at attach time. Firmware images reside in sub-directories, one for each driver, in the namespace "firmware" in the system default module search path as described in system(5).
The following functions are provided by the
firmware_read() will either read as much data as requested or fail, there are no short reads.
firmware_open() function returns zero and stores a firmware handle in fhp. Otherwise a non-zero error code is returned.
firmware_read() will return
zero on success and buf will be filled with
size bytes of data. On failure -1 is returned.
the size of a firmware image.
firmware_close() will always return
|January 22, 2016||OmniOS|