Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / standard-headers / linux / udmabuf.h
blobe19eb5b5ce75aad08b0b024eeaf82acdd98be9f4
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _LINUX_UDMABUF_H
3 #define _LINUX_UDMABUF_H
5 #include "standard-headers/linux/types.h"
7 #define UDMABUF_FLAGS_CLOEXEC 0x01
9 struct udmabuf_create {
10 uint32_t memfd;
11 uint32_t flags;
12 uint64_t offset;
13 uint64_t size;
16 struct udmabuf_create_item {
17 uint32_t memfd;
18 uint32_t __pad;
19 uint64_t offset;
20 uint64_t size;
23 struct udmabuf_create_list {
24 uint32_t flags;
25 uint32_t count;
26 struct udmabuf_create_item list[];
29 #define UDMABUF_CREATE _IOW('u', 0x42, struct udmabuf_create)
30 #define UDMABUF_CREATE_LIST _IOW('u', 0x43, struct udmabuf_create_list)
32 #endif /* _LINUX_UDMABUF_H */