User Tools

Site Tools


programming:linux:start

Linux Kernel Programming

General

RT Linux

Drivers

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

Memory

Scheduling

  • Suppress scheduling by use of preempt_disable(), see preempt-locking.txt for other methods.
  • For use of [num]delay(), usleep() and friends see timers-howto.txt.
  • Functions irqs_disabled() and in_interrupt() are very helpful regarding protection of non-preemptive code (see also the comments at Stack Overflow).
programming/linux/start.txt · Last modified: 2019/03/06 13:28 by Ralf Hoppe