Lines Matching +full:no +full:- +full:can +full:- +full:fd
1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR MIT) */
10 * This program is free software; you can redistribute it and/or
28 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
51 * considered opaque to userspace, with one exception: if no grant
54 * with userspace APIs that expect a file descriptor that can be
91 * to @vaddr. This can be used to perform a munmap(), followed by an
92 * UNMAP_GRANT_REF ioctl, where no state about the offset is retained by
99 * contiguously-allocated range at once, and not any subrange thereof.
130 * Sets up an unmap notification within the page, so that the other side can do
131 * cleanup if this side crashes. Required to implement cross-domain robust
145 * be cleared. Otherwise, it can be any byte in the page whose
173 * The copy is split into @count @segments, each of which can copy
180 * The local buffer may cross a Xen page boundary -- the driver will
191 * If -1 is returned, the status of all segments is undefined.
226 * Create a dma-buf [1] from grant references @refs of count @count provided
229 * By default dma-buf is backed by system memory pages, but by providing
230 * one of the GNTDEV_DMA_FLAG_XXX flags it can also be created as
231 * a DMA write-combine or coherent buffer, e.g. allocated with dma_alloc_wc/
234 * Returns 0 if dma-buf was successfully created and the corresponding
235 * dma-buf's file descriptor is returned in @fd.
237 * [1] Documentation/driver-api/dma-buf.rst
245 /* Specific options for this dma-buf: see GNTDEV_DMA_FLAG_XXX. */
250 /* File descriptor of the dma-buf. */
251 __u32 fd; member
260 * This will block until the dma-buf with the file descriptor @fd is
265 * then -ETIMEDOUT error is returned.
266 * If the buffer with the file descriptor @fd does not exist or has already
267 * been released, then -ENOENT is returned. For valid file descriptors
275 __u32 fd; member
280 * Import a dma-buf with file descriptor @fd and export granted references
281 * to the pages of that dma-buf into array @refs of size @count.
288 /* File descriptor of the dma-buf. */
289 __u32 fd; member
294 /* Reserved - must be zero. */
303 * @fd, so it can be released by the owner. This is only valid for buffers
311 __u32 fd; member