]> git.sesse.net Git - bcachefs-tools-debian/blob - libbcache/chardev.h
Delete more unused shim code, update bcache code
[bcachefs-tools-debian] / libbcache / chardev.h
1 #ifndef _BCACHE_CHARDEV_H
2 #define _BCACHE_CHARDEV_H
3
4 #ifndef NO_BCACHE_CHARDEV
5
6 long bch_fs_ioctl(struct cache_set *, unsigned, void __user *);
7
8 void bch_fs_chardev_exit(struct cache_set *);
9 int bch_fs_chardev_init(struct cache_set *);
10
11 void bch_chardev_exit(void);
12 int __init bch_chardev_init(void);
13
14 #else
15
16 static inline long bch_fs_ioctl(struct cache_set *c,
17                                 unsigned cmd, void __user * arg)
18 {
19         return -ENOSYS;
20 }
21
22 static inline void bch_fs_chardev_exit(struct cache_set *c) {}
23 static inline int bch_fs_chardev_init(struct cache_set *c) { return 0; }
24
25 static inline void bch_chardev_exit(void) {}
26 static inline int __init bch_chardev_init(void) { return 0; }
27
28 #endif
29
30 #endif /* _BCACHE_CHARDEV_H */