Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:call_usermodehelper_setup_file

Proto: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)

Type:struct subprocess_info

Parameter:

TypeParameterName
struct file *file
int (*init
void (*cleanup
void *data
413  info = data
414  cmdline = If cmdline Then cmdline Else "usermodehelper"
416  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).
417  If Not sub_info Then Return 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  If Not argv Then
422  free previously allocated memory
423  Return 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  Return sub_info
Caller
NameDescribe
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