函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__usermodehelper_disable - Prevent new helpers from being started.*@depth: New value to assign to usermodehelper_disabled.* Set usermodehelper_disabled to @depth and wait for running helpers to exit.

函数原型:int __usermodehelper_disable(enum umh_disable_depth depth)

返回类型:int

参数:

类型参数名称
enum umh_disable_depthdepth
321  如果非depth则返回:负EINVAL
324  lock for writing
325  If set, call_usermodehelper_exec() will exit immediately returning -EBUSY* (used for preventing user land processes from being created after the user* land has been frozen during a system-wide hibernation or suspend operation).等于depth
326  lease a write lock
334  retval等于wait_event_timeout - sleep until a condition gets true or a timeout elapses*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for*@timeout: timeout, in jiffies* The process is put to sleep (TASK_UNINTERRUPTIBLE) until the(Wait queue head used by usermodehelper_disable() to wait for all running* helpers to finish., atomic_read( & Number of helpers running ) == 0, Time to wait for running_helpers to become zero before the setting of* usermodehelper_disabled in usermodehelper_disable() fails)
337  如果retval则返回:0
340  __usermodehelper_set_disable_depth - Modify usermodehelper_disabled.*@depth: New value to assign to usermodehelper_disabled.* Change the value of usermodehelper_disabled (under umhelper_sem locked for* writing) and wakeup tasks waiting for it to change.
341  返回:负EAGAIN
调用者
名称描述
freeze_processesze_processes - Signal user space processes to enter the refrigerator.* The current thread will not be frozen. The same process that calls* freeze_processes must later call thaw_processes.* On success, returns 0
usermodehelper_disable