Christoph Hellwig | bbd3e06 | 2015-10-15 14:10:48 +0200 | [diff] [blame] | 1 | #ifndef LINUX_PR_H |
| 2 | #define LINUX_PR_H |
| 3 | |
| 4 | #include <uapi/linux/pr.h> |
| 5 | |
| 6 | struct pr_ops { |
| 7 | int (*pr_register)(struct block_device *bdev, u64 old_key, u64 new_key, |
| 8 | u32 flags); |
| 9 | int (*pr_reserve)(struct block_device *bdev, u64 key, |
| 10 | enum pr_type type, u32 flags); |
| 11 | int (*pr_release)(struct block_device *bdev, u64 key, |
| 12 | enum pr_type type); |
| 13 | int (*pr_preempt)(struct block_device *bdev, u64 old_key, u64 new_key, |
| 14 | enum pr_type type, bool abort); |
| 15 | int (*pr_clear)(struct block_device *bdev, u64 key); |
| 16 | }; |
| 17 | |
| 18 | #endif /* LINUX_PR_H */ |