Re: lsmod Used count

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

 



Hi,
On 7/31/06, Parav Pandit <paravpandit@xxxxxxxxx> wrote:
Hi,

Can someone tell me how can I know that which
different applications are using my driver indirectly
and/or directly ( via opening dev files)?

lsmod shows the count "Used".
Every driver writer will increment the count in the
open() call.
How can I know that who is using the module?
lsmod shows the modules which are dependent on it but
not the applications/processes.

If we can get the process id which are using it, than
also it is fine.
 If you are knowing which device file is created by any kernel module
then you need to use lsof command. Say you want to check which
application is using /dev/dsp file then
lsof| grep dsp and you will get application which is using that device file.
Regards,
Parag.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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