
Kernel Oops vs Panic vs BUG vs WARN: What Each Means
Tell a kernel warning from an oops, a BUG and a panic by what the kernel does next, which taint flag it sets and which sysctls turn one into another.
Tag
71 posts

Tell a kernel warning from an oops, a BUG and a panic by what the kernel does next, which taint flag it sets and which sysctls turn one into another.

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.

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.

How struct sk_buff carries a packet through Linux 6.12: head, data, tail and end pointers, headroom, skb_put, skb_push, skb_pull, cloning and ownership rules.

Follow a received packet through Linux 6.12 from the NIC's DMA ring, the interrupt, NAPI, GRO, IP and TCP to the socket, with the counters for each step.

How a Linux 6.12 DRM/KMS display driver is organized into framebuffers, planes, CRTCs, encoders and connectors, and how atomic commits move through them.

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.

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

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.

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.

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.

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.