Changes

Jump to navigation Jump to search
527 bytes added ,  19:39, 25 May 2017
Line 154: Line 154:  
| 0xC0080103 || Inout || 8 || [[#NVMAP_IOC_FROM_ID]] ||
 
| 0xC0080103 || Inout || 8 || [[#NVMAP_IOC_FROM_ID]] ||
 
|-
 
|-
| 0xC0200104 || Inout || 32 || NVMAP_IOC_ALLOC ||
+
| 0xC0200104 || Inout || 32 || [[#NVMAP_IOC_ALLOC]] ||
 
|-
 
|-
 
| 0xC0180105 || Inout || 24 || NVMAP_IOC_FREE ||
 
| 0xC0180105 || Inout || 24 || NVMAP_IOC_FREE ||
Line 184: Line 184:     
=== NVMAP_IOC_CREATE ===
 
=== NVMAP_IOC_CREATE ===
 +
Creates an nvmap object. Identical to Linux driver.
 +
 
   struct {
 
   struct {
 
     u32 __size;  // in
 
     u32 __size;  // in
Line 190: Line 192:     
=== NVMAP_IOC_FROM_ID ===
 
=== NVMAP_IOC_FROM_ID ===
 +
Get handle to an existing nvmap object. Identical to Linux driver.
 +
 
   struct {
 
   struct {
 
     u32 __id;    // in
 
     u32 __id;    // in
 
     u32 __handle; // out
 
     u32 __handle; // out
 +
  };
 +
 +
=== NVMAP_IOC_ALLOC ===
 +
Allocate memory for the nvmap object. Nintendo extended this one with 4 new u32's, and changed it from in to inout.
 +
 +
  struct {
 +
    u32 __handle;  // in
 +
    u32 __heapmask; // in
 +
    u32 __flags;    // in
 +
    u32 __align;    // in
 +
    u32 __?;        // in
 +
    u32 __?;        // in
 +
    u32 __?;        // in
 +
    u32 __?;        // in
 
   };
 
   };
    
=== NVMAP_IOC_GET_ID ===
 
=== NVMAP_IOC_GET_ID ===
 +
Returns an id for a nvmap object.
 +
 
   struct {
 
   struct {
 
     u32 __id;    // out
 
     u32 __id;    // out

Navigation menu