1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef __LINUX_PUBLIC_GNTALLOC_H__ 8 #define __LINUX_PUBLIC_GNTALLOC_H__ 9 #include <linux/types.h> 10 #define IOCTL_GNTALLOC_ALLOC_GREF _IOC(_IOC_NONE, 'G', 5, sizeof(struct ioctl_gntalloc_alloc_gref)) 11 struct ioctl_gntalloc_alloc_gref { 12 __u16 domid; 13 __u16 flags; 14 __u32 count; 15 __u64 index; 16 union { 17 __u32 gref_ids[1]; 18 __DECLARE_FLEX_ARRAY(__u32, gref_ids_flex); 19 }; 20 }; 21 #define GNTALLOC_FLAG_WRITABLE 1 22 #define IOCTL_GNTALLOC_DEALLOC_GREF _IOC(_IOC_NONE, 'G', 6, sizeof(struct ioctl_gntalloc_dealloc_gref)) 23 struct ioctl_gntalloc_dealloc_gref { 24 __u64 index; 25 __u32 count; 26 }; 27 #define IOCTL_GNTALLOC_SET_UNMAP_NOTIFY _IOC(_IOC_NONE, 'G', 7, sizeof(struct ioctl_gntalloc_unmap_notify)) 28 struct ioctl_gntalloc_unmap_notify { 29 __u64 index; 30 __u32 action; 31 __u32 event_channel_port; 32 }; 33 #define UNMAP_NOTIFY_CLEAR_BYTE 0x1 34 #define UNMAP_NOTIFY_SEND_EVENT 0x2 35 #endif 36