Question

I am writing a kernel extension in AIX 6.1. I use the "kget_proc_info()" for getting info of a process. But there is a error when I make it:

1>ld : 0711-317 error : Undefined symbol: .kget_proc_info

And I use command "nm" to check this symbol:

#nm -A -X64 /unix  | grep kget_proc_info
/unix:    .kget_proc_info      T     3702624
/unix:    kget_proc_info       D    45909296          24

I can't understand the difference between ".kget_proc_info" and "kget_proc_info". How to solve this problem?

No correct solution

OTHER TIPS

You don't actually "link to" the kernel. Instead, you tell the loader, "this list of symbols will be resolved by /unix" and that list comes from kernex.exp. You do that with -bIkernex.exp. The book will help. There are also bos.adt.samples that give you (some very dated) examples.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top