Lines Matching refs:nl
22 static int notifier_chain_register(struct notifier_block **nl, in notifier_chain_register() argument
25 while ((*nl) != NULL) { in notifier_chain_register()
26 WARN_ONCE(((*nl) == n), "double register detected"); in notifier_chain_register()
27 if (n->priority > (*nl)->priority) in notifier_chain_register()
29 nl = &((*nl)->next); in notifier_chain_register()
31 n->next = *nl; in notifier_chain_register()
32 rcu_assign_pointer(*nl, n); in notifier_chain_register()
36 static int notifier_chain_cond_register(struct notifier_block **nl, in notifier_chain_cond_register() argument
39 while ((*nl) != NULL) { in notifier_chain_cond_register()
40 if ((*nl) == n) in notifier_chain_cond_register()
42 if (n->priority > (*nl)->priority) in notifier_chain_cond_register()
44 nl = &((*nl)->next); in notifier_chain_cond_register()
46 n->next = *nl; in notifier_chain_cond_register()
47 rcu_assign_pointer(*nl, n); in notifier_chain_cond_register()
51 static int notifier_chain_unregister(struct notifier_block **nl, in notifier_chain_unregister() argument
54 while ((*nl) != NULL) { in notifier_chain_unregister()
55 if ((*nl) == n) { in notifier_chain_unregister()
56 rcu_assign_pointer(*nl, n->next); in notifier_chain_unregister()
59 nl = &((*nl)->next); in notifier_chain_unregister()
76 static int notifier_call_chain(struct notifier_block **nl, in notifier_call_chain() argument
83 nb = rcu_dereference_raw(*nl); in notifier_call_chain()