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