Lines Matching refs:msgindex
104 int msgindex = msgtype - RTM_BASE;
107 * msgindex < 0 implies someone tried to register a netlink
108 * control code. msgindex >= RTM_NR_MSGTYPES may indicate that
111 BUG_ON(msgindex < 0 || msgindex >= RTM_NR_MSGTYPES);
113 return msgindex;
116 static rtnl_doit_func rtnl_get_doit(int protocol, int msgindex)
121 if (tab == NULL || tab[msgindex].doit == NULL)
124 return tab ? tab[msgindex].doit : NULL;
127 static rtnl_dumpit_func rtnl_get_dumpit(int protocol, int msgindex)
132 if (tab == NULL || tab[msgindex].dumpit == NULL)
135 return tab ? tab[msgindex].dumpit : NULL;
159 int msgindex;
162 msgindex = rtm_msgindex(msgtype);
174 tab[msgindex].doit = doit;
177 tab[msgindex].dumpit = dumpit;
213 int msgindex;
216 msgindex = rtm_msgindex(msgtype);
221 rtnl_msg_handlers[protocol][msgindex].doit = NULL;
222 rtnl_msg_handlers[protocol][msgindex].dumpit = NULL;