Re: Re:Driver Robustness

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

 



On Fri, Mar 08, 2002 at 04:39:50PM -0700, Stuart Macdonald wrote:

> Overkill maybe, but how else do you know that the process died and that your
> driver should free resources associated with that process? Even have problem
> using module reference counters in that they remain incremented if
> application cores before calling close() and then you can't unload the
> driver.

uh, a task will call release() when it exits no matter what ...

you must make sure to use owner() or module use counts directly to avoid
allowing the module to be unloaded during use.


regards
john

-- 
I am a complete moron for forgetting about endianness. May I be
forever marked as such.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux