kmodule does not look into /lib/modules/`uname -r`/extra

Matias Féliciano feliciano.matias at free.fr
Sat Oct 9 10:54:48 UTC 2004


I have a proprietary drivers that install modules
into /lib/modules/`unmae -r`/extra .
For me it's the right place.

But kmodule don't look into extra directory.
Which one is wrong ?

The code (kmodule.c from initscripts) :
        int isAvailable(char *modulename)
        {
                struct utsname utsbuf;
                char path[512];
        
                uname(&utsbuf);
                snprintf(mod_name,100,"%s.ko",modulename);
                snprintf(cmod_name,100,"%s.ko.gz",modulename);
                snprintf(path,512,"/lib/modules/%s/kernel",utsbuf.release);
                /* Do not set the third argument of this function to < 6. Blarg. */
                if (ftw(path,isModule,15) == 1) {
                        return 1;
                }
                return 0;
        }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20041009/69e1cd4b/attachment.sig>


More information about the fedora-devel-list mailing list