<p><br>
On Mar 4, 2014 7:47 AM, "J.Hwan Kim" <<a href="mailto:kernel.frog.007@gmail.com">kernel.frog.007@gmail.com</a>> wrote:<br>
><br>
> Hi, everyone<br>
><br>
> When I use /proc file system in communicating between kernel and user space,<br>
> is the usage count of moudule automatically incremented or decremented?</p>
<p>I don't think so.</p>
<p>><br>
> I register proc file via create_proc_entry() and use .open, .close and<br>
> .mmap not using .read and .write function.<br>
><br>
> Please give me any hint..<br>
><br>
> Thanks in advance<br>
></p>
<p>You can do that by doing fops_get <br>
Or module_get.</p>
<p>> Best Regards,<br>
><br>
> J.Hwan Kim<br>
><br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a></p>