Re: unresolved symbols proc_register and proc_unregister

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

 



Hi,

kishore wrote:

>  I am working on, 
>         Red Hat Linux release 8.0 (Psyche) with kernel version 2.4.18-14.

Any reason for not using a more recent kernel ?

>  proc_fs.o : unresolved symbol proc_register
>  proc_fs.o : unresolved symbol proc_unregister

I advise not to name you module "proc_fs.o", because it's confusing with
the name of the module actually implementing the /proc filesystem.

> Let me know the <header file> name in which the proc_register
> and proc_unregister are declared.

Where did you read that you can use proc_register() and
proc_unregister() from modules ? These are internal functions of the
kernel, you don't need to use them.

You want to use:

 - proc_mkdir() to create a /proc directory.
 - create_proc_entry() to create a /proc entry.
 - remove_proc_entry() to remove a /proc entry.

Sincerly,

Thomas
-- 
Thomas Petazzoni
thomas.petazzoni@xxxxxxxx

--
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