#ifndef __BACKPORT_LINUX_RTNETLINK_H | |
#define __BACKPORT_LINUX_RTNETLINK_H | |
#include_next <linux/rtnetlink.h> | |
#ifndef rtnl_dereference | |
#define rtnl_dereference(p) \ | |
rcu_dereference_protected(p, lockdep_rtnl_is_held()) | |
#endif | |
#ifndef rcu_dereference_rtnl | |
#define rcu_dereference_rtnl(p) \ | |
rcu_dereference_check(p, rcu_read_lock_held() || \ | |
lockdep_rtnl_is_held()) | |
#endif | |
#endif /* __BACKPORT_LINUX_RTNETLINK_H */ |