Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Drivers cannot be unloaded



I found the cause for that driver cannot be unloaded problem. I'm using 
the feature of VDR to start a script before and after recordings to call 
my rcnoflushd script to stop and start harddisk spin-downs. If that has 
happened once (a recording), the start of noflushd seems to occupy file 
handles that it inherited from the program that started noflushd (in that 
case VDR) and therefore blocks the unloading of the dvb modules.

Can someone verify whether that's the same at your end (whoever else uses 
noflushd for silence in the living-room)

regards




Klaus Schmidinger <Klaus.Schmidinger@cadsoft.de>
Sent by: kls@cadsoft.de
14.10.2001 12:27
Please respond to vdr

 
        To:     vdr@linuxtv.org
        cc: 
        Subject:        [vdr] Re: Drivers cannot be unloaded

 

Robert Schneider wrote:
> 
> Hi,
> 
> does anybody else experience the problem that after VDR exits 
(regardless
> of gracefully, watchdogged or ungracefully) often, some of the modules
> (especially dvb) have a usage count of 38 and therefore cannot be
> unloaded/reloaded anymore.
> 
> I'm experiencing this since I moved to VDR 0.96 and the drivers that are
> needed for that (from the first version that Klaus recommends till the
> ones from 02.10.2001).

I'm using the latest DVB driver (the youngest file is DVB/driver/stv0299.c
dated Sep 20) and can't say I'm observing this. When I stop VDR I can 
successfully unload the driver.

With VDR running I get:

video:/home/kls/vdr/VDR # lsmod
Module                  Size  Used by
dvb                   234336  54 
dvb_demux              10960   3  [dvb]
saa7146_v4l            15776   0  (unused)
saa7146_core           14624   0  [dvb saa7146_v4l]
tuner                   4288   3 
stv0299                 3104   0  (unused)
tda8083                 2080   0  (unused)
L64781                  4032   0  (unused)
VES1820                 3600   0  (unused)
VES1893                 3840   3 
dmxdev                  7024   3  [dvb]
dvb_filter              7008   0  [dvb]
videodev                4512   6  [dvb]
i2c-core               12336   0  [dvb saa7146_core tuner stv0299 tda8083 
L64781 VES1820 VES1893]
dvb_net                 2672   0  [dvb]
dvbdev                  1712  54  [dvb]
ipv6                  117744  -1  (autoclean)
mousedev                3968   0  (unused)
hid                    11744   0  (unused)
input                   3104   0  [mousedev hid]
usb-ohci               16336   0  (unused)
usbcore                46480   1  [hid usb-ohci]
8139too                16128   1  (autoclean)

After stopping VDR it is:

video:/home/kls/vdr/VDR # lsmod
Module                  Size  Used by
dvb                   234336   0 
dvb_demux              10960   3  [dvb]
saa7146_v4l            15776   0  (unused)
saa7146_core           14624   0  [dvb saa7146_v4l]
tuner                   4288   3 
stv0299                 3104   0  (unused)
tda8083                 2080   0  (unused)
L64781                  4032   0  (unused)
VES1820                 3600   0  (unused)
VES1893                 3840   3 
dmxdev                  7024   3  [dvb]
dvb_filter              7008   0  [dvb]
videodev                4512   3  [dvb]
i2c-core               12336   0  [dvb saa7146_core tuner stv0299 tda8083 
L64781 VES1820 VES1893]
dvb_net                 2672   0  [dvb]
dvbdev                  1712   3  [dvb]
ipv6                  117744  -1  (autoclean)
mousedev                3968   0  (unused)
hid                    11744   0  (unused)
input                   3104   0  [mousedev hid]
usb-ohci               16336   0  (unused)
usbcore                46480   1  [hid usb-ohci]
8139too                16128   1  (autoclean)

And finally after unloading the driver:

video:/home/kls/vdr/VDR # lsmod
Module                  Size  Used by
ipv6                  117744  -1  (autoclean)
mousedev                3968   0  (unused)
hid                    11744   0  (unused)
input                   3104   0  [mousedev hid]
usb-ohci               16336   0  (unused)
usbcore                46480   1  [hid usb-ohci]
8139too                16128   1  (autoclean)

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________








Home | Main Index | Thread Index