Re: module usage count

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

 






On Tue, Mar 4, 2014 at 12:00 PM, Pranay Srivastava <pranjas@xxxxxxxxx> wrote:


On Mar 4, 2014 7:47 AM, "J.Hwan Kim" <kernel.frog.007@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



--
Regards,
Rishi Agrawal
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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