Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / uapi / linux / udmabuf.h
blob46b6532ed8552dacf801b6b3f3a7af18f51c92cf
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI_LINUX_UDMABUF_H
3 #define _UAPI_LINUX_UDMABUF_H
5 #include <linux/types.h>
6 #include <linux/ioctl.h>
8 #define UDMABUF_FLAGS_CLOEXEC 0x01
10 struct udmabuf_create {
11 __u32 memfd;
12 __u32 flags;
13 __u64 offset;
14 __u64 size;
17 struct udmabuf_create_item {
18 __u32 memfd;
19 __u32 __pad;
20 __u64 offset;
21 __u64 size;
24 struct udmabuf_create_list {
25 __u32 flags;
26 __u32 count;
27 struct udmabuf_create_item list[];
30 #define UDMABUF_CREATE _IOW('u', 0x42, struct udmabuf_create)
31 #define UDMABUF_CREATE_LIST _IOW('u', 0x43, struct udmabuf_create_list)
33 #endif /* _UAPI_LINUX_UDMABUF_H */