Re: rmmod while module is in use

2005-02-17 Thread Zwane Mwaikambo
On Thu, 17 Feb 2005, Zwane Mwaikambo wrote: > On Thu, 17 Feb 2005, Davide Rossetti wrote: > > > maybe RTFM... > > a module: > > - char device driver for.. > > - a PCI device > > > > any clue as to how to protect from module unloading while there is still > > some > > process opening it??? have

Re: rmmod while module is in use

2005-02-17 Thread Zwane Mwaikambo
On Thu, 17 Feb 2005, Davide Rossetti wrote: > maybe RTFM... > a module: > - char device driver for.. > - a PCI device > > any clue as to how to protect from module unloading while there is still some > process opening it??? have I to sleep in the remove_one() pci driver function > till last proce

Re: rmmod while module is in use

2005-02-17 Thread Sean Neakums
Davide Rossetti <[EMAIL PROTECTED]> writes: > maybe RTFM... > a module: > - char device driver for.. > - a PCI device Setting the 'owner' field of your char device's file_operations structure to THIS_MODULE should be sufficient to enable the kernel to manage the reference count for you. This is

Re: rmmod while module is in use

2005-02-17 Thread linux-os
On Thu, 17 Feb 2005, Davide Rossetti wrote: maybe RTFM... a module: - char device driver for.. - a PCI device any clue as to how to protect from module unloading while there is still some process opening it??? have I to sleep in the remove_one() pci driver function till last process closes its fi

rmmod while module is in use

2005-02-17 Thread Davide Rossetti
maybe RTFM... a module: - char device driver for.. - a PCI device any clue as to how to protect from module unloading while there is still some process opening it??? have I to sleep in the remove_one() pci driver function till last process closes its file descriptor??? static void __devexit aped