Merge tag 'drm-misc-next-2019-04-10' of git://anongit.freedesktop.org/drm/drm-misc...
[linux-block.git] / include / linux / pr.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
bbd3e064
CH
2#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 */