Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:show_initstate

Proto:static ssize_t show_initstate(struct module_attribute *mattr, struct module_kobject *mk, char *buffer)

Type:ssize_t

Parameter:

TypeParameterName
struct module_attribute *mattr
struct module_kobject *mk
char *buffer
1197  state = "unknown"
1200  Case state == Normal state.
1201  state = "live"
1202  Break
1203  Case state == Full formed, running module_init.
1204  state = "coming"
1205  Break
1206  Case state == Going away.
1207  state = "going"
1208  Break
1209  Default
1210  BUG()
1212  Return sprintf(buffer, "%s\n", state)