Skip to content
systemcoding.dev

Tag

linux kernel

71 posts

Flat illustration of a magnifier over lines of a log, with the Linux, C and Rust logos.
Kernels

printk Log Levels and pr_* Helpers Explained

Learn the eight printk log levels, the pr_info and pr_err helpers, pr_fmt prefixes, rate limiting and the console loglevel that decides what reaches the screen.

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

Write a Pin Controller Driver With pinctrl

Write a Linux 6.12 pin controller driver: pinctrl_desc, pins, groups and functions, the set_mux callback, and the device tree states that consumers select.

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

Use a PWM Channel From a Consumer Driver

Drive a PWM channel from a Linux 6.12 consumer driver with devm_pwm_get, struct pwm_state and pwm_apply_might_sleep, plus the device tree binding.

7 min read