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.

this should started


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -