
Write a GPIO Controller Driver With struct gpio_chip
Write a Linux 6.12 GPIO controller driver with struct gpio_chip: direction, get and set callbacks, locking, registration and the generic MMIO helper.
Everything you need to level up your coding skills.

Write a Linux 6.12 GPIO controller driver with struct gpio_chip: direction, get and set callbacks, locking, registration and the generic MMIO helper.

Learn how getopt walks argv in C, what optind, optarg and opterr mean, how a colon marks an option value, and how to handle errors and bundled flags.

Load a firmware blob in a Linux 6.12 driver with request_firmware, validate it, copy it to the device, release it, and use the async variant for early probes.

Chain RP2040 DMA channels with chain_to so one starts as the other finishes, and use a control channel to rotate through a list of buffers without the CPU.

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.

Cap open files, CPU time, memory and core dumps for a Linux process with setrlimit, understand soft and hard limits, and read the results in /proc.

Write a Linux 6.12 RTC driver with rtc_class_ops, read_time and set_time using 64-bit time, range limits, and test it with hwclock and sysfs.

Stream continuous data on an STM32 with circular DMA, process each half buffer on the half-transfer and complete events, and detect a missed deadline.

Write a Linux 6.12 watchdog driver with watchdog_device and watchdog_ops, handle the timeout and nowayout options, and see it through /dev/watchdog and wdctl.

Learn what Linux namespaces are, the eight kinds the kernel has, how to see them under /proc and how containers combine them to give a process its own view.

Write a Linux 6.12 LED class driver with led_classdev, brightness_set_blocking, max_brightness and triggers, and see it appear under /sys/class/leds.

Configure and start an RP2040 DMA transfer with dma_channel_get_default_config and dma_channel_configure in Pico SDK 2.1, including fills, rings and completion.
We send one email when a new post is published. No spam.