summaryrefslogtreecommitdiff
path: root/include/uapi/linux/blkdev.h
blob: 57b0bbd04e2bc1eba3497761ea07c8bd22dd0019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _UAPI_LINUX_BLKDEV_H
#define _UAPI_LINUX_BLKDEV_H

#include <linux/ioctl.h>
#include <linux/types.h>

/*
 * io_uring block file commands, see IORING_OP_URING_CMD.
 * It's a different number space from ioctl(), reuse the block's code 0x12.
 */
#define BLOCK_URING_CMD_DISCARD			_IO(0x12, 0)
#define BLOCK_URING_CMD_ZONE_RESET_ALL		_IO(0x12, 1)

#endif