函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:call_usermodehelper_setup_file

函数原型:struct subprocess_info *call_usermodehelper_setup_file(struct file *file, int (*init)(struct subprocess_info *info, struct cred *new), void (*cleanup)(struct subprocess_info *info), void *data)

返回类型:struct subprocess_info

参数:

类型参数名称
struct file *file
int (*init
void (*cleanup
void *data
413  info等于data
414  cmdline等于如果cmdlinecmdline否则"usermodehelper"
416  sub_info等于分配内存并置零
417  如果非sub_info则返回:NULL
420  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
421  如果非argv
422  释放内存
423  返回:NULL
426  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)
427  path等于"none"
428  file等于file
429  init等于init
430  cleanup等于cleanup
431  data等于data
432  返回:sub_info
调用者
名称描述
fork_usermode_blobrk_usermode_blob - fork a blob of bytes as a usermode process*@data: a blob of bytes that can be do_execv-ed as a file*@len: length of the blob*@info: information about usermode process (shouldn't be NULL)* If info->cmdline is set it will be used as