Re: multiple dependent out-of-tree modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 19, 2011 at 5:40 AM, Jorgyano Bruno <jorgyano@xxxxxxxxx> wrote:
>
> Hello guys!
> I'm working with three out-of-tree kernel modules,
> one of them export symbols used by the others.
> At compile time, MODPOST warns about undefined symbols,
> which are defined on the first module
> and used in the second and third modules.
> When I try to load the modules "insmod" returns the error "Unknown Symbol in
> module" for those symbols warned by MODPOST.
> How can I to compile several out-of-tree modules which depends on one
> another and make  to the dependant modules look for the needed symbols on
> the directories of the modules which have the symbols?
> I have found a similar question
> here http://www.spinics.net/lists/newbies/msg22926.html, but unanswered.
>
> -------------------------
> Jorgyano
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>

Hi Jorgyano,

insmod doesn't concern on modules decencies. Because of that you have
to load modules in the appropriate order by hand.  You can automate
that with script. Actually, such sort automation has been already done
- it is modprobe utility (see man modprobe for details) . The main
idea of MODPOST step is generating modules dependency. It is quite
simple text file, so you can edit it by hand. AFAIR there was issue
with MODPOST when cross compiling was used.

P.S. Sorry for my weak English.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux