
Write a Minimal Linux Network Driver With net_device_ops
Write a minimal Linux 6.12 network driver with alloc_etherdev, net_device_ops, ndo_start_xmit and netif_rx, then read its counters with ip and ethtool.
Tag
362 posts

Write a minimal Linux 6.12 network driver with alloc_etherdev, net_device_ops, ndo_start_xmit and netif_rx, then read its counters with ip and ethtool.

Write a cat-style filter in C that reads the files named on the command line, uses standard input when there are none, and treats a lone hyphen as stdin.

Install the nRF Connect SDK v2.9, build a Zephyr blinky for the nRF52840 DK with west build, flash it with west flash and read printk output over serial.

Use getopt_long in C to accept --name and --name=value options, fill in the option table, handle flags and abbreviations, and keep short options working.

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.

Use the DMAMUX request multiplexer on STM32G4 and H7 to connect any peripheral request to any DMA channel, plus request generators and synchronization.

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.