Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\jump_label.c Create Date:2022-07-28 13:48:34
Last Modify:2020-03-17 20:59:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:static_key_enable_cpuslocked

Proto:void static_key_enable_cpuslocked(struct static_key *key)

Type:void

Parameter:

TypeParameterName
struct static_key *key
166  STATIC_KEY_CHECK_USE(key)
167  lockdep_assert_cpus_held()
169  If atomic_read( & enabled) > 0 Then
170  WARN_ON_ONCE(atomic_read( & enabled) != 1)
171  Return
174  jump_label_lock()
175  If atomic_read( & enabled) == 0 Then
176  atomic_set( & enabled, - 1)
177  jump_label_update(key)
181  atomic_set_release( & enabled, 1)
183  jump_label_unlock()