Lines Matching refs:ps_lock
105 allocate a shadow copy of the ps_lock pointer, then initialize it:
112 spinlock_t *ps_lock;
118 ps_lock = klp_shadow_alloc(sta, PS_LOCK, sizeof(*ps_lock), gfp,
120 if (!ps_lock)
122 spin_lock_init(ps_lock);
125 When requiring a ps_lock, query the shadow variable API to retrieve one
130 spinlock_t *ps_lock;
133 ps_lock = klp_shadow_get(sta, PS_LOCK);
134 if (ps_lock)
135 spin_lock(ps_lock);
171 spinlock_t *ps_lock;
174 ps_lock = klp_shadow_get_or_alloc(sta, PS_LOCK,
175 sizeof(*ps_lock), GFP_ATOMIC,
178 if (ps_lock)
179 spin_lock(ps_lock);