Lines Matching full:notifier
5 #include <linux/notifier.h>
10 #include <trace/events/notifier.h>
13 * Notifier chain core routines. The exported routines below
23 WARN(1, "notifier callback %ps already registered", in notifier_chain_register()
55 * @nl: Pointer to head of the blocking notifier chain
56 * @val: Value passed unmodified to notifier function
57 * @v: Pointer passed unmodified to notifier function
58 * @nr_to_call: Number of notifier functions to be called. Don't care
63 * last notifier function called.
79 WARN(1, "Invalid notifier called!"); in notifier_call_chain()
102 * @nl: Pointer to head of the blocking notifier chain
103 * @val_up: Value passed unmodified to the notifier function
104 * @val_down: Value passed unmodified to the notifier function when recovering
106 * @v: Pointer passed unmodified to the notifier function
110 * exact same notifier callbacks; this rules out any RCU usage.
128 * Atomic notifier chain routines. Registration and unregistration
133 * atomic_notifier_chain_register - Add notifier to an atomic notifier chain
134 * @nh: Pointer to head of the atomic notifier chain
135 * @n: New entry in notifier chain
137 * Adds a notifier to an atomic notifier chain.
155 * atomic_notifier_chain_register_unique_prio - Add notifier to an atomic notifier chain
156 * @nh: Pointer to head of the atomic notifier chain
157 * @n: New entry in notifier chain
159 * Adds a notifier to an atomic notifier chain if there is no other
160 * notifier registered using the same priority.
178 * atomic_notifier_chain_unregister - Remove notifier from an atomic notifier chain
179 * @nh: Pointer to head of the atomic notifier chain
180 * @n: Entry to remove from notifier chain
182 * Removes a notifier from an atomic notifier chain.
201 * atomic_notifier_call_chain - Call functions in an atomic notifier chain
202 * @nh: Pointer to head of the atomic notifier chain
203 * @val: Value passed unmodified to notifier function
204 * @v: Pointer passed unmodified to notifier function
206 * Calls each function in a notifier chain in turn. The functions
210 * If the return value of the notifier can be and'ed
213 * the notifier function which halted execution.
215 * of the last notifier function called.
232 * atomic_notifier_call_chain_is_empty - Check whether notifier chain is empty
233 * @nh: Pointer to head of the atomic notifier chain
235 * Checks whether notifier chain is empty.
237 * Returns true is notifier chain is empty, false otherwise.
245 * Blocking notifier chain routines. All access to the chain is
270 * blocking_notifier_chain_register - Add notifier to a blocking notifier chain
271 * @nh: Pointer to head of the blocking notifier chain
272 * @n: New entry in notifier chain
274 * Adds a notifier to a blocking notifier chain.
287 * blocking_notifier_chain_register_unique_prio - Add notifier to a blocking notifier chain
288 * @nh: Pointer to head of the blocking notifier chain
289 * @n: New entry in notifier chain
291 * Adds a notifier to an blocking notifier chain if there is no other
292 * notifier registered using the same priority.
304 * blocking_notifier_chain_unregister - Remove notifier from a blocking notifier chain
305 * @nh: Pointer to head of the blocking notifier chain
306 * @n: Entry to remove from notifier chain
308 * Removes a notifier from a blocking notifier chain.
353 * blocking_notifier_call_chain - Call functions in a blocking notifier chain
354 * @nh: Pointer to head of the blocking notifier chain
355 * @val: Value passed unmodified to notifier function
356 * @v: Pointer passed unmodified to notifier function
358 * Calls each function in a notifier chain in turn. The functions
361 * If the return value of the notifier can be and'ed
364 * the notifier function which halted execution.
366 * of the last notifier function called.
388 * Raw notifier chain routines. There is no protection;
393 * raw_notifier_chain_register - Add notifier to a raw notifier chain
394 * @nh: Pointer to head of the raw notifier chain
395 * @n: New entry in notifier chain
397 * Adds a notifier to a raw notifier chain.
410 * raw_notifier_chain_unregister - Remove notifier from a raw notifier chain
411 * @nh: Pointer to head of the raw notifier chain
412 * @n: Entry to remove from notifier chain
414 * Removes a notifier from a raw notifier chain.
434 * raw_notifier_call_chain - Call functions in a raw notifier chain
435 * @nh: Pointer to head of the raw notifier chain
436 * @val: Value passed unmodified to notifier function
437 * @v: Pointer passed unmodified to notifier function
439 * Calls each function in a notifier chain in turn. The functions
443 * If the return value of the notifier can be and'ed
446 * the notifier function which halted execution.
448 * of the last notifier function called.
458 * SRCU notifier chain routines. Registration and unregistration
463 * srcu_notifier_chain_register - Add notifier to an SRCU notifier chain
464 * @nh: Pointer to head of the SRCU notifier chain
465 * @n: New entry in notifier chain
467 * Adds a notifier to an SRCU notifier chain.
493 * srcu_notifier_chain_unregister - Remove notifier from an SRCU notifier chain
494 * @nh: Pointer to head of the SRCU notifier chain
495 * @n: Entry to remove from notifier chain
497 * Removes a notifier from an SRCU notifier chain.
524 * srcu_notifier_call_chain - Call functions in an SRCU notifier chain
525 * @nh: Pointer to head of the SRCU notifier chain
526 * @val: Value passed unmodified to notifier function
527 * @v: Pointer passed unmodified to notifier function
529 * Calls each function in a notifier chain in turn. The functions
532 * If the return value of the notifier can be and'ed
535 * the notifier function which halted execution.
537 * of the last notifier function called.
553 * srcu_init_notifier_head - Initialize an SRCU notifier head
554 * @nh: Pointer to head of the srcu notifier chain
556 * Unlike other sorts of notifier heads, SRCU notifier heads require
558 * calling any of the other SRCU notifier routines for this head.
560 * If an SRCU notifier head is deallocated, it must first be cleaned