NV services: Difference between revisions
Line 202: | Line 202: | ||
=== NVGPU_AS_IOCTL_MAP_BUFFER === | === NVGPU_AS_IOCTL_MAP_BUFFER === | ||
Map a memory region in the device address space. Identical to Linux driver pretty much. | |||
On success, the mapped memory region is locked by having [[SVC#MemoryState]] bit34 set. | |||
struct { | struct { | ||
u32 __flags; | u32 __flags; // in, 1 works | ||
u32 __reserved; | u32 __reserved; | ||
u32 __nvmap_handle; | u32 __nvmap_handle; // in | ||
u32 __page_size; | u32 __page_size; // inout, 0 means don't care | ||
u64 | union { | ||
u64 __offset; // out | |||
u64 __align; // in | |||
}; | |||
}; | }; | ||