1

How can i remove .ko module using an API call instead of a shell command. System() function i already know. Is there any other way?

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
ramesh
  • 31
  • 3
  • 2
    this link would provide with you the solution http://stackoverflow.com/questions/5947286/how-can-linux-kernel-modules-be-loaded-from-c-code – Pradheep Mar 26 '13 at 17:19
  • 1
    ^^^ I agree with the comments in that link that System() is the more elegant way to achieve this. However, if you want to know what system calls rmmod is invoking, use 'strace rmmod foomod.ko'. – Peter L. Mar 26 '13 at 17:26
  • 1
    Possible duplicate of [How can Linux kernel modules be loaded from C code?](https://stackoverflow.com/questions/5947286/how-can-linux-kernel-modules-be-loaded-from-c-code) rm and insmod will be analogous. – Ciro Santilli OurBigBook.com Jul 25 '17 at 07:57

0 Answers0