hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/include/media/dvb_net.h
....@@ -41,6 +41,9 @@
4141 * @exit: flag to indicate when the device is being removed.
4242 * @demux: pointer to &struct dmx_demux.
4343 * @ioctl_mutex: protect access to this struct.
44
+ * @remove_mutex: mutex that avoids a race condition between a callback
45
+ * called when the hardware is disconnected and the
46
+ * file_operations of dvb_net.
4447 *
4548 * Currently, the core supports up to %DVB_NET_DEVICES_MAX (10) network
4649 * devices.
....@@ -53,6 +56,7 @@
5356 unsigned int exit:1;
5457 struct dmx_demux *demux;
5558 struct mutex ioctl_mutex;
59
+ struct mutex remove_mutex;
5660 };
5761
5862 /**