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










share|improve this 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", 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

















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










share|improve this 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", 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















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










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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", 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




















  • 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


















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

















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?