Re: Module.symvers ?????????

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

 



Le Tue, 29 Jan 2008 12:50:15 +0530,
Onkar <onkar.n.m@xxxxxxxxx> a écrit :

> What does  Module.symvers contain and why is it useful ?

This file is generated by the kernel during the compilation. It
contains the versioning informations for each symbol of the kernel that
is exported (i.e, usable by a module). It is used when compiling
modules.

The compilation process of a module stores the versioning informations
of all symbols used by the module inside the resulting .ko file. Then,
when you load the module, the kernel compares them with the current
versioning informations of the symbol. If you correctly compiled your
module against the kernel then everything will be ok. Otherwise, when
trying to load the module, the kernel complain that you did something
wrong: trying to load the module which has been compiled for an other
version of the kernel.

Look at
http://lxr.free-electrons.com/source/Documentation/kbuild/modules.txt#442
for more informations.

Sincerly,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Free Embedded Linux Training Materials
on http://free-electrons.com/training
(More than 1500 pages!)

Attachment: signature.asc
Description: PGP signature


[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