Re: unresolved symbols proc_register and proc_unregister

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

 



Hi Kishore,
On 12/30/05, kishore <kishore@xxxxxxxxxxxxxxxxxxx> wrote:
> hi all,
>
>  I am working on,
>         Red Hat Linux release 8.0 (Psyche) with kernel version 2.4.18-14.
>
>  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
>
>  The following makefile was used.
>
> /*-*-*-*-*-*/
>
> INCS=-I/lib/modules/`uname -r`/build/include
> OPTS=-c -O2 -Wall -DLINUX -D__KERNEL__ -DMODULE
> CC=gcc
> proc_fs.o:
>      $(CC) $(OPTS) $(INCS) proc_fs.c
> clean:
>     rm -f proc_fs.o
>
> /*-*-*-*-*-*/
>
> and I included the files <linux/module.h>, <linux/kernel.h>,
> <linux/proc_fs.h> in proc_fs.c.
>
> Let me know the <header file> name in which the proc_register
> and proc_unregister are declared.
> I searched with grep as,
>           grep proc_register /lib/modules/`uname -r`/build/include/*/*
> but no use.
>
     For reference to use proc_register function in kernel module
refer webpage http://www.linuxhq.com/guides/LKMPG/node16.html. If you
see this kernel module you will come to know that to use that function
you require to include proc_fs.h header file.
     for more understanding of usage of proc_register check
http://www.linuxhq.com/guides/LKMPG/node17.html
Regards,
Parag.

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