Re: can not resolve global kernel variable.

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

 



On Tue, Feb 19, 2008 at 01:41:15PM +0200, Eugene Goubine wrote:
> Hello , dear list users.
> >From my module I am trying to register for the system suspend using the *
> register_pm_notifier(nb)*
> which is expanded to *blocking_notifier_chain_register(&pm_chain_head, nb).*
> **
> I have a linker warning which tells "pm_chain_head" is undefined. I do
> see  pm_chain_head in my /proc/kallsyms.
> What do I miss? Thank you.

It's hard to comment on it if you don't attach the source code...

At a guess, you tried using register_pm_notifier, that failed to link,
so you tried to use the function that it calls, which won't work since
pm_chain_head is static to the kernel/power/main.c compilation unit.

License your module under the GPL and add MODULE_LICENSE("GPL") and
you'll be able to use the register_pm_notifier export...

regards, Kyle

_______________________________________________
Fedora-kernel-list mailing list
Fedora-kernel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-kernel-list

[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux