* Help writing kernel module...
@ 2008-08-14 18:00 Ryan Hope
2008-08-14 18:02 ` Lennart Sorensen
0 siblings, 1 reply; 4+ messages in thread
From: Ryan Hope @ 2008-08-14 18:00 UTC (permalink / raw)
To: LKML
I can't find any information on how to make a kernel module load
another module. Can someone please tell me how to do this? Thanks in
advance.
-Ryan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help writing kernel module...
2008-08-14 18:00 Help writing kernel module Ryan Hope
@ 2008-08-14 18:02 ` Lennart Sorensen
2008-08-14 19:01 ` Ryan Hope
0 siblings, 1 reply; 4+ messages in thread
From: Lennart Sorensen @ 2008-08-14 18:02 UTC (permalink / raw)
To: Ryan Hope; +Cc: LKML
On Thu, Aug 14, 2008 at 02:00:26PM -0400, Ryan Hope wrote:
> I can't find any information on how to make a kernel module load
> another module. Can someone please tell me how to do this? Thanks in
> advance.
Use a symbol exported by that other module and your module should
automatically depend on that module and modprobe will nicely load it
before your module for you.
--
Len Sorensen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help writing kernel module...
2008-08-14 18:02 ` Lennart Sorensen
@ 2008-08-14 19:01 ` Ryan Hope
2008-08-14 19:44 ` Lennart Sorensen
0 siblings, 1 reply; 4+ messages in thread
From: Ryan Hope @ 2008-08-14 19:01 UTC (permalink / raw)
To: Lennart Sorensen; +Cc: LKML
what about if I want to determine if a module is loaded?
On Thu, Aug 14, 2008 at 2:02 PM, Lennart Sorensen
<lsorense@csclub.uwaterloo.ca> wrote:
> On Thu, Aug 14, 2008 at 02:00:26PM -0400, Ryan Hope wrote:
>> I can't find any information on how to make a kernel module load
>> another module. Can someone please tell me how to do this? Thanks in
>> advance.
>
> Use a symbol exported by that other module and your module should
> automatically depend on that module and modprobe will nicely load it
> before your module for you.
>
> --
> Len Sorensen
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help writing kernel module...
2008-08-14 19:01 ` Ryan Hope
@ 2008-08-14 19:44 ` Lennart Sorensen
0 siblings, 0 replies; 4+ messages in thread
From: Lennart Sorensen @ 2008-08-14 19:44 UTC (permalink / raw)
To: Ryan Hope; +Cc: LKML
On Thu, Aug 14, 2008 at 03:01:56PM -0400, Ryan Hope wrote:
> what about if I want to determine if a module is loaded?
Don't know. Of course really why would you care if a module of a
certain name is loaded. You should only care that a module providing
the function you want is loaded.
Perhaps you need to explain what you are trying to do.
--
Len Sorensen
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-14 19:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-14 18:00 Help writing kernel module Ryan Hope
2008-08-14 18:02 ` Lennart Sorensen
2008-08-14 19:01 ` Ryan Hope
2008-08-14 19:44 ` Lennart Sorensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®