rtdm_dev_context Struct Reference

Collaboration diagram for rtdm_dev_context:

Collaboration graph
[legend]

Detailed Description

Device context.

A device context structure is associated with every open device instance. RTDM takes care of its creation and destruction and passes it to the operation handlers when being invoked.

Driver get 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.
rtdm_operationsops
 Set of active device operation handlers.
rtdm_devicedevice
 Reference to owning device.
char dev_private [0]
 Begin of driver defined context data structure.


The documentation for this struct was generated from the following file:
Generated on Sat Sep 3 12:32:49 2005 for RTAI Fusion API by  doxygen 1.4.2