On Sun, 23 Mar 2025, Peter Skvarka wrote:
And does not exist another way how to make kobj_checksyms not check some
functions when module is loaded ?
All global symbols are exported. If you have private routines, make
them static and they won't be global.
There is no supportable way of bwing
hello Peter. As others have suggested, you could make a third kernel
module which the
other two depend on. Another alternative is to move the common code into one
of the existing
modules and make them dependent on each other as was discussed earler in the
thread.
For example, move the
On Sun, 23 Mar 2025, Peter Skvarka wrote:
it complains:
...kobj_checksyms, 1036: [./module_1.kmod]: linker error: global symbol
`MyFunctionName' redefined
Are names from all text sections put into global namespace ?
Yes
How to resolve it properly ?
Make a 3rd module with the shared/com
> Ok, my problem is now different than I described:
> module_1 and module_2 (dependency is that module_1 needs module_2)
> used some shared source files with functions.
> [...] modload ./module_2.kmod and then modload ./module_1.kmod [...]
> ...kobj_checksyms, 1036: [./module_1.kmod]: linker erro
On Sun, 23 Mar 2025, Peter Skvarka wrote:
You can only load other kernel modules from a kernel module (or the main
kernel).
In this case
when I have two modules where module_1 needs exported functions from
module_2.
Module_2 must be loaded first (i.e. with modload from shell)
and after it
On Sat, Mar 22, 2025 at 06:50:29PM +0100, Peter Skvarka wrote:
> I mean binary which export some functions and is loadable by kernel module.
You can only load other kernel modules from a kernel module (or the main
kernel).
Martin