Device Profiles
[Real-Time Driver Model]

Collaboration diagram for Device Profiles:

Data Structures

struct  rtdm_device_info
 Device information. More...


 CAN Devices
 Serial Devices
 Testing Devices


typedef struct rtdm_device_info rtdm_device_info_t
 Device information.


Device classes

#define RTDM_CLASS_CAN   3
#define RTDM_CLASS_RTMAC   5
#define RTDM_CLASS_MAX   255

Device Naming

Maximum length of device names (excluding the final null character)



Flags selecting buffers to be purged

#define RTDM_PURGE_RX_BUFFER   0x0001
#define RTDM_PURGE_TX_BUFFER   0x0002

Common IOCTLs

The following IOCTLs are common to all device profiles.

#define RTIOC_DEVICE_INFO   _IOR(RTIOC_TYPE_COMMON, 0x00, struct rtdm_device_info)
 Retrieve information about a device or socket.
#define RTIOC_PURGE   _IOW(RTIOC_TYPE_COMMON, 0x10, int)
 Purge internal device or socket buffers.

Detailed Description

Device profiles define which operation handlers a driver of a certain class has to implement, which name or protocol it has to register, which IOCTLs it has to provide, and further details. Sub-classes can be defined in order to extend a device profile with more hardware-specific functions.

Define Documentation

#define RTIOC_DEVICE_INFO   _IOR(RTIOC_TYPE_COMMON, 0x00, struct rtdm_device_info)

Retrieve information about a device or socket.

[out] arg Pointer to information buffer (struct rtdm_device_info)
#define RTIOC_PURGE   _IOW(RTIOC_TYPE_COMMON, 0x10, int)

Purge internal device or socket buffers.

[in] arg Purge mask, see RTDM_PURGE_xxx_BUFFER

Generated on Tue Oct 27 19:18:55 2009 for Xenomai API by  doxygen 1.6.1