Driver management services
[Driver API.]

Collaboration diagram for Driver management services:

Detailed Description

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.


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.


Function Documentation

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.

Parameters:
[in] drv Driver descriptor structure
Returns:
0 on success, otherwise negative error code.

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.

Parameters:
[in] drv Driver descriptor structure
Returns:
0 on success, otherwise negative error code.


Generated on Tue Mar 8 13:02:08 2011 for Xenomai API by  doxygen 1.5.6