github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/linux/dev_dma_heap.txt (about) 1 # Copyright 2022 syzkaller project authors. All rights reserved. 2 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 include <asm/ioctl.h> 5 include <uapi/linux/fcntl.h> 6 include <uapi/linux/dma-heap.h> 7 8 resource fd_dma_heap[fd] 9 10 openat$dma_heap(fd const[AT_FDCWD], file ptr[in, string["/dev/dma_heap/system"]], flags flags[open_flags], mode const[0]) fd_dma_heap 11 12 ioctl$DMA_HEAP_IOCTL_ALLOC(fd fd_dma_heap, cmd const[DMA_HEAP_IOCTL_ALLOC], arg ptr[inout, dma_heap_allocation_data]) 13 14 dma_open_flags = O_CLOEXEC, O_RDONLY, O_WRONLY, O_RDWR 15 16 dma_heap_allocation_data { 17 len int64 (in) 18 fd fd (inout) 19 fd_flags flags[dma_open_flags, int32] (in) 20 heap_flags const[0, int64] (in) 21 }