Xenomai  3.0.5
rtdm_driver Struct Reference

RTDM driver. More...

Collaboration diagram for rtdm_driver:

Data Fields

struct rtdm_profile_info profile_info
 Class profile information. More...
 
int device_flags
 Device flags, see Device Flags for details. More...
 
size_t context_size
 Size of the private memory area the core should automatically allocate for each open file descriptor, which is usable for storing the context data associated to each connection. More...
 
int protocol_family
 Protocol device identification: protocol family (PF_xxx)
 
int socket_type
 Protocol device identification: socket type (SOCK_xxx)
 
struct rtdm_fd_ops ops
 I/O operation handlers.
 
struct rtdm_sm_ops smops
 State management handlers.
 
int device_count
 Count of devices this driver manages. More...
 
int base_minor
 Base minor for named devices. More...
 
struct {
}; 
 Reserved area.
 

Detailed Description

RTDM driver.

This descriptor describes a RTDM device driver. The structure holds runtime data, therefore it must reside in writable memory.

Field Documentation

◆ base_minor

int rtdm_driver::base_minor

Base minor for named devices.

◆ context_size

size_t rtdm_driver::context_size

Size of the private memory area the core should automatically allocate for each open file descriptor, which is usable for storing the context data associated to each connection.

The allocated memory is zero-initialized. The start of this area can be retrieved by a call to rtdm_fd_to_private().

◆ device_count

int rtdm_driver::device_count

Count of devices this driver manages.

This value is used to allocate a chrdev region for named devices.

◆ device_flags

int rtdm_driver::device_flags

Device flags, see Device Flags for details.

◆ profile_info

struct rtdm_profile_info rtdm_driver::profile_info

Class profile information.

The RTDM_PROFILE_INFO() macro must be used for filling up this field.

Referenced by rtdm_drv_set_sysclass(), and udd_get_device().


The documentation for this struct was generated from the following file: