<div>Kyle, thanks for reffering,but it seems like GPL is not the case. </div>
<div>I want to write a module to track netdevices present.</div>
<div>Sort of a protocol sitting there. It is GPL'ed, but register_pm_notifier usage ( as you can see in sources)</div>
<div>gives linker warning "pm_chain_head undefined",since register_pm_notifier is "static inline" and expanded </div>
<div>to blocking_notifier_chain_unregister(&pm_chain_head, nb).</div>
<div>Why do you say pm_chain_head is static there ? Is it because it is not exported by EXPORT_SYMBOL ?</div>
<div>So what does it have to do with the license ( which is already GPL, but I just do not understand ). </div>
<div>What should be my choices, if I want to stay within distro kernel.</div>
<div>Thanks a lot. </div>
<div> </div>
<div> </div>
<div> </div>
<div class="gmail_quote">On Feb 19, 2008 5:53 PM, Kyle McMartin <<a href="mailto:kyle@mcmartin.ca">kyle@mcmartin.ca</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="Wj3C7c">On Tue, Feb 19, 2008 at 01:41:15PM +0200, Eugene Goubine wrote:<br>> Hello , dear list users.<br>> >From my module I am trying to register for the system suspend using the *<br>> register_pm_notifier(nb)*<br>
> which is expanded to *blocking_notifier_chain_register(&pm_chain_head, nb).*<br>> **<br>> I have a linker warning which tells "pm_chain_head" is undefined. I do<br>> see  pm_chain_head in my /proc/kallsyms.<br>
> What do I miss? Thank you.<br><br></div></div>It's hard to comment on it if you don't attach the source code...<br><br>At a guess, you tried using register_pm_notifier, that failed to link,<br>so you tried to use the function that it calls, which won't work since<br>
pm_chain_head is static to the kernel/power/main.c compilation unit.<br><br>License your module under the GPL and add MODULE_LICENSE("GPL") and<br>you'll be able to use the register_pm_notifier export...<br>
<br>regards, Kyle<br></blockquote></div><br>