Re: unresolved symbols proc_register and proc_unregister

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

 



Hi,

kishore wrote:
>  when i tried to insmod proc_fs.o i met a problem as 
>  proc_fs.o : unresolved symbol proc_register
>  proc_fs.o : unresolved symbol proc_unregister
(Are you trying to compile procfs as a module?)

You can't use proc_register(), for it's a static function.
http://lxr.linux.no/source/fs/proc/generic.c?v=2.4.18#L359

(You will find proc_register() was called directly for only older versions.
 http://lxr.linux.no/ident?v=2.4.18&i=proc_register )

You need to use something like create_proc_entry().

Regards.

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