Skip to contentSkip to conversation

where is the module reference count incremented or decremented ?

DISCUSSION Jeong-Hwan Kim 2 participants 3 messages Mar 3, 2014

lore
Share & tools
lore
#0 lore raw

Hi, everyone

When the module is communicating with user through /proc file system, where is the module reference count incremented or decremented in kernel source?

Thanks in advance.

Best Regards,

J.Hwan Kim

#1 lore raw
Quoted 10 lines · Jeong-Hwan Kim

Hi, everyone

When the module is communicating with user through /proc file system, where is the module reference count incremented or decremented in kernel source?

Thanks in advance.

Best Regards,

Quoted 8 lines

J.Hwan Kim

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

Are you talking about this usage count - which we get on lsmod command, or you are talking about something else.

lsmod | grep btrfs

btrfs                 761721  1
zlib_deflate           26914  1 btrfs
libcrc32c              12644  1 btrfs
Signature · 5 lines
Regards,
Rishi Agrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140303/e9fbc7c6/attachment.html 
#2 lore raw

Yes, I mean the number got by lsmod or cat /proc/modules..

2014? 03? 03? 20:36, Rishi Agrawal ? ?:

Quoted 28 lines

On Mon, Mar 3, 2014 at 4:21 PM, Jeong-Hwan Kim <[email protected] <mailto:[email protected]>> wrote:

Hi, everyone

When the module is communicating with user through /proc file system, where is the module reference count incremented or decremented in kernel
source?

Thanks in advance.

Best Regards,

J.Hwan Kim

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
<mailto:[email protected]>
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Quoted 18 lines

Are you talking about this usage count - which we get on lsmod command, or you are talking about something else.

lsmod | grep btrfs

btrfs                 761721  1
zlib_deflate           26914  1 btrfs
libcrc32c              12644  1 btrfs
Signature · 8 lines
Regards,
Rishi Agrawal


_______________________________________________
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/20140303/bc822fc7/attachment-0001.html