Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用API调用而不是shell命令删除Linux内核模块?_Linux_Linux Device Driver - Fatal编程技术网

如何使用API调用而不是shell命令删除Linux内核模块?

如何使用API调用而不是shell命令删除Linux内核模块?,linux,linux-device-driver,Linux,Linux Device Driver,如何使用API调用而不是shell命令删除.ko模块。System()函数,我已经知道了。还有别的办法吗 此链接将为您提供解决方案^^^我同意该链接中的评论,即System()是实现此目标的更优雅的方式。但是,如果您想知道系统调用的rmmod是什么,请使用“strace rmmod foomod.ko”。rm和insmod的可能副本将是类似的。

如何使用API调用而不是shell命令删除.ko模块。System()函数,我已经知道了。还有别的办法吗

此链接将为您提供解决方案^^^我同意该链接中的评论,即System()是实现此目标的更优雅的方式。但是,如果您想知道系统调用的rmmod是什么,请使用“strace rmmod foomod.ko”。rm和insmod的可能副本将是类似的。