Re: not able to link with proc_root symbol

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

 



On Fri, Feb 27, 2009 at 10:58 AM, Peter Teoh <htmldeveloper@xxxxxxxxx> wrote:
> sorry i forgotten to mention that SYMBOLS in /proc/kallsyms are NOT
> necessarily declared as EXPORT_SYMBOL.
>


But the reverse is true, Right ?





> On Fri, Feb 27, 2009 at 1:26 PM, Peter Teoh <htmldeveloper@xxxxxxxxx> wrote:
>> in order for a module to use ANY OF THE symbol from another module, or
>> from the core kernel itself, the symbol must be declared as
>> EXPORT_SYMBOL in the first place.   And then the symbol user side must
>> declare "extern" for the symbol before using it.
>>
>> On Thu, Feb 26, 2009 at 10:32 PM, Sabin <linuxguru75@xxxxxxxxx> wrote:
>>> Thanks Matthias,
>>>   It worked! That was stupidly simple. But that still leaves the actual
>>> question - why am I not able to use a symbol exported by kernel. Is
>>> there anything to be done before using an exported symbol?
>>>
>>> Thank you
>>> Sabin
>>>
>>> On Thu, 2009-02-26 at 09:50 +0100, Matthias Kaehlcke wrote:
>>>> El Thu, Feb 26, 2009 at 02:02:18PM +0000 Sabin ha dit:
>>>>
>>>> > I am not able to link with proc_root symbol, though i could see it
>>>> > exported in /proc/kallsyms.
>>>> > I am trying something like this:
>>>> > static void __exit procfs_exit(void)
>>>> > {
>>>> >         remove_proc_entry(PROCFS_NAME,&proc_root);
>>>> >         printk(KERN_INFO "/proc/%s removed\n",PROCFS_NAME);
>>>> > }
>>>> >
>>>> > have included the following:
>>>> > #include <linux/module.h>
>>>> > #include <linux/kernel.h>
>>>> > #include <linux/proc_fs.h>
>>>>
>>>> to remove an entry in the root of /proc do:
>>>>
>>>> remove_proc_entry(PROCFS_NAME, NULL);
>>>>
>>>
>>>
>>> --
>>> To unsubscribe from this list: send an email with
>>> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
>>> Please read the FAQ at http://kernelnewbies.org/FAQ
>>>
>>>
>>
>>
>>
>> --
>> Regards,
>> Peter Teoh
>>
>
>
>
> --
> Regards,
> Peter Teoh
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>



-- 
Regards,
Sandeep.





 	
“To learn is to change. Education is a process that changes the learner.”

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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