Lines Matching refs:nl
21 static int notifier_chain_register(struct notifier_block **nl, in notifier_chain_register() argument
24 while ((*nl) != NULL) { in notifier_chain_register()
25 if (n->priority > (*nl)->priority) in notifier_chain_register()
27 nl = &((*nl)->next); in notifier_chain_register()
29 n->next = *nl; in notifier_chain_register()
30 rcu_assign_pointer(*nl, n); in notifier_chain_register()
34 static int notifier_chain_cond_register(struct notifier_block **nl, in notifier_chain_cond_register() argument
37 while ((*nl) != NULL) { in notifier_chain_cond_register()
38 if ((*nl) == n) in notifier_chain_cond_register()
40 if (n->priority > (*nl)->priority) in notifier_chain_cond_register()
42 nl = &((*nl)->next); in notifier_chain_cond_register()
44 n->next = *nl; in notifier_chain_cond_register()
45 rcu_assign_pointer(*nl, n); in notifier_chain_cond_register()
49 static int notifier_chain_unregister(struct notifier_block **nl, in notifier_chain_unregister() argument
52 while ((*nl) != NULL) { in notifier_chain_unregister()
53 if ((*nl) == n) { in notifier_chain_unregister()
54 rcu_assign_pointer(*nl, n->next); in notifier_chain_unregister()
57 nl = &((*nl)->next); in notifier_chain_unregister()
74 static int notifier_call_chain(struct notifier_block **nl, in notifier_call_chain() argument
81 nb = rcu_dereference_raw(*nl); in notifier_call_chain()