NV services: Difference between revisions

Line 200: Line 200:


=== NVMAP_IOC_ALLOC ===
=== 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.
Allocate memory for the nvmap object. Nintendo extended this one with 16 bytes, and changed it from in to inout.


   struct {
   struct {
     u32 __handle;  // in
     u32 __handle;  // in
     u32 __heapmask; // in
     u32 __heapmask; // in
     u32 __flags;    // in
     u32 __flags;    // in (0=read-only, 1=read-write)
     u32 __align;    // in
     u32 __align;    // in
     u32 __unk0;    // in (actually a u8?)
     u8  __unk0;    // in
     u32 __unk1;     // in
     u8  __pad[7];
     u32 __unk2;    // in
     u64 __addr;    // in
    u32 __unk3      // in
   };
   };