blob: 94ceec713afeed4e1de2bd704f95176218349d3d [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Christoph Hellwigbbd3e062015-10-15 14:10:48 +02002#ifndef LINUX_PR_H
3#define LINUX_PR_H
4
5#include <uapi/linux/pr.h>
6
7struct 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 */