Re: error of proc_register()

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

 





John Levon wrote:

> On Thu, Oct 11, 2001 at 01:30:19PM -0400, Hong Hsu wrote:
> 
>> 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.  
> 
> 
> it's gone - read the procfs guide on kernelnewbies.org
> 
> regards
> john
> 
     John,   
You mentioned that the Ori Pomerantz's LKM Programming Guide is too old 
for /proc part.  Does this also apply to Chapter 7 System Calls?   I 
want to add a system call, say nrprocess(), with these steps: 1) add an 
entry in include/asm-i386/unistd.h 2) #insmod nrprocess.o

but I don't see how the userland application know the new system call.  
Do I have to recompile the kernel?  I wonder there is document which 
explains that.

Thanks for the help,
-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