---
name: "might_sleep"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/might_sleep"
---

# might\_sleep(9)

annotation for functions that can sleep

## 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.

## COPYRIGHT
