#include <linux/errno.h>
#include <linux/mutex.h>
#include <linux/rwsem.h>
#include <linux/srcu.h>
Go to the source code of this file.
#define ATOMIC_INIT_NOTIFIER_HEAD |
( |
|
name | ) |
|
Value:do { \
spin_lock_init(&(
name)->lock); \
} while (0)
Definition at line 76 of file notifier.h.
#define ATOMIC_NOTIFIER_HEAD |
( |
|
name | ) |
|
Value:
ATOMIC_NOTIFIER_INIT(name)
Definition at line 103 of file notifier.h.
#define ATOMIC_NOTIFIER_INIT |
( |
|
name | ) |
|
#define BLOCKING_INIT_NOTIFIER_HEAD |
( |
|
name | ) |
|
Value:do { \
init_rwsem(&(
name)->rwsem); \
} while (0)
Definition at line 80 of file notifier.h.
#define BLOCKING_NOTIFIER_HEAD |
( |
|
name | ) |
|
Value:
BLOCKING_NOTIFIER_INIT(name)
Definition at line 106 of file notifier.h.
#define BLOCKING_NOTIFIER_INIT |
( |
|
name | ) |
|
#define RAW_INIT_NOTIFIER_HEAD |
( |
|
name | ) |
|
#define RAW_NOTIFIER_HEAD |
( |
|
name | ) |
|
#define RAW_NOTIFIER_INIT |
( |
|
name | ) |
|
srcu_init_notifier_head - Initialize an SRCU notifier head : Pointer to head of the srcu notifier chain
Unlike other sorts of notifier heads, SRCU notifier heads require dynamic initialization. Be sure to call this routine before calling any of the other SRCU notifier routines for this head.
If an SRCU notifier head is deallocated, it must first be cleaned up by calling srcu_cleanup_notifier_head(). Otherwise the head's per-cpu data (used by the SRCU mechanism) will leak.
Definition at line 519 of file notifier.c.