From 7ffef6acacf5f98892a2737f1e67d4b9c07674c9 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Thu, 7 Dec 2023 11:50:50 +0100 Subject: [PATCH] sys/linux: minor tweaks to dma_heap description According to include/uapi/linux/dma-heap.h, `fd` is an output parameter. Also declare a resource that can be used by other dma_heap consumers. --- sys/linux/dev_dma_heap.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/linux/dev_dma_heap.txt b/sys/linux/dev_dma_heap.txt index 96e2a47be17d..10a3fec881a7 100644 --- a/sys/linux/dev_dma_heap.txt +++ b/sys/linux/dev_dma_heap.txt @@ -13,9 +13,11 @@ ioctl$DMA_HEAP_IOCTL_ALLOC(fd fd_dma_heap, cmd const[DMA_HEAP_IOCTL_ALLOC], arg dma_open_flags = O_CLOEXEC, O_RDONLY, O_WRONLY, O_RDWR +resource fd_dma_heap_alloc[fd] + dma_heap_allocation_data { len int64 (in) - fd fd (inout) + fd fd_dma_heap_alloc (out) fd_flags flags[dma_open_flags, int32] (in) heap_flags const[0, int64] (in) }