c - How to include linux/module.h in my source file? -
i have looked @ other similar questions around stackoverflow, doesn't seem work me. trying compile code sample, , needs these header files:
linux/module.h linux/modversion.h linux/sched.h linux/tqueue.h but keep getting errors saying files can't found. know should add them kernel, can please guide me through process , tell me how done. in advance help. code sample can found here.
you want compile kernel source code first, or check if below path exists
/lib/modules/kernel-version/build or more precisely
/lib/modules/`uname -r`/build or
path kernel build this path kernel build tree present.
needless normal gcc based compilation wont work here.
Comments
Post a Comment