Reputation: 2253
when i try to load my Linux kernel module i get an error about an undefined symbol (obviously i get a warning during make). In particular i need to use the macro pgd_offset_k
in my module (defined in asm/pgtable.h). This is expanded in pgd_offset(&init_mm, (address))
. The undefined symbol is init_mm
. I have also verified its presence in /proc/kallsyms:
$ cat /proc/kallsyms |grep -w init_mm
c07d49a0 D init_mm
Any ideas?
Upvotes: 0
Views: 1402
Reputation: 40849
init_mm
is not exported past 2.6.29, on the basis that no out-of-tree code should be using it. Can you not do without pgd_offset_k
?
Upvotes: 3