Xenomai API
2.5.6.1
|
Functions | |
int | a4l_register_drv (a4l_drv_t *drv) |
Register an Analogy driver. | |
int | a4l_unregister_drv (a4l_drv_t *drv) |
Unregister an Analogy driver. |
Analogy driver registration / unregistration
In a common Linux char driver, the developer has to register a fops structure filled with callbacks for read / write / mmap / ioctl operations.
Analogy drivers do not have to implement read / write / mmap / ioctl functions, these procedures are implemented in the Analogy generic layer. Then, the transfers between user-space and kernel-space are already managed. Analogy drivers work with commands and instructions which are some kind of more dedicated read / write operations. And, instead of registering a fops structure, a Analogy driver must register some a4l_driver structure.
int a4l_register_drv | ( | a4l_drv_t * | drv | ) |
Register an Analogy driver.
After initialising a driver structure, the driver must be made available so as to be attached.
[in] | drv | Driver descriptor structure |
int a4l_unregister_drv | ( | a4l_drv_t * | drv | ) |
Unregister an Analogy driver.
This function removes the driver descriptor from the Analogy driver list. The driver cannot be attached anymore.
[in] | drv | Driver descriptor structure |