]> git.sesse.net Git - bcachefs-tools-debian/blob - libbcachefs/chardev.h
Update bcachefs sources to edf5f38218 bcachefs: Refactor superblock code
[bcachefs-tools-debian] / libbcachefs / chardev.h
1 #ifndef _BCACHEFS_CHARDEV_H
2 #define _BCACHEFS_CHARDEV_H
3
4 #ifndef NO_BCACHEFS_FS
5
6 long bch2_fs_ioctl(struct bch_fs *, unsigned, void __user *);
7
8 void bch2_fs_chardev_exit(struct bch_fs *);
9 int bch2_fs_chardev_init(struct bch_fs *);
10
11 void bch2_chardev_exit(void);
12 int __init bch2_chardev_init(void);
13
14 #else
15
16 static inline long bch2_fs_ioctl(struct bch_fs *c,
17                                 unsigned cmd, void __user * arg)
18 {
19         return -ENOSYS;
20 }
21
22 static inline void bch2_fs_chardev_exit(struct bch_fs *c) {}
23 static inline int bch2_fs_chardev_init(struct bch_fs *c) { return 0; }
24
25 static inline void bch2_chardev_exit(void) {}
26 static inline int __init bch2_chardev_init(void) { return 0; }
27
28 #endif /* NO_BCACHEFS_FS */
29
30 #endif /* _BCACHEFS_CHARDEV_H */