Kernel Module Programming [on hold]
up vote
0
down vote
favorite
I wrote a kernel module. It contains two functions which are fibo()
and isPrime()
.
After I load this module into kernel, Can I call one of these functions ?
Actually, I tried it, but I got an error: undefined reference to fibo
drivers kernel
put on hold as off-topic by waltinator, muru, Thomas, Pilot6, Eric Carvalho yesterday
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – waltinator, muru, Thomas, Pilot6, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
0
down vote
favorite
I wrote a kernel module. It contains two functions which are fibo()
and isPrime()
.
After I load this module into kernel, Can I call one of these functions ?
Actually, I tried it, but I got an error: undefined reference to fibo
drivers kernel
put on hold as off-topic by waltinator, muru, Thomas, Pilot6, Eric Carvalho yesterday
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – waltinator, muru, Thomas, Pilot6, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.
That's not how kernel modules work at all. You want to investigate "library modules" "dynamic linking", readman ld.so
.
– waltinator
Nov 20 at 22:25
To write a kernel module you have to use the linux/init.h, linux/module.h, linux/kernel.h libs in your example. I don't know what you have done so far, however post your prgs !
– abu_bua
Nov 28 at 0:07
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I wrote a kernel module. It contains two functions which are fibo()
and isPrime()
.
After I load this module into kernel, Can I call one of these functions ?
Actually, I tried it, but I got an error: undefined reference to fibo
drivers kernel
I wrote a kernel module. It contains two functions which are fibo()
and isPrime()
.
After I load this module into kernel, Can I call one of these functions ?
Actually, I tried it, but I got an error: undefined reference to fibo
drivers kernel
drivers kernel
asked Nov 20 at 19:52
Goktug
1136
1136
put on hold as off-topic by waltinator, muru, Thomas, Pilot6, Eric Carvalho yesterday
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – waltinator, muru, Thomas, Pilot6, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by waltinator, muru, Thomas, Pilot6, Eric Carvalho yesterday
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – waltinator, muru, Thomas, Pilot6, Eric Carvalho
If this question can be reworded to fit the rules in the help center, please edit the question.
That's not how kernel modules work at all. You want to investigate "library modules" "dynamic linking", readman ld.so
.
– waltinator
Nov 20 at 22:25
To write a kernel module you have to use the linux/init.h, linux/module.h, linux/kernel.h libs in your example. I don't know what you have done so far, however post your prgs !
– abu_bua
Nov 28 at 0:07
add a comment |
That's not how kernel modules work at all. You want to investigate "library modules" "dynamic linking", readman ld.so
.
– waltinator
Nov 20 at 22:25
To write a kernel module you have to use the linux/init.h, linux/module.h, linux/kernel.h libs in your example. I don't know what you have done so far, however post your prgs !
– abu_bua
Nov 28 at 0:07
That's not how kernel modules work at all. You want to investigate "library modules" "dynamic linking", read
man ld.so
.– waltinator
Nov 20 at 22:25
That's not how kernel modules work at all. You want to investigate "library modules" "dynamic linking", read
man ld.so
.– waltinator
Nov 20 at 22:25
To write a kernel module you have to use the linux/init.h, linux/module.h, linux/kernel.h libs in your example. I don't know what you have done so far, however post your prgs !
– abu_bua
Nov 28 at 0:07
To write a kernel module you have to use the linux/init.h, linux/module.h, linux/kernel.h libs in your example. I don't know what you have done so far, however post your prgs !
– abu_bua
Nov 28 at 0:07
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
That's not how kernel modules work at all. You want to investigate "library modules" "dynamic linking", read
man ld.so
.– waltinator
Nov 20 at 22:25
To write a kernel module you have to use the linux/init.h, linux/module.h, linux/kernel.h libs in your example. I don't know what you have done so far, however post your prgs !
– abu_bua
Nov 28 at 0:07