Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:jump_label_update

Proto:static void jump_label_update(struct static_key *key)

Type:void

Parameter:

TypeParameterName
struct static_key *key
789  stop = __stop___jump_table
794  If static_key_linked(key) Then
795  __jump_label_mod_update(key)
796  Return
799  Even if we don't have any preemption, we need preempt disable/enable* to be barriers, so that we don't have things like get_user/put_user* that can cause faults and scheduling migrate into our preempt-protected* region.()
800  mod = __module_address - get the module which contains an address.*@addr: the address.* Must be called with preempt disabled or module mutex held so that* module doesn't get freed during this.
801  If mod Then stop = jump_entries + num_jump_entries
803  preempt_enable()
805  entry = static_key_entries(key)
807  If entry Then __jump_label_update(key, entry, stop, Values used for system_state. Ordering of the states must not be changed* as code checks for <, <=, >, >= STATE. < SYSTEM_RUNNING)
Caller
NameDescribe
static_key_slow_inc
static_key_enable_cpuslocked
static_key_disable_cpuslocked
__static_key_slow_dec_cpuslocked