Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Christopher Ferris | 967fb01 | 2019-01-10 14:14:59 -0800 | [diff] [blame] | 7 | #ifndef _UAPI_LINUX_UDMABUF_H |
| 8 | #define _UAPI_LINUX_UDMABUF_H |
| 9 | #include <linux/types.h> |
| 10 | #include <linux/ioctl.h> |
| 11 | #define UDMABUF_FLAGS_CLOEXEC 0x01 |
| 12 | struct udmabuf_create { |
| 13 | __u32 memfd; |
| 14 | __u32 flags; |
| 15 | __u64 offset; |
| 16 | __u64 size; |
| 17 | }; |
| 18 | struct udmabuf_create_item { |
| 19 | __u32 memfd; |
| 20 | __u32 __pad; |
| 21 | __u64 offset; |
| 22 | __u64 size; |
| 23 | }; |
| 24 | struct udmabuf_create_list { |
| 25 | __u32 flags; |
| 26 | __u32 count; |
| 27 | struct udmabuf_create_item list[]; |
| 28 | }; |
| 29 | #define UDMABUF_CREATE _IOW('u', 0x42, struct udmabuf_create) |
| 30 | #define UDMABUF_CREATE_LIST _IOW('u', 0x43, struct udmabuf_create_list) |
| 31 | #endif |