1 /*
2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
6 *
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
10 */
11
12 /*
13 * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
14 */
15
16 #ifndef _KRRP_IOCTL_H_
17 #define _KRRP_IOCTL_H_
18
19 #include <sys/sysmacros.h>
20 #include <sys/types.h>
21 #include <sys/kmem.h>
22 #include <sys/ddi.h>
23 #include <sys/sunddi.h>
24 #include <sys/modctl.h>
25 #include <sys/class.h>
26 #include <sys/cmn_err.h>
27
28 #include <krrp_error.h>
29 #include <krrp_ioctl_common.h>
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 int krrp_ioctl_validate_cmd(krrp_ioctl_cmd_t cmd);
36 int krrp_ioctl_process(krrp_ioctl_cmd_t cmd, nvlist_t *input,
37 nvlist_t *output, krrp_error_t *error);
38
39 #ifdef __cplusplus
40 }
41 #endif
42
43 #endif /* _KRRP_IOCTL_H_ */