函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:percpu_ref_switch_to_atomic_sync - switch a percpu_ref to atomic mode*@ref: percpu_ref to switch to atomic mode* Schedule switching the ref to atomic mode, and wait for the* switch to complete. Caller must ensure that no other thread

函数原型:void percpu_ref_switch_to_atomic_sync(struct percpu_ref *ref)

返回类型:void

参数:

类型参数名称
struct percpu_ref *ref
285  percpu_ref_switch_to_atomic - switch a percpu_ref to atomic mode*@ref: percpu_ref to switch to atomic mode*@confirm_switch: optional confirmation callback* There's no reason to use this function for the usual reference counting.
286  wait_event - sleep until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_UNINTERRUPTIBLE) until the*@condition evaluates to true(percpu_ref_switch_waitq, !confirm_switch)
调用者
名称描述
blk_pre_runtime_suspendlk_pre_runtime_suspend - Pre runtime suspend check*@q: the queue of the device* Description:* This function will check if runtime suspend is allowed for the device* by examining if there are any requests pending in the queue