The Kernel Semaphore (KSEM)

The kernel semaphore is a RAMSEM and EVENT SEM with accountability in-built.

Many system control block have imbedded KSEMs. Included among these are the PTDA and MFT.

Some KSEMs are allocated out of the kernel heaps and have the owner mnemonic KSEM.

When a thread blocks on a KSEM the address (or handle) of the KSEM, or a field within the KSEM, is used as the BlockId depending upon the KSEM type.