Xenomai
3.0-rc3
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
context.h
Go to the documentation of this file.
1
22
#ifndef _COBALT_RTDM_ANALOGY_CONTEXT_H
23
#define _COBALT_RTDM_ANALOGY_CONTEXT_H
24
25
#include <
rtdm/driver.h
>
26
27
struct
a4l_device;
28
struct
a4l_buffer;
29
30
struct
a4l_device_context {
31
/* The adequate device pointer
32
(retrieved thanks to minor at open time) */
33
struct
a4l_device *dev;
34
35
/* The buffer structure contains everything to transfer data
36
from asynchronous acquisition operations on a specific
37
subdevice */
38
struct
a4l_buffer *buffer;
39
};
40
41
static
inline
int
a4l_get_minor(
struct
a4l_device_context *cxt)
42
{
43
/* Get a pointer on the container structure */
44
struct
rtdm_fd *fd =
rtdm_private_to_fd
(cxt);
45
/* Get the minor index */
46
return
rtdm_fd_minor(fd);
47
}
48
49
#endif
/* !_COBALT_RTDM_ANALOGY_CONTEXT_H */
driver.h
Real-Time Driver Model for Xenomai, driver API header.
rtdm_private_to_fd
static struct rtdm_fd * rtdm_private_to_fd(void *dev_private)
Locate a device file descriptor structure from its driver private area.
Definition:
driver.h:171
include
cobalt
kernel
rtdm
analogy
context.h
Generated by
1.8.8