Lines Matching full:ssp
28 int __init_srcu_struct(struct srcu_struct *ssp, const char *name,
31 #define init_srcu_struct(ssp) \ argument
35 __init_srcu_struct((ssp), #ssp, &__srcu_key); \
41 int init_srcu_struct(struct srcu_struct *ssp);
57 void call_srcu(struct srcu_struct *ssp, struct rcu_head *head,
59 void cleanup_srcu_struct(struct srcu_struct *ssp);
60 int __srcu_read_lock(struct srcu_struct *ssp) __acquires(ssp);
61 void __srcu_read_unlock(struct srcu_struct *ssp, int idx) __releases(ssp);
62 void synchronize_srcu(struct srcu_struct *ssp);
68 * @ssp: The srcu_struct structure to check
82 static inline int srcu_read_lock_held(const struct srcu_struct *ssp) in srcu_read_lock_held() argument
86 return lock_is_held(&ssp->dep_map); in srcu_read_lock_held()
91 static inline int srcu_read_lock_held(const struct srcu_struct *ssp) in srcu_read_lock_held() argument
101 * @ssp: pointer to the srcu_struct, which is used to check that we
110 #define srcu_dereference_check(p, ssp, c) \ argument
111 __rcu_dereference_check((p), (c) || srcu_read_lock_held(ssp), __rcu)
116 * @ssp: pointer to the srcu_struct, which is used to check that we
123 #define srcu_dereference(p, ssp) srcu_dereference_check((p), (ssp), 0) argument
128 * @ssp: pointer to the srcu_struct, which is used to check that we
131 #define srcu_dereference_notrace(p, ssp) srcu_dereference_check((p), (ssp), 1) argument
135 * @ssp: srcu_struct in which to register the new reader.
150 static inline int srcu_read_lock(struct srcu_struct *ssp) __acquires(ssp) in srcu_read_lock() argument
154 retval = __srcu_read_lock(ssp); in srcu_read_lock()
155 rcu_lock_acquire(&(ssp)->dep_map); in srcu_read_lock()
161 srcu_read_lock_notrace(struct srcu_struct *ssp) __acquires(ssp) in srcu_read_lock_notrace() argument
165 retval = __srcu_read_lock(ssp); in srcu_read_lock_notrace()
171 * @ssp: srcu_struct in which to unregister the old reader.
176 static inline void srcu_read_unlock(struct srcu_struct *ssp, int idx) in srcu_read_unlock() argument
177 __releases(ssp) in srcu_read_unlock()
180 rcu_lock_release(&(ssp)->dep_map); in srcu_read_unlock()
181 __srcu_read_unlock(ssp, idx); in srcu_read_unlock()
186 srcu_read_unlock_notrace(struct srcu_struct *ssp, int idx) __releases(ssp) in srcu_read_unlock_notrace() argument
188 __srcu_read_unlock(ssp, idx); in srcu_read_unlock_notrace()