proc sysctl entry

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

 



Hi,
I have developed a module which creates sysctl entry i.e. in /proc/sys/my_module/x .
I have done this register_sysctl_table function during module initialiazation and clear the entry in module cleanup with unregister_sysctl_table function. Now my problem is if any user process has open the /proc/sys/my_module/x entry as  a file and trying to read its value and in the meantime root has removed the module. So it causes the kernel panic.
 
Is there any way to find out while removing the proc entry that it has already been open by user process??
Iam using kernel version 2.4.21
 
Thanks,
Adil

[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