KObjectMutex

From 3dbrew
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Size : 0x8 bytes

This is used to provide thread-safety when manipulating kernel objects such as KProcessHwInfo, KProcessHandleTable, InterruptTable, etc.

Offset Type Description
0x0 KThread * Thread owning the mutex
0x4 s16 Incremented at the start of each "try-acquire" loop, then decremented. Used to detect errors (error if counter > 0)
0x6 s16 Incremented before each context switch while trying to acquire the mutex, then decremented