linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Autoloading modules after socket calls.
@ 2007-01-15 15:01 Jonathan Walsh
  2007-01-15 15:43 ` Steve Graegert
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Walsh @ 2007-01-15 15:01 UTC (permalink / raw)
  To: linux-c-programming

I am not sure how used this list is, but it seemed like a good place to 
ask this sort of question.  I was wondering if there is a way to have 
the kernel autoload a module on a failed call to something that requires 
it.  For example if I have sctp compiled as a module, but not inserted, 
and I make a call to socket() requesting a IPPROTO_SCTP socket it will 
fail with EPROTONOSUPPORT.  Is there a way in some sort of kernel 
configuration of specifying that the sctp module should be swapped in at 
this point?  I could write code to pick up this error and insert the 
module myself, but I was hoping for a way for the kernel to 
automatically do it for me.

Thanks,

Jonathan Walsh
Associate Member Engineering Staff
Lockheed Martin Advanced Technology Laboratories

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-15 15:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-15 15:01 Autoloading modules after socket calls Jonathan Walsh
2007-01-15 15:43 ` Steve Graegert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).