函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\umh.c Create Date:2022-07-27 10:22:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型: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)

返回类型:struct subprocess_info

参数:

类型参数名称
const char *path
char **argv
char **envp
gfp_tgfp_mask
int (*init
void (*cleanup
void *data
386  sub_info等于分配内存并置零
387  如果非sub_info则转到: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  返回:sub_info
调用者
名称描述
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
handle_initrd
call_usermodehelper_keysCall a usermode helper with a specific session keyring.
do_coredump