xref: /aosp_15_r20/bionic/libc/kernel/uapi/linux/nsm.h (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1*8d67ca89SAndroid Build Coastguard Worker /*
2*8d67ca89SAndroid Build Coastguard Worker  * This file is auto-generated. Modifications will be lost.
3*8d67ca89SAndroid Build Coastguard Worker  *
4*8d67ca89SAndroid Build Coastguard Worker  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5*8d67ca89SAndroid Build Coastguard Worker  * for more information.
6*8d67ca89SAndroid Build Coastguard Worker  */
7*8d67ca89SAndroid Build Coastguard Worker #ifndef __UAPI_LINUX_NSM_H
8*8d67ca89SAndroid Build Coastguard Worker #define __UAPI_LINUX_NSM_H
9*8d67ca89SAndroid Build Coastguard Worker #include <linux/ioctl.h>
10*8d67ca89SAndroid Build Coastguard Worker #include <linux/types.h>
11*8d67ca89SAndroid Build Coastguard Worker #define NSM_MAGIC 0x0A
12*8d67ca89SAndroid Build Coastguard Worker #define NSM_REQUEST_MAX_SIZE 0x1000
13*8d67ca89SAndroid Build Coastguard Worker #define NSM_RESPONSE_MAX_SIZE 0x3000
14*8d67ca89SAndroid Build Coastguard Worker struct nsm_iovec {
15*8d67ca89SAndroid Build Coastguard Worker   __u64 addr;
16*8d67ca89SAndroid Build Coastguard Worker   __u64 len;
17*8d67ca89SAndroid Build Coastguard Worker };
18*8d67ca89SAndroid Build Coastguard Worker struct nsm_raw {
19*8d67ca89SAndroid Build Coastguard Worker   struct nsm_iovec request;
20*8d67ca89SAndroid Build Coastguard Worker   struct nsm_iovec response;
21*8d67ca89SAndroid Build Coastguard Worker };
22*8d67ca89SAndroid Build Coastguard Worker #define NSM_IOCTL_RAW _IOWR(NSM_MAGIC, 0x0, struct nsm_raw)
23*8d67ca89SAndroid Build Coastguard Worker #endif
24