3.5. Digital TV Network kABI¶
-
struct dvb_net¶
describes a DVB network interface
Definition:
struct dvb_net {
struct dvb_device *dvbdev;
struct net_device *device[DVB_NET_DEVICES_MAX];
int state[DVB_NET_DEVICES_MAX];
unsigned int exit:1;
struct dmx_demux *demux;
struct mutex ioctl_mutex;
struct mutex remove_mutex;
};
Members
dvbdevpointer to
struct dvb_device.devicearray of pointers to
struct net_device.statearray of integers to each net device. A value different than zero means that the interface is in usage.
exitflag to indicate when the device is being removed.
demuxpointer to
struct dmx_demux.ioctl_mutexprotect access to this struct.
remove_mutexmutex that avoids a race condition between a callback called when the hardware is disconnected and the file_operations of dvb_net.
Description
Currently, the core supports up to DVB_NET_DEVICES_MAX (10) network
devices.
-
int dvb_net_init(struct dvb_adapter *adap, struct dvb_net *dvbnet, struct dmx_demux *dmxdemux)¶
nitializes a digital TV network device and registers it.
Parameters
struct dvb_adapter *adappointer to
struct dvb_adapter.struct dvb_net *dvbnetpointer to
struct dvb_net.struct dmx_demux *dmxdemuxpointer to
struct dmx_demux.
-
void dvb_net_release(struct dvb_net *dvbnet)¶
releases a digital TV network device and unregisters it.
Parameters
struct dvb_net *dvbnetpointer to
struct dvb_net.