Patent ID: 7568197

Claim:
A method for loading a first kernel module, comprising: loading a preload module into a kernel, wherein loading the preload module comprises creating a dynamic dependency list; loading the first kernel module comprising a static dependency list into the kernel; triggering a hook when the static dependency list is reviewed; obtaining module information associated with the first kernel module using the hook; searching, in the dynamic dependency list, for a dynamic dependency between the first kernel module and a second kernel module using the module information; updating the static dependency list with the dynamic dependency between the first kernel module and the second kernel module to obtain an updated static dependency list when the dynamic dependency between the first kernel module and the second kernel module is present in the dynamic dependency list, creating an interposer module, wherein the interposer module defines a new kernel symbol definition for a kernel symbol; defining a configuration file, wherein the configuration file indicates that the first kernel module is dependent on the interposer module; loading the interposer module before the first kernel module using the static dependency list; re-defining the kernel symbol using the new kernel symbol definition; loading the first kernel module, wherein the first kernel module comprises the kernel symbol; and resolving the kernel using the new kernel symbol definition.