Renamed get_vmlinux_from_volobj() to get_module_from_volobj_type()

This commit is contained in:
Gustavo Moreira
2023-05-09 09:05:37 +02:00
parent de28b5ab70
commit d367b973a5
2 changed files with 3 additions and 3 deletions
@@ -152,7 +152,7 @@ class LinuxUtilities(interfaces.configuration.VersionableInterface):
"""
dentry = filp.get_dentry()
kernel_module = cls.get_vmlinux_from_volobj(context, dentry)
kernel_module = cls.get_module_from_volobj_type(context, dentry)
sym_addr = dentry.d_op.d_dname
symbs = list(kernel_module.get_symbols_by_absolute_location(sym_addr))
@@ -380,7 +380,7 @@ class LinuxUtilities(interfaces.configuration.VersionableInterface):
)
@classmethod
def get_vmlinux_from_volobj(
def get_module_from_volobj_type(
cls,
context: interfaces.context.ContextInterface,
volobj: interfaces.objects.ObjectInterface,
@@ -890,7 +890,7 @@ class vfsmount(objects.StructType):
Returns:
mount: the struct 'mount' containing this 'vfsmount'.
"""
vmlinux = linux.LinuxUtilities.get_vmlinux_from_volobj(self._context, self)
vmlinux = linux.LinuxUtilities.get_module_from_volobj_type(self._context, self)
return linux.LinuxUtilities.container_of(
self.vol.offset, "mount", "mnt", vmlinux
)