User Tools

Site Tools


programming:linux:start

Linux Kernel Programming

General

Style & Documentation

RT Linux

Drivers

Network

Code/Examples

Debug

Hints

  • Use WARN_ON() and BUG_ON() macros for run-time assertions.
  • Use this code (in kernel module Makefile) to enable/disable pr_debug based output in kernel message ring buffer
    ccflags-y += -DDEBUG

Locking

Hints

  • Suppress scheduling by use of function preempt_disable().
  • Functions irqs_disabled() and in_interrupt() are very helpful regarding protection of non-preemptive code (see also the comments at Stack Overflow).
  • For use of [num]delay(), usleep() and friends see timers-howto.txt.

Memory

programming/linux/start.txt · Last modified: 2021/09/24 17:24 by Ralf Hoppe