* module usage count
@ 2014-03-04 2:02 J.Hwan Kim
2014-03-04 6:30 ` Pranay Srivastava
0 siblings, 1 reply; 3+ messages in thread
From: J.Hwan Kim @ 2014-03-04 2:02 UTC (permalink / raw)
To: kernelnewbies
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 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
Best Regards,
J.Hwan Kim
^ permalink raw reply [flat|nested] 3+ messages in thread
* module usage count
2014-03-04 2:02 module usage count J.Hwan Kim
@ 2014-03-04 6:30 ` Pranay Srivastava
2014-03-04 17:57 ` Rishi Agrawal
0 siblings, 1 reply; 3+ messages in thread
From: Pranay Srivastava @ 2014-03-04 6:30 UTC (permalink / raw)
To: kernelnewbies
On Mar 4, 2014 7:47 AM, "J.Hwan Kim" <kernel.frog.007@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* module usage count
2014-03-04 6:30 ` Pranay Srivastava
@ 2014-03-04 17:57 ` Rishi Agrawal
0 siblings, 0 replies; 3+ messages in thread
From: Rishi Agrawal @ 2014-03-04 17:57 UTC (permalink / raw)
To: kernelnewbies
On Tue, Mar 4, 2014 at 12:00 PM, Pranay Srivastava <pranjas@gmail.com>wrote:
>
> On Mar 4, 2014 7:47 AM, "J.Hwan Kim" <kernel.frog.007@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
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
This may help.
http://stackoverflow.com/questions/448999/is-there-a-way-to-figure-out-what-is-using-a-linux-kernel-module
--
Regards,
Rishi Agrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140304/b28818a0/attachment.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-04 17:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-04 2:02 module usage count J.Hwan Kim
2014-03-04 6:30 ` Pranay Srivastava
2014-03-04 17:57 ` Rishi Agrawal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.