error of proc_register()

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

 



Hi,
  
Follow Ori Pomerantz's LKM Programming Guide, the code uses 
 proc_register(&proc_root, &Our_Proc_File);

in procfs.c to create a "file" in /proc. But I got implicit 
declaration error for that. In kernel 2.4.2, the proc_register() 
is defined at fs/proc/generic.c:350, but I do not see any 
header file include this. I wonder what is wrong here.  Do I miss 
a .h file or the proc_register() is changed.  

Thanks,
-Hong

  

-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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