might_sleep
Prev | Kernel utility functions | Next

## Name

might_sleep — annotation for functions that can sleep

## Synopsis

`might_sleep (` | `void)`; |

## Arguments

None

## Description

this macro will print a stack trace if it is executed in an atomic context (spinlock, irq-handler, ...).

This is a useful debugging help to be able to catch problems early and not be bitten later when the calling function happens to sleep when it is not supposed to.

Prev | Up | Next
lower_32_bits | Home | kstrtoul