| .. | .. |
|---|
| 41 | 41 | * @exit: flag to indicate when the device is being removed. |
|---|
| 42 | 42 | * @demux: pointer to &struct dmx_demux. |
|---|
| 43 | 43 | * @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. |
|---|
| 44 | 47 | * |
|---|
| 45 | 48 | * Currently, the core supports up to %DVB_NET_DEVICES_MAX (10) network |
|---|
| 46 | 49 | * devices. |
|---|
| .. | .. |
|---|
| 53 | 56 | unsigned int exit:1; |
|---|
| 54 | 57 | struct dmx_demux *demux; |
|---|
| 55 | 58 | struct mutex ioctl_mutex; |
|---|
| 59 | + struct mutex remove_mutex; |
|---|
| 56 | 60 | }; |
|---|
| 57 | 61 | |
|---|
| 58 | 62 | /** |
|---|