Skip to content
systemcoding.dev

Library

Everything you need to level up your coding skills.

Flat illustration of user space above the system call boundary, the kernel and the hardware, with the Linux, C and Intel logos.
Kernels

Handle Keyboard Input With a PS/2 Driver

Write a PS/2 keyboard driver for a hobby kernel: the 8042 ports, scancode set 1, make and break codes, the 0xE0 prefix, shift and caps lock, and a ring buffer.

9 min read
Flat illustration of a hardware register drawn as bit fields with one field highlighted, with the C, GNU and STMicroelectronics logos.
Systems Programming

Register Exit Handlers with atexit and on_exit

atexit registers cleanup functions that run in reverse order when a program ends normally. on_exit also passes the status. Neither runs after _exit or abort.

7 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.