开发者

How can I make a linux module load another module?

开发者 https://www.devze.com 2023-01-14 17:44 出处:网络
I have the task to program one m开发者_如何学Codule to store some data and another module to control the first one, been able to load/unload it from the code.

I have the task to program one m开发者_如何学Codule to store some data and another module to control the first one, been able to load/unload it from the code.

I'm and kernel programming ignorant but i've tried hard to find the way to do this. Is there any function to do this?

Thank you very much in advance


Use request_module to load a module


You usually wouldn't make one module load another, instead using the kernel's dependency system to load your prerequisites on demand. otherwise use request_module as suggested by Matias Valdenegro.

0

精彩评论

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