struct dvb_device — represents a DVB device node
struct dvb_device { struct list_head list_head; const struct file_operations * fops; struct dvb_adapter * adapter; int type; int minor; u32 id; int readers; int writers; int users; wait_queue_head_t wait_queue; int (* kernel_ioctl) (struct file *file, unsigned int cmd, void *arg); #if defined(CONFIG_MEDIA_CONTROLLER_DVB) const char * name; struct media_intf_devnode * intf_devnode; unsigned tsout_num_entities; struct media_entity * entity; struct media_entity * tsout_entity; struct media_pad * pads; struct media_pad * tsout_pads; #endif void * priv; };
List head with all DVB devices
pointer to struct file_operations
pointer to the adapter that holds this device node
type of the device: DVB_DEVICE_SEC, DVB_DEVICE_FRONTEND, DVB_DEVICE_DEMUX, DVB_DEVICE_DVR, DVB_DEVICE_CA, DVB_DEVICE_NET
devnode minor number. Major number is always DVB_MAJOR.
device ID number, inside the adapter
Initialized by the caller. Each call to open
in Read Only mode
decreases this counter by one.
Initialized by the caller. Each call to open
in Read/Write
mode decreases this counter by one.
Initialized by the caller. Each call to open
in any mode
decreases this counter by one.
wait queue, used to wait for certain events inside one of the DVB API callers
callback function used to handle ioctl calls from userspace.
Name to be used for the device at the Media Controller
Pointer to media_intf_devnode. Used by the dvbdev core to store the MC device node interface
Number of Transport Stream output entities
pointer to struct media_entity associated with the device node
array with MC entities associated to each TS output node
pointer to struct media_pad associated with entity
;
array with the source pads for each tsout_entity
private data