123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #ifndef __LINUX_PUBLIC_GNTALLOC_H__
- #define __LINUX_PUBLIC_GNTALLOC_H__
- #include <linux/types.h>
- #define IOCTL_GNTALLOC_ALLOC_GREF \
- _IOC(_IOC_NONE, 'G', 5, sizeof(struct ioctl_gntalloc_alloc_gref))
- struct ioctl_gntalloc_alloc_gref {
-
-
- __u16 domid;
-
- __u16 flags;
-
- __u32 count;
-
-
- __u64 index;
-
-
- __u32 gref_ids[1];
- };
- #define GNTALLOC_FLAG_WRITABLE 1
- #define IOCTL_GNTALLOC_DEALLOC_GREF \
- _IOC(_IOC_NONE, 'G', 6, sizeof(struct ioctl_gntalloc_dealloc_gref))
- struct ioctl_gntalloc_dealloc_gref {
-
-
- __u64 index;
-
- __u32 count;
- };
- #define IOCTL_GNTALLOC_SET_UNMAP_NOTIFY \
- _IOC(_IOC_NONE, 'G', 7, sizeof(struct ioctl_gntalloc_unmap_notify))
- struct ioctl_gntalloc_unmap_notify {
-
-
- __u64 index;
-
- __u32 action;
-
- __u32 event_channel_port;
- };
- #define UNMAP_NOTIFY_CLEAR_BYTE 0x1
- #define UNMAP_NOTIFY_SEND_EVENT 0x2
- #endif
|