函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This is the task which runs the usermode application

函数原型:static int call_usermodehelper_exec_async(void *data)

返回类型:int

参数:

类型参数名称
void *data
70  sub_info等于data
74  spin_lock_irq( & siglock)
75  Flush all handlers for a task.
76  spin_unlock_irq( & siglock)
82  set_user_nice(当前进程, 0)
84  retval等于负ENOMEM
85  new等于prepare_kernel_cred(当前进程)
86  如果非new则转到:out
89  加自旋锁
90  capability bounding set 等于cap_intersect(usermodehelper_bset, capability bounding set )
91  caps our children can inherit 等于cap_intersect(usermodehelper_inheritable, caps our children can inherit )
93  自旋锁解锁
95  如果init
96  retval等于init(sub_info, new)
97  如果retval
99  转到:out
103  mmit_creds - Install new credentials upon the current task*@new: The credentials to be assigned* Install a new set of credentials to the current task, using RCU to replace* the old set. Both the objective and the subjective credentials pointers are
105  pid等于task_pid_nr(当前进程)
106  如果file
107  retval等于do_execve_file(file, argv, envp)
109  如果非retvalflags或等于I'm an Usermodehelper process
111  否则retval等于do_execve(getname_kernel(path), (constchar__user * const__user * )argv, (constchar__user * const__user * )envp)
115  out :
116  retval等于retval
121  如果非wait按位与wait for the process to complete 的值则umh_complete(sub_info)
123  如果非retval则返回:0
125  do_exit(0)