Lines Matching refs:ps_lock
120 allocate a shadow copy of the ps_lock pointer, then initialize it::
127 spinlock_t *ps_lock;
133 ps_lock = klp_shadow_alloc(sta, PS_LOCK, sizeof(*ps_lock), gfp,
135 if (!ps_lock)
137 spin_lock_init(ps_lock);
140 When requiring a ps_lock, query the shadow variable API to retrieve one
145 spinlock_t *ps_lock;
148 ps_lock = klp_shadow_get(sta, PS_LOCK);
149 if (ps_lock)
150 spin_lock(ps_lock);
186 spinlock_t *ps_lock;
189 ps_lock = klp_shadow_get_or_alloc(sta, PS_LOCK,
190 sizeof(*ps_lock), GFP_ATOMIC,
193 if (ps_lock)
194 spin_lock(ps_lock);