| Previous | Next |
| KERN_EXCEPTION_PROTECTED | KERN_INVALID_MEMORY_CONTROL |
KERN_INVALID_LEDGER
A missing kernel accounting object
KERN_INVALID_LEDGER means that an operation required a ledger and did not receive one. In XNU, ledger objects track entries with balances, credits, debits, limits, and related actions; this is a kernel accounting mechanism, not an ordinary POSIX file or memory quota message.
The result is meaningful only in the context of the specific Mach or kernel subsystem call that requested the ledger. It does not identify which resource limit was reached, and it should not be translated into a generic out-of-memory or permission failure.
What to inspect
- Keep the exact API, subsystem, and arguments that required the ledger.
- Determine whether the caller was expected to create, inherit, or receive the ledger from another kernel object.
- Preserve any preceding object-creation or initialization status.
- Check whether the failure is from private or diagnostic code rather than a supported application-facing API.
References
- Apple XNU: kern_return.h
- Apple XNU: ledger.h
- Apple Kernel Programming Guide: Mach kernel abstractions
Looking for a different code? Search another status or error code.