class KSession extends KAutoObject;
Size : 0x4C bytes
| Offset | Type | Description | 
|---|---|---|
| 0x0 | u32 | Pointer to vtable | 
| 0x4 | u32 | Reference count | 
| 0x20 | KThread* | X ? | 
| 0x24 | KThread* | Y ? | 
| 0x2C | KThread* | Z ? | 
It seems X=Y=Z. X, Y and Z can be NULL.
Structure for at least 5.0.0-11 NATIVE_FIRM upward:
Size : 0x4C bytes ( KAutoObject, KServerSession, KClientSession, sequentially):
| Offset | Type | |
|---|---|---|
| 0x0 | KAutoObject | u32 | 
| 0x4 | u32 | |
| 0x8 | KServerSession | u32 | 
| 0xC | u32 | |
| 0x10 | u32 | |
| 0x14 | KLinkedListNode* | |
| 0x18 | KLinkedListNode* | |
| 0x1C | KSession* | |
| 0x20 | KThread* | |
| 0x24 | KThread* | |
| 0x28 | KThread* | |
| 0x2C | KClientSession | u32 | 
| 0x30 | u32 | |
| 0x34 | u32 | |
| 0x38 | KLinkedListNode* | |
| 0x3C | KLinkedListNode* | |
| 0x40 | KSession* | |
| 0x44 | u32 | |
| 0x48 | KClientPort* | 
Session status:
1: open 2: closed by client 3: closed by server?