Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:all_usermodehelper_setup - prepare to call a usermode helper*@path: path to usermode executable*@argv: arg vector for process*@envp: environment for process*@gfp_mask: gfp mask for memory allocation*@cleanup: a cleanup function*@init: an init

Proto:struct subprocess_info *call_usermodehelper_setup(const char *path, char **argv, char **envp, gfp_t gfp_mask, int (*init)(struct subprocess_info *info, struct cred *new), void (*cleanup)(struct subprocess_info *info), void *data)

Type:struct subprocess_info

Parameter:

TypeParameterName
const char *path
char **argv
char **envp
gfp_tgfp_mask
int (*init
void (*cleanup
void *data
386  sub_info = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
387  If Not sub_info Then Go to out
390  INIT_WORK( & work, We need to create the usermodehelper kernel thread from a task that is affine* to an optimized set of CPUs (or nohz housekeeping ones) such that they* inherit a widest affinity irrespective of call_usermodehelper() callers with)
395  path = path
397  argv = argv
398  envp = envp
400  cleanup = cleanup
401  init = init
402  data = data
403  out :
404  Return sub_info
Caller
NameDescribe
call_usermodehelperall_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
call_modprobe