linux kernel - Undefined Instruction handler -


i need handle undefined instruction exception in loadable kernel module. use register_undef_hook(&my_undef_hook) in module initialization. have such compile error:

... building modules, stage 2. modpost 1 modules warning: "register_undef_hook" [/home/user/my_driver.ko] undefined! warning: "unregister_undef_hook" [/home/user/my_driver.ko] undefined! ... 

i wonder, can use these functions in kernel modules?

these functions not exported (aka, there no export_symbol(register_undef_hook)) not usable in modules code.

you have more details here


Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -