# Native interfaces

> Peios kernel native interfaces documentation.

All of Native interfaces as one markdown file: [/kernel/userspace/native/print.md](/kernel/userspace/native/print.md)

## Start here

- [Native kernel interfaces](/kernel/userspace/native/start-here/overview.md): Syscalls, handles and device interfaces provided by the Peios kernel.

## KMES

- [KMES](/kernel/userspace/native/kmes/overview.md): Find the Peios kernel articles about kmes.
- [Emission and attachment syscalls](/kernel/userspace/native/kmes/emission-and-attachment-syscalls.md): The three KMES syscalls — emit, batch emit and attach — with their privilege gate, rate limiting, validation and preemption behaviour.
- [Generated ABI tables](/kernel/userspace/native/kmes/generated-abi-tables.md): Every KMES syscall number, structure layout, ring-buffer offset and constant, generated from the uapi headers and measured by compilation.
- [ABI semantics and limits](/kernel/userspace/native/kmes/abi-semantics-and-limits.md): ABI semantics and limits: behaviour and implementation of the Peios kernel.

## KACS

- [KACS](/kernel/userspace/native/kacs/overview.md): Find the Peios kernel articles about kacs.
- [Mount policy syscalls](/kernel/userspace/native/kacs/mount-policy-syscalls.md): The documented mount-policy argument fields, validation sequence and errors, retained alongside the kernel descriptor-storage contract for comparison.
- [Generated syscall index](/kernel/userspace/native/kacs/generated-syscall-index.md): Generated syscall index: behaviour and implementation of the Peios kernel.
- [Generated token and session ABI](/kernel/userspace/native/kacs/generated-token-and-session-abi.md): Generated token and session ABI: behaviour and implementation of the Peios kernel.
- [Generated access-check and descriptor ABI](/kernel/userspace/native/kacs/generated-access-check-and-descriptor-abi.md): Generated access-check and descriptor ABI: behaviour and implementation of the Peios kernel.
- [Generated file and mount ABI](/kernel/userspace/native/kacs/generated-file-and-mount-abi.md): Generated file and mount ABI: behaviour and implementation of the Peios kernel.
- [Generated socket and IPC ABI](/kernel/userspace/native/kacs/generated-socket-and-ipc-abi.md): Generated socket and IPC ABI: behaviour and implementation of the Peios kernel.
- [Generated process and PSB ABI](/kernel/userspace/native/kacs/generated-process-and-psb-abi.md): Generated process and PSB ABI: behaviour and implementation of the Peios kernel.
- [Generated diagnostic constants](/kernel/userspace/native/kacs/generated-diagnostic-constants.md): Generated diagnostic constants: behaviour and implementation of the Peios kernel.
- [MS-DTYP compatibility and divergences](/kernel/userspace/native/kacs/ms-dtyp-compatibility-and-divergences.md): Where KACS departs from MS-DTYP despite using its binary formats, and which features are handled elsewhere rather than here.
- [ABI status and naming differences](/kernel/userspace/native/kacs/abi-status-and-naming-differences.md): ABI status and naming differences: behaviour and implementation of the Peios kernel.
- [Descriptor and ACE semantics](/kernel/userspace/native/kacs/descriptor-and-ace-semantics.md): Descriptor and ACE semantics: behaviour and implementation of the Peios kernel.
- [Token query semantics](/kernel/userspace/native/kacs/token-query-semantics.md): Token query semantics: behaviour and implementation of the Peios kernel.
- [Socket ABI compatibility](/kernel/userspace/native/kacs/socket-abi-compatibility.md): Socket ABI compatibility: behaviour and implementation of the Peios kernel.

## LCS

- [LCS](/kernel/userspace/native/lcs/overview.md): Find the Peios kernel articles about lcs.
- [File descriptors and buffer conventions](/kernel/userspace/native/lcs/file-descriptors-and-buffer-conventions.md): The hybrid syscall and ioctl interface — key fds, open-time checking, transaction fds, and the conventions for strings and output buffers.
- [Open, create and transaction syscalls](/kernel/userspace/native/lcs/open-create-and-transaction-syscalls.md): Opening keys and beginning read or write transactions, with their arguments and failure conditions.
- [Key ioctls](/kernel/userspace/native/lcs/key-ioctls.md): The sixteen ioctls acting on a key fd — reading, writing, security, watches, durability and bulk — each gated on the fd's granted mask.
- [Transaction ioctls](/kernel/userspace/native/lcs/transaction-ioctls.md): The two ioctls acting on a transaction fd — commit and status — and why the key fd error table does not apply.
- [Errors](/kernel/userspace/native/lcs/errors.md): How LCS reports failure, and the two errnos worth reading closely because they mean less than they appear to.
- [Generated syscall and common ABI](/kernel/userspace/native/lcs/generated-syscall-and-common-abi.md): Generated syscall and common ABI: behaviour and implementation of the Peios kernel.
- [Generated key and security ABI](/kernel/userspace/native/lcs/generated-key-and-security-abi.md): Generated key and security ABI: behaviour and implementation of the Peios kernel.
- [Generated watch ABI](/kernel/userspace/native/lcs/generated-watch-abi.md): Generated watch ABI: behaviour and implementation of the Peios kernel.
- [Generated transaction and backup ABI](/kernel/userspace/native/lcs/generated-transaction-and-backup-abi.md): Generated transaction and backup ABI: behaviour and implementation of the Peios kernel.
- [Generated source and diagnostic ABI](/kernel/userspace/native/lcs/generated-source-and-diagnostic-abi.md): Generated source and diagnostic ABI: behaviour and implementation of the Peios kernel.

## NTFE

- [NTFE](/kernel/userspace/native/ntfe/overview.md): Find the Peios kernel articles about ntfe.
- [Event records and status semantics](/kernel/userspace/native/ntfe/event-records-and-status-semantics.md): Event records and status semantics: behaviour and implementation of the Peios kernel.
- [Generated device ABI](/kernel/userspace/native/ntfe/generated-device-abi.md): Every NTFE ioctl number, event and status structure layout, counter record layout and constant, generated from the uapi header and measured by compilation.
- [Device operations and errors](/kernel/userspace/native/ntfe/device-operations-and-errors.md): Device operations and errors: behaviour and implementation of the Peios kernel.
