module usage count
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
Quoted 4 lines · J.Hwan Kim
Hi, everyone
When I use /proc file system in communicating between kernel and user
space,
Quoted 1 line
is the usage count of moudule automatically incremented or decremented?
I don't think so.
Quoted 8 lines
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.
Quoted 9 lines
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
Quoted 33 lines · Pranay Srivastava
Quoted 4 lines · J.Hwan Kim
Hi, everyone
When I use /proc file system in communicating between kernel and user
space,
Quoted 1 line
is the usage count of moudule automatically incremented or decremented?
I don't think so.
Quoted 8 lines
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
Ormodule_get.Quoted 9 lines
Best Regards,
J.Hwan Kim
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Quoted 6 lines
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
This may help.
Signature · 5 lines
Regards, Rishi Agrawal -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140304/b28818a0/attachment.html