开发者

Programmatically insert and remove kernel modules in C

开发者 https://www.devze.com 2022-12-29 19:25 出处:网络
Is there anyway to do \"insmod\" and \"rmmod\" from C/C++ c开发者_高级运维ode?Other than running system(...), is there a Kernel API that will allow me to do this?Have you looked at the module-init-too

Is there anyway to do "insmod" and "rmmod" from C/C++ c开发者_高级运维ode? Other than running system(...), is there a Kernel API that will allow me to do this?


Have you looked at the module-init-tools source?


In addition to viewing the source for insmod and module-init-tools you could strace and ltrace a run of insmod.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号