]> git.sesse.net Git - bcachefs-tools-debian/blob - include/linux/srcu.h
Move c_src dirs back to toplevel
[bcachefs-tools-debian] / include / linux / srcu.h
1 #ifndef __TOOLS_LINUX_SRCU_H
2 #define __TOOLS_LINUX_SRCU_H
3
4 struct srcu_struct {
5 };
6
7 static inline void srcu_read_unlock(struct srcu_struct *ssp, int idx) {}
8
9 static inline int srcu_read_lock(struct srcu_struct *ssp)
10 {
11         return 0;
12 }
13
14 static inline bool poll_state_synchronize_srcu(struct srcu_struct *ssp, unsigned long cookie)
15 {
16         return false;
17 }
18
19 static inline unsigned long start_poll_synchronize_srcu(struct srcu_struct *ssp)
20 {
21         return 0;
22 }
23
24 static inline void cleanup_srcu_struct(struct srcu_struct *ssp) {}
25
26 static inline int init_srcu_struct(struct srcu_struct *ssp)
27 {
28         return 0;
29 }
30
31 #endif /* __TOOLS_LINUX_SRCU_H */