<br>Hi,<br>I had make install a module for a dvb usb box which writen by my self. But this one didn't have real frontend ops and tuner ops.These functions did nothing but return 0.<br>Like this <br>static int demo_fe_init(struct dvb_frontend *fe)<br>{<br>&nbsp;&nbsp;&nbsp; return 0;<br>}<br><br>After the usb box removed from linux, the DVB system called demo_fe_release and demo_tu_release, sofar that seems very good! But, I can't rmmod this module normally. It showed "ERROR: Module dvb_usb_dvbusb_demo is in use".This error is diffrent with "ERROR: Module dvb_usb is in use by dvb_usb_dvbusb_demo"<br><br>How can i rmmod this module with out reboot Linux.<br><br>thanks<br><br>$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$<br>[&nbsp;&nbsp; 93.895305] dvb-usb: found a 'DVB USB2.0&nbsp; Demo' in warm state.<br>[&nbsp;&nbsp; 93.897118] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.<br>[&nbsp;&nbsp; 93.897633] DVB: registering new adapter (DVB USB2.0&nbsp; Demo)<br>[&nbsp;&nbsp; 93.899827] DVB_DEMO: demo_frontend_attach:<br>[&nbsp;&nbsp; 93.899829]<br>[&nbsp;&nbsp; 93.899842] DVB_DEMO: demo_fe_attach:<br>[&nbsp;&nbsp; 93.899844]<br>[&nbsp;&nbsp; 93.902815] DVB: registering adapter 0 frontend 0 ( Demo USB Driver)...<br>[&nbsp;&nbsp; 93.906273] DVB_DEMO: demo_tuner_attach:<br>[&nbsp;&nbsp; 93.906275]<br>[&nbsp;&nbsp; 93.906286] DVB_DEMO: demo_tu_attach:<br>[&nbsp;&nbsp; 93.906288]<br>[&nbsp;&nbsp; 93.909823] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.<br>[&nbsp;&nbsp; 93.912149] DVB: registering new adapter (DVB USB2.0&nbsp; Demo)<br>[&nbsp;&nbsp; 93.914388] DVB_DEMO: demo_frontend_attach:<br>[&nbsp;&nbsp; 93.914390]<br>[&nbsp;&nbsp; 93.914401] DVB_DEMO: demo_fe_attach:<br>[&nbsp;&nbsp; 93.914403]<br>[&nbsp;&nbsp; 93.917737] DVB: registering adapter 1 frontend 0 ( Demo USB Driver)...<br>[&nbsp;&nbsp; 93.933098] DVB_DEMO: demo_tuner_attach:<br>[&nbsp;&nbsp; 93.933101]<br>[&nbsp;&nbsp; 93.933117] DVB_DEMO: demo_tu_attach:<br>[&nbsp;&nbsp; 93.933119]<br>[&nbsp;&nbsp; 93.936762] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:02.1/usb2/2-6/input/input7<br>[&nbsp;&nbsp; 93.980756] dvb-usb: schedule remote query interval to 20000 msecs.<br>[&nbsp;&nbsp; 93.980773] dvb-usb: DVB USB2.0&nbsp; Demo successfully initialized and connected.<br>[&nbsp;&nbsp; 93.984967] DVB_DEMO: demo_init: running<br>[&nbsp;&nbsp; 93.984970]<br>[&nbsp;&nbsp; 93.986705] usbcore: registered new interface driver dvb_usb_demo<br>[&nbsp; 119.219743] type=1503 audit(1236249152.266:5): operation="inode_permission" requested_mask="r::" denied_mask="r::" fsuid=7 name="/proc/5886/net/" pid=5886 profile="/usr/sbin/cupsd"<br>[&nbsp; 120.405504] type=1503 audit(1236249153.454:6): operation="inode_permission" requested_mask="r::" denied_mask="r::" fsuid=7 name="/proc/5891/net/" pid=5891 profile="/usr/sbin/cupsd"<br>[&nbsp; 120.405583] type=1503 audit(1236249153.454:7): operation="socket_create" family="ax25" sock_type="dgram" protocol=0 pid=5891 profile="/usr/sbin/cupsd"<br>[&nbsp; 120.405598] type=1503 audit(1236249153.454:8): operation="socket_create" family="netrom" sock_type="seqpacket" protocol=0 pid=5891 profile="/usr/sbin/cupsd"<br>[&nbsp; 120.405613] type=1503 audit(1236249153.454:9): operation="socket_create" family="rose" sock_type="dgram" protocol=0 pid=5891 profile="/usr/sbin/cupsd"<br>[&nbsp; 120.405634] type=1503 audit(1236249153.454:10): operation="socket_create" family="ipx" sock_type="dgram" protocol=0 pid=5891 profile="/usr/sbin/cupsd"<br>[&nbsp; 120.405648] type=1503 audit(1236249153.454:11): operation="socket_create" family="appletalk" sock_type="dgram" protocol=0 pid=5891 profile="/usr/sbin/cupsd"<br>[&nbsp; 120.405662] type=1503 audit(1236249153.454:12): operation="socket_create" family="econet" sock_type="dgram" protocol=0 pid=5891 profile="/usr/sbin/cupsd"<br>[&nbsp; 120.405684] type=1503 audit(1236249153.454:13): operation="socket_create" family="ash" sock_type="dgram" protocol=0 pid=5891 profile="/usr/sbin/cupsd"<br>[&nbsp; 120.405697] type=1503 audit(1236249153.454:14): operation="socket_create" family="x25" sock_type="seqpacket" protocol=0 pid=5891 profile="/usr/sbin/cupsd"<br>[&nbsp; 121.103127] ppdev0: registered pardevice<br>[&nbsp; 121.152421] ppdev0: unregistered pardevice<br>[&nbsp; 121.224252] ppdev0: registered pardevice<br>[&nbsp; 121.272607] ppdev0: unregistered pardevice<br>[&nbsp; 121.333579] ppdev0: registered pardevice<br>[&nbsp; 121.384426] ppdev0: unregistered pardevice<br>[&nbsp; 170.980533] hub 2-0:1.0: port 6 disabled by hub (EMI?), re-enabling...<br>[&nbsp; 170.980552] usb 2-6: USB disconnect, address 4<br>[&nbsp; 171.009401] DVB_DEMO: demo_tu_release:<br>[&nbsp; 171.009403]<br>[&nbsp; 171.009416] DVB_DEMO: demo_fe_release:<br>[&nbsp; 171.009418]<br>[&nbsp; 171.010558] DVB_DEMO: demo_tu_release:<br>[&nbsp; 171.010560]<br>[&nbsp; 171.010571] DVB_DEMO: demo_fe_release:<br>[&nbsp; 171.010573]<br>[&nbsp; 171.013164] dvb-usb: DVB USB2.0&nbsp; Demo successfully deinitialized and disconnected.<br>wdy@wdy:~$ sudo rmmod dvb-usb-dvbusb-demo<br>[sudo] password for wdy:<br>ERROR: Module dvb_usb_dvbusb_demo is in use<br><br><br><br><br><br><br><br><!-- footer --><br><span title="neteasefooter"/><hr/>
<a href="http://www.yeah.net">网易邮箱,中国第一大电子邮件服务商</a>
</span>