1MIGHT_SLEEP(9) Driver Basics MIGHT_SLEEP(9)
23
4
NAME
6might_sleep - annotation for functions that can sleep
7
SYNOPSIS
9might_sleep(void);
10
ARGUMENTS
12None
13
DESCRIPTION
15this macro will print a stack trace if it is executed in an atomic
16context (spinlock, irq-handler, ...).
1718
This is a useful debugging help to be able to catch problems early and
19not be bitten later when the calling function happens to sleep when it
20is not supposed to.
21
COPYRIGHT
23Kernel Hackers Manual 2.6. June 2019 MIGHT_SLEEP(9)