module usage count

Pranay Srivastava pranjas at gmail.com
Tue Mar 4 01:30:51 EST 2014


On Mar 4, 2014 7:47 AM, "J.Hwan Kim" <kernel.frog.007 at gmail.com> wrote:
>
> Hi, everyone
>
> When I use /proc file system in communicating between kernel and user
space,
> is the usage count of moudule automatically incremented or decremented?

I don't think so.

>
> I register proc file via create_proc_entry() and use .open, .close and
> .mmap not using .read and .write function.
>
> Please give me any hint..
>
> Thanks in advance
>

You can do that by doing fops_get
Or module_get.

> Best Regards,
>
> J.Hwan Kim
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140304/b7da7739/attachment.html 


More information about the Kernelnewbies mailing list