Lines Matching refs:key
19 DEFINE_STATIC_KEY_TRUE(key);
20 DEFINE_STATIC_KEY_FALSE(key);
33 DEFINE_STATIC_KEY_FALSE(key);
37 if (static_branch_unlikely(&key))
43 static_branch_enable(&key);
45 static_branch_disable(&key);
82 if (static_branch_unlikely(&key))
96 Static key label API, usage and examples
100 In order to make use of this optimization you must first define a key::
102 DEFINE_STATIC_KEY_TRUE(key);
106 DEFINE_STATIC_KEY_FALSE(key);
109 The key must be global, that is, it can't be allocated on the stack or dynamically
112 The key is then used in code as::
114 if (static_branch_unlikely(&key))
121 if (static_branch_likely(&key))
132 static_branch_enable(&key);
136 static_branch_disable(&key);
140 static_branch_inc(&key);
142 static_branch_dec(&key);
146 reference counting. For example, if the key is initialized true, a
149 key is initialized false, a 'static_branch_inc()', will change the branch to
160 patched). Calling the static key API from within a hotplug notifier is
195 * ``__always_inline bool arch_static_branch(struct static_key *key, bool branch)``,
198 * ``__always_inline bool arch_static_branch_jump(struct static_key *key, bool branch)``,
221 + if (static_branch_unlikely(&key))
254 …f810441f0: 8b 05 8a 52 d8 00 mov 0xd8528a(%rip),%eax # ffffffff81dc9480 <key>
290 Since there are a number of static key API uses in the scheduler paths,