---
name: "napi_schedule_prep"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/napi_schedule_prep"
---

# napi\_schedule\_prep(9)

check if NAPI can be scheduled

## NAME

napi\_schedule\_prep - check if NAPI can be scheduled

## SYNOPSIS

**bool napi\_schedule\_prep(struct napi\_struct \*** *n***);**

## ARGUMENTS

*n*

NAPI context

## DESCRIPTION

Test if NAPI routine is already running, and if not mark it as running. This is used as a condition variable to insure only one NAPI poll instance runs. We also make sure there is no pending NAPI disable.

## COPYRIGHT
