lkml.org 
[lkml]   [2006]   [Apr]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 14 Apr 2006 12:57:00 +0200
From<>
SubjectRe: [PATCH] Kmod optimization
On Thu, Apr 13, 2006 at 04:13:30PM -0700, Greg KH wrote:
> The kernel will not call out to try to resolve the symbols, that's up to
> userspace to handle.  Hint, try running 'modprobe moduleA.ko' instead,
> it will handle the dependancies correctly.
> 
> I still don't see where this is really needed...
> 
> thanks,
> 
> greg k-h

I meant, the purpose of request_module is to handle dependencies from the
kernel : if we need a functionnality, we request it. It's the definition
of dependency.

But I understood the mechanism by reading some request_module examples.
In fact, we test the avalaibility of the functionnality before calling
the request_module function.

So the case described in my previous message would normally never
happen.

if (!functionnality_not_avalaible) {
	module_request(functionnality)
	if (!functionnality_not_avalaible)
	    goto error;
}
Sorry, so the discussion is closed : forget it :)

-- 
tyler
tyler@agat.net






___________________________________________________________________________ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services pr
\
 
 \ /
  Last update: 2006-04-14 13:02    [from the cache]
©2003-2008