Changes

213 bytes added ,  21:18, 28 May 2017
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;           // in, 1 works
+
     u32 __flags;       // in, 1 works
 
     u32 __reserved;
 
     u32 __reserved;
     u32 __nvmap_handle;   // in
+
     u32 __nvmap_handle; // in
     u32 __page_size;       // inout, 0 means don't care
+
     u32 __page_size;   // inout, 0 means don't care
     u64 __offset_or_align; // inout
+
     union {
 +
      u64 __offset;     // out
 +
      u64 __align;      // in
 +
    };
 
   };
 
   };