Difference between revisions of "KSharedMemory"

From 3dbrew
Jump to navigation Jump to search
Line 20: Line 20:
 
| 0x8
 
| 0x8
 
| u32
 
| u32
| Unknown
+
| KLinkedListNode count
 
|-
 
|-
 
| 0xC
 
| 0xC
| u32
+
| KLinkedListNode*
| Pointer to shared memory data node
+
| Pointer to first KBlockInfo KLinkedListNode in the list of KBlockInfo objects associated with this KSharedMemory object
 
|-
 
|-
 
| 0x10
 
| 0x10
| u32
+
| KLinkedListNode*
| Pointer to above
+
| Pointer to last KBlockInfo KLinkedListNode in the list of KBlockInfo objects associated with this KSharedMemory object
 
|-
 
|-
 
| 0x14
 
| 0x14
Line 43: Line 43:
 
|-
 
|-
 
| 0x20
 
| 0x20
| u32
+
| u8
| Memory region
+
| Set after KBlockInfo is generated for the KSharedMemory
 +
|-
 +
| 0x21
 +
| s8
 +
| Set after all KBlockInfo is generated and KCodeSetLink is updated
 +
|-
 +
| 0x22
 +
| u8
 +
| Unknown
 
|-
 
|-
 
| 0x24
 
| 0x24

Revision as of 21:16, 9 February 2015

class KSharedMemory extends KAutoObject;

Size : 0x28 bytes

Offset Type Description
0x0 u32 Pointer to vtable
0x4 u32 Reference count
0x8 u32 KLinkedListNode count
0xC KLinkedListNode* Pointer to first KBlockInfo KLinkedListNode in the list of KBlockInfo objects associated with this KSharedMemory object
0x10 KLinkedListNode* Pointer to last KBlockInfo KLinkedListNode in the list of KBlockInfo objects associated with this KSharedMemory object
0x14 KProcess* Owner
0x18 u32 Owner Permission
0x1C u32 otherpermission
0x20 u8 Set after KBlockInfo is generated for the KSharedMemory
0x21 s8 Set after all KBlockInfo is generated and KCodeSetLink is updated
0x22 u8 Unknown
0x24 u32 Address