error in remove proc entry

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

 



dear sir
  I was trying to remove a proc file created by me(in fork.c) in exit.c.
as i was actually trying to make a proc file in proc directory
and remove the file when the thread gets terminated.

          So i have created the proc files in the name of thread id in the do_fork function and trying to remove it in the do_exit fuction
through
          AS i have to remove the data content too
          i was not getting the reference to the proc file i am creating a symlink to the file and deleting the data part like
kfree(symlink->data)

then deleting the symlink
remove_proc_entry(symlink,NULL)

then the main file
remove_proc_entry(thread_id,NULL)

But during compilation it was showing the certain error i am unable to resolve like

    kernel/built-in.o(.text+0x37f2): In function `thread_proc'
    :: undefined reference to `remove_proc_read'
    make: *** [.tmp_vmlinux1] Error 1 

can you help me
sounak




[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