raw_notifier_call_chain(9)

raw_notifier_call_chain9

Call functions in a raw notifier chain

Usage

int raw_notifier_call_chain(struct raw_notifier_head * nh, unsigned long val, void * v);

Arguments

nh

Pointer to head of the raw notifier chain

val

Value passed unmodified to notifier function

v

Pointer passed unmodified to notifier function

Overview

Calls each function in a notifier chain in turn. The functions run in an undefined context. All locking must be provided by the caller.

If the return value of the notifier can be and'ed with NOTIFY_STOP_MASK then raw_notifier_call_chain will return immediately, with the return value of the notifier function which halted execution. Otherwise the return value is the return value of the last notifier function called.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Parsed by carta from the page's man source.