1MIGHT_SLEEP(9)                   Driver Basics                  MIGHT_SLEEP(9)
2
3
4

NAME

6       might_sleep - annotation for functions that can sleep
7

SYNOPSIS

9       might_sleep(void);
10

ARGUMENTS

12       None
13

DESCRIPTION

15       this macro will print a stack trace if it is executed in an atomic
16       context (spinlock, irq-handler, ...).
17
18       This is a useful debugging help to be able to catch problems early and
19       not be bitten later when the calling function happens to sleep when it
20       is not supposed to.
21
23Kernel Hackers Manual 2.6.       November 2011                  MIGHT_SLEEP(9)
Impressum