Lines Matching defs:cb
887 static int tc_dump_qdisc(struct sk_buff *skb, struct netlink_callback *cb)
894 s_idx = cb->args[0];
895 s_q_idx = q_idx = cb->args[1];
909 if (tc_fill_qdisc(skb, q, q->parent, NETLINK_CB(cb->skb).pid,
910 cb->nlh->nlmsg_seq, NLM_F_MULTI, RTM_NEWQDISC) <= 0)
921 cb->args[0] = idx;
922 cb->args[1] = q_idx;
1110 struct netlink_callback *cb;
1117 return tc_fill_tclass(a->skb, q, cl, NETLINK_CB(a->cb->skb).pid,
1118 a->cb->nlh->nlmsg_seq, NLM_F_MULTI, RTM_NEWTCLASS);
1121 static int tc_dump_tclass(struct sk_buff *skb, struct netlink_callback *cb)
1127 struct tcmsg *tcm = (struct tcmsg*)NLMSG_DATA(cb->nlh);
1130 if (cb->nlh->nlmsg_len < NLMSG_LENGTH(sizeof(*tcm)))
1135 s_t = cb->args[0];
1146 memset(&cb->args[1], 0, sizeof(cb->args)-sizeof(cb->args[0]));
1149 arg.cb = cb;
1151 arg.w.skip = cb->args[1];
1154 cb->args[1] = arg.w.count;
1160 cb->args[0] = t;