Go to the documentation of this file. 1 #ifndef __LINUX_RTNETLINK_H
2 #define __LINUX_RTNETLINK_H
6 #include <linux/netdevice.h>
25 #ifdef CONFIG_PROVE_LOCKING
26 extern int lockdep_rtnl_is_held(
void);
36 #define rcu_dereference_rtnl(p) \
37 rcu_dereference_check(p, lockdep_rtnl_is_held())
47 #define rtnl_dereference(p) \
48 rcu_dereference_protected(p, lockdep_rtnl_is_held())
60 #define ASSERT_RTNL() do { \
61 if (unlikely(!rtnl_is_locked())) { \
62 printk(KERN_ERR "RTNL: assertion failed at %s (%d)\n", \
63 __FILE__, __LINE__); \