[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: usage count
Hi,
manish rangankar wrote:
> Now, when i access the OPEN this node multiple times it's count
> should be increase...
Which kernel version are you using ?
AFAIK, in 2.4.x, one had to call MOD_INC_USE_COUNT in the open() method
of the character driver. But in 2.6.x, I think this is done
automagically. Isn't it ?
Maybe you should have a look at Linux Device Drivers, the 3rd edition is
available online.
Sincerly,
Thomas
--
Thomas Petazzoni
thomas.petazzoni@xxxxxxxx
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/