Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\module.c Create Date:2022-07-28 10:58:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_module_license_and_versions

Proto:static int check_module_license_and_versions(struct module *mod)

Type:int

Parameter:

TypeParameterName
struct module *mod
3317  prev_taint = test_taint(This cannot be an enum because some may be used in assembly source. )
3324  If strcmp( Unique handle for this module , "ndiswrapper") == 0 Then add_taint: add a taint flag if not already set.*@flag: one of the TAINT_* constants.*@lockdep_ok: whether lock debugging is still OK.* If something bad has gone wrong, you'll want @lockdebug_ok = false, but for
3328  If strcmp( Unique handle for this module , "driverloader") == 0 Then add_taint_module(mod, This cannot be an enum because some may be used in assembly source. , LOCKDEP_NOW_UNRELIABLE)
3333  If strcmp( Unique handle for this module , "lve") == 0 Then add_taint_module(mod, This cannot be an enum because some may be used in assembly source. , LOCKDEP_NOW_UNRELIABLE)
3337  If Not prev_taint && test_taint(This cannot be an enum because some may be used in assembly source. ) Then pr_warn("%s: module license taints kernel.\n", Unique handle for this module )
3353  Return 0
Caller
NameDescribe
load_moduleAllocate and load the module: note that size of section 0 is alwayszero, and we rely on this for optional sections.