Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:run_cmd

Proto:static int run_cmd(const char *cmd)

Type:int

Parameter:

TypeParameterName
const char *cmd
425  static char * envp[] = {"HOME=/", "PATH=/sbin:/bin:/usr/sbin:/usr/bin", NULL}
431  argv = argv_split - split a string at whitespace, returning an argv*@gfp: the GFP mask used to allocate memory*@str: the string to be split*@argcp: returned argument count* Returns an array of pointers to strings which are split out from*@str
432  If argv Then
433  ret = all_usermodehelper() - prepare and start a usermode application*@path: path to usermode executable*@argv: arg vector for process*@envp: environment for process*@wait: wait for the application to finish and return status
434  argv_free - free an argv*@argv - the argument vector to be freed* Frees an argv and the strings it points to.
435  Else
436  ret = -ENOMEM
439  Return ret
Caller
NameDescribe
__orderly_reboot
__orderly_poweroff