Lines Matching refs:msgindex
146 int msgindex = msgtype - RTM_BASE; in rtm_msgindex() local
153 BUG_ON(msgindex < 0 || msgindex >= RTM_NR_MSGTYPES); in rtm_msgindex()
155 return msgindex; in rtm_msgindex()
179 int msgindex; in rtnl_register_internal() local
183 msgindex = rtm_msgindex(msgtype); in rtnl_register_internal()
196 old = rtnl_dereference(tab[msgindex]); in rtnl_register_internal()
220 rcu_assign_pointer(tab[msgindex], link); in rtnl_register_internal()
290 int msgindex; in rtnl_unregister() local
293 msgindex = rtm_msgindex(msgtype); in rtnl_unregister()
302 link = tab[msgindex]; in rtnl_unregister()
303 rcu_assign_pointer(tab[msgindex], NULL); in rtnl_unregister()
322 int msgindex; in rtnl_unregister_all() local
333 for (msgindex = 0; msgindex < RTM_NR_MSGTYPES; msgindex++) { in rtnl_unregister_all()
334 link = tab[msgindex]; in rtnl_unregister_all()
338 rcu_assign_pointer(tab[msgindex], NULL); in rtnl_unregister_all()