
Drivers can attach arbitrary data immediately after the official structure. The size of this data is provided via rtdm_device.context_size during device registration.
Data Fields | |
| unsigned long | context_flags |
| Context flags, see Context Flags for details. | |
| int | fd |
| Associated file descriptor. | |
| atomic_t | close_lock_count |
| Lock counter of context, held while structure is referenced by an operation handler. | |
| struct rtdm_operations * | ops |
| Set of active device operation handlers. | |
| struct rtdm_device * | device |
| Reference to owning device. | |
|
struct rtdm_devctx_reserved | reserved |
| Data stored by RTDM inside a device context (internal use only). | |
| char | dev_private [0] |
| Begin of driver defined context data structure. | |
1.5.3