Lines Matching refs:nb
18 int call_fib_notifier(struct notifier_block *nb, in call_fib_notifier() argument
24 err = nb->notifier_call(nb, event_type, info); in call_fib_notifier()
60 static int fib_net_dump(struct net *net, struct notifier_block *nb, in fib_net_dump() argument
71 err = ops->fib_dump(net, nb, extack); in fib_net_dump()
83 static bool fib_dump_is_consistent(struct net *net, struct notifier_block *nb, in fib_dump_is_consistent() argument
84 void (*cb)(struct notifier_block *nb), in fib_dump_is_consistent() argument
89 atomic_notifier_chain_register(&fn_net->fib_chain, nb); in fib_dump_is_consistent()
92 atomic_notifier_chain_unregister(&fn_net->fib_chain, nb); in fib_dump_is_consistent()
94 cb(nb); in fib_dump_is_consistent()
99 int register_fib_notifier(struct net *net, struct notifier_block *nb, in register_fib_notifier() argument
100 void (*cb)(struct notifier_block *nb), in register_fib_notifier() argument
109 err = fib_net_dump(net, nb, extack); in register_fib_notifier()
113 if (fib_dump_is_consistent(net, nb, cb, fib_seq)) in register_fib_notifier()
121 int unregister_fib_notifier(struct net *net, struct notifier_block *nb) in unregister_fib_notifier() argument
125 return atomic_notifier_chain_unregister(&fn_net->fib_chain, nb); in unregister_fib_notifier()