函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\jump_label.c Create Date:2022-07-27 15:10:15
Last Modify:2020-03-17 20:59:06 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:static_key_enable_cpuslocked

函数原型:void static_key_enable_cpuslocked(struct static_key *key)

返回类型:void

参数:

类型参数名称
struct static_key *key
166  STATIC_KEY_CHECK_USE(key)
167  lockdep_assert_cpus_held()
169  如果atomic_read( & enabled)大于0则
170  WARN_ON_ONCE(atomic_read( & enabled) != 1)
171  返回
174  jump_label_lock()
175  如果atomic_read( & enabled)恒等于0则
176  atomic_set( & enabled, - 1)
177  jump_label_update(key)
181  atomic_set_release( & enabled, 1)
183  jump_label_unlock()