shansen Posted February 1, 2012 Share Posted February 1, 2012 When writing user phase code, I have noticed that the IDE compiles both a .ko and .so version of useralgo. The problem is if I use kernel specific functions (e.g. kmalloc, etc) in my code, then useralgo.ko compiles successfully but useralgo.so fails. I've been getting around this by putting #ifdef __KERNEL__ statements around kernel-mode functions, but I was hoping someone could clarify the purpose of useralgo.so and why it is compiled in user-mode. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts