Function report |
Source Code:kernel\umh.c |
Create Date:2022-07-28 09:22:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This is the task which runs the usermode application
Proto:static int call_usermodehelper_exec_async(void *data)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | data |
| 74 | spin_lock_irq( & siglock) |
| 76 | spin_unlock_irq( & siglock) |
| 82 | set_user_nice(current process, 0) |
| 89 | spin_lock( & umh_sysctl_lock) |
| 91 | caps our children can inherit = cap_intersect(usermodehelper_inheritable, caps our children can inherit ) |
| 93 | spin_unlock( & umh_sysctl_lock) |
| 95 | If init Then |
| 105 | pid = task_pid_nr(current process) |
| 106 | If file Then |
| 107 | retval = do_execve_file(file, argv, envp) |
| 109 | If Not retval Then flags |= I'm an Usermodehelper process |
| 111 | Else retval = do_execve(getname_kernel(path), (constchar__user * const__user * )argv, (constchar__user * const__user * )envp) |
| 115 | out : |
| 121 | If Not (wait & wait for the process to complete ) Then umh_complete(sub_info) |
| 123 | If Not retval Then Return 0 |
| 125 | do_exit(0) |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |