Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\kdb\kdb_main.c Create Date:2022-07-28 11:41:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kdb_lsmod - This function implements the 'lsmod' command. Lists* currently loaded kernel modules.* Mostly taken from userland lsmod.

Proto:static int kdb_lsmod(int argc, const char **argv)

Type:int

Parameter:

TypeParameterName
intargc
const char **argv
2028  If argc != 0 Then Return KDB_ARGCOUNT
2031  kdb_printf("Module Size modstruct Used by\n")
2033  If state == Still setting it up. Then Continue
2036  kdb_printf("%-20s%8u 0x%px ", Unique handle for this module , Total size. , (void * )mod)
2041  If state == Going away. Then kdb_printf(" (Unloading)")
2043  Else if state == Full formed, running module_init. Then kdb_printf(" (Loading)")
2045  Else kdb_printf(" (Live)")
2047  kdb_printf(" 0x%px", The actual code + data. )
2061  Return 0