Re: proc_register & proc_unregister

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

 



On Wed, Mar 21, 2001 at 11:28:24AM -0500, Jeff Garzik wrote:
# 
# That example is not correct for kernel 2.4....  Attached is a message
why ? i used  create_proc_entry(...)/remove_proc_entry(...)
 as said below. besides, it works for me in 2.4.x...

 Denis.

# from Al Viro describing procfs use.  Al Viro is the one who cleaned up
# the procfs interface to be such, and these are now the recommend procfs
# interface functions.
# 
# 	Jeff
# 
# To create a regular file - create_proc_entry(path, mode, from) and set
# ->read_proc/->write_proc or ->get_info (as in old procfs).
# Alternatively, use wrappers: create_proc_{read,info}_entry() (see
# proc_fs.h).
# 
# To remove an entry - remove_proc_entry(path, from)
# 
# If you are in a module - set ->owner to THIS_MODULE.

---end quoted text---

-- 
  ("\''/").__..-''"`-. .         denis.karpov@necsom.com
  `9_ 9  )   `-. (    ).`-._.`)  Necsom Oy
  (_Y_.)' ._   ) `._`.  " -.-'   +358 (0)40 502 0931
   _..`-'_..-_/ /-'_.'           
 (l)-'' ((i).' ((!.'             
  *** Experience is something you don't get until just after you need it.  ***
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux