函数逻辑报告

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_percpu - switch a percpu_ref to percpu mode*@ref: percpu_ref to switch to percpu mode* There's no reason to use this function for the usual reference counting.* To re-use an expired ref, use percpu_ref_reinit().

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

返回类型:void

参数:

类型参数名称
struct percpu_ref *ref
312  spin_lock_irqsave( & percpu_ref_switch_lock, flags)
314  force_atomic = false
315  __percpu_ref_switch_mode(ref, NULL)
317  spin_unlock_irqrestore( & percpu_ref_switch_lock, flags)
调用者
名称描述
blk_register_queuelk_register_queue - register a block layer queue with sysfs*@disk: Disk of which the request queue should be registered with sysfs.