I have:
- A C program
main.cwith the main function that has the function call. - Another C program
test.cwith function definitions. - A header
test.hhas the common declarations.
Pls read Carefully my objective
my objective is to have a kernel object and a appliction that uses it.
and i need to give some inputs to the function at runtime and process with that.
i’m using it in terminal.
Can anyone please help me out?
For compiling kernel module, you can write this basic makefile :
After that, you’ll have to build and load your module with
But when I read you, I guess that what you really want to do is not a kernel module.
I think you want to build a shared library (.so file or .dll), isn’t it ?
If it’s a linux shared library you want to build here’s the commands to invoke :
But if you just want to build a static binary in the classical way :