JuanMa Cuevas
JuanMa Cuevas

Reputation: 1182

How can I make a linux module load another module?

I have the task to program one module 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

Upvotes: 3

Views: 1296

Answers (2)

Dr. Snoopy
Dr. Snoopy

Reputation: 56387

Use request_module to load a module

Upvotes: 4

Hasturkun
Hasturkun

Reputation: 36412

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.

Upvotes: 1

Related Questions