'\" t .\" Title: napi_schedule_prep .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "NAPI_SCHEDULE_PREP" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "Network device support" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" napi_schedule_prep \- check if napi can be scheduled .SH "SYNOPSIS" .HP \w'bool\ napi_schedule_prep('u .BI "bool napi_schedule_prep(struct\ napi_struct\ *\ " "n" ");" .SH "ARGUMENTS" .PP \fIstruct napi_struct * n\fR .RS 4 napi context .RE .SH "DESCRIPTION" .PP Test if NAPI routine is already running, and if not mark it as running\&. This is used as a condition variable insure only one NAPI poll instance runs\&. We also make sure there is no pending NAPI disable\&. .SH "COPYRIGHT" .br