开发者

Programmatically insert and remove kernel modules in C

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜