KScheduler
Size : 0x228 bytes
| Offset | Type | Description |
|---|---|---|
| 0x0 | u32 | Pointer to vtable |
| 0x4 | u32 | Unused, may have been for reference count |
| 0x8 | u32 | Count for thread switches - this is only added to if a context switch function runs but exits because the scheduler is locked by another thread. |
| 0xC | bool | Context switch needed |
| 0xD | bool | Context switch started during interrupt |
| 0xE | bool | Trigger CPU cross-core interrupt (interrupt 8) |
| 0xF | bool | Post-interrupt rescheduling needed |
| 0x10 | s16 | Scheduler core number |
| 0x12 | s16 | Count of threads currently being managed by this scheduler object |
There is 1 KScheduler object per core.