How to use linux kernel find_module() function? The documentation states that "must contain module_mutex".
- Does this mean that I have to acquire a lock in my modular code before looking for a pointer to another?
- When is this mutex blocked by non-modular kernel code?
Context
I am debugging a set of kernel modules working together.
Module. The calling functions of module B. At some point, the function C of module A uses the usage counter of module B is invalid. I determined that this does not happen in the function of module B. I would like to debug the use of counting module B from C. To do this, I am going to use find_module () to get a pointer to B.
linux-kernel kernel-module
Basilevs
source share