#include <drm/drmP.h>
#include <linux/export.h>
Go to the source code of this file.
mmap DMA memory.
- Parameters
-
file_priv | DRM file private. |
vma | virtual memory area. |
- Returns
- zero on success or a negative number on failure.
If the virtual memory area has no offset associated with it then it's a DMA area, so calls mmap_dma(). Otherwise searches the map in drm_device::maplist, checks that the restricted flag is not set, sets the virtual memory operations according to the mapping type and remaps the pages. Finally sets the file pointer and calls vm_open().
Definition at line 545 of file drm_vm.c.
open
method for shared virtual memory.
- Parameters
-
Create a new drm_vma_entry structure as the vma
private data entry and add it to drm_device::vmalist.
Definition at line 409 of file drm_vm.c.