Device Registration Services
[Driver Development API]

Collaboration diagram for Device Registration Services:


Data Structures

struct  rtdm_operations
 Device operations. More...
struct  rtdm_device
 RTDM device. More...

Functions

int rtdm_dev_register (struct rtdm_device *device)
 Register a RTDM device.
int rtdm_dev_unregister (struct rtdm_device *device, unsigned int poll_delay)
 Unregisters a RTDM device.


Function Documentation

int rtdm_dev_register struct rtdm_device device  ) 
 

Register a RTDM device.

Parameters:
[in] device Pointer to structure describing the new device.
Returns:
0 is returned upon success. Otherwise:
  • -EINVAL is returned if the device structure contains invalid entries. Check kernel log in this case.

  • -ENOMEM is returned if the context for an exclusive device cannot be allocated.

  • -EEXIST is returned if the specified device name of protocol ID is already in use.

  • -EAGAIN is returned if some /proc entry cannot be created.

Environments:

This service can be called from:

  • Kernel module initialization/cleanup code

Rescheduling: never.

int rtdm_dev_unregister struct rtdm_device device,
unsigned int  poll_delay
 

Unregisters a RTDM device.

Parameters:
[in] device Pointer to structure describing the device to be unregistered.
[in] poll_delay Polling delay in milliseconds to check repeatedly for open instances of device, or 0 for non-blocking mode.
Returns:
0 is returned upon success. Otherwise:
  • -ENODEV is returned if the device was not registered.

  • -EAGAIN is returned if the device is busy with open instances and 0 has been passed for poll_delay.

Environments:

This service can be called from:

  • Kernel module initialization/cleanup code

Rescheduling: never.


Generated on Sat Sep 3 12:32:58 2005 for RTAI Fusion API by  doxygen 1.4.2