Lines Matching refs:skb
68 struct sk_buff *skb; in prepare_reply() local
74 skb = genlmsg_new(size, GFP_KERNEL); in prepare_reply()
75 if (!skb) in prepare_reply()
81 reply = genlmsg_put(skb, 0, seq, &family, 0, cmd); in prepare_reply()
83 reply = genlmsg_put_reply(skb, info, &family, 0, cmd); in prepare_reply()
85 nlmsg_free(skb); in prepare_reply()
89 *skbp = skb; in prepare_reply()
96 static int send_reply(struct sk_buff *skb, struct genl_info *info) in send_reply() argument
98 struct genlmsghdr *genlhdr = nlmsg_data(nlmsg_hdr(skb)); in send_reply()
101 genlmsg_end(skb, reply); in send_reply()
103 return genlmsg_reply(skb, info); in send_reply()
109 static void send_cpu_listeners(struct sk_buff *skb, in send_cpu_listeners() argument
112 struct genlmsghdr *genlhdr = nlmsg_data(nlmsg_hdr(skb)); in send_cpu_listeners()
114 struct sk_buff *skb_next, *skb_cur = skb; in send_cpu_listeners()
118 genlmsg_end(skb, reply); in send_cpu_listeners()
355 static struct taskstats *mk_reply(struct sk_buff *skb, int type, u32 pid) in mk_reply() argument
364 na = nla_nest_start_noflag(skb, aggr); in mk_reply()
368 if (nla_put(skb, type, sizeof(pid), &pid) < 0) { in mk_reply()
369 nla_nest_cancel(skb, na); in mk_reply()
372 ret = nla_reserve_64bit(skb, TASKSTATS_TYPE_STATS, in mk_reply()
375 nla_nest_cancel(skb, na); in mk_reply()
378 nla_nest_end(skb, na); in mk_reply()
385 static int cgroupstats_user_cmd(struct sk_buff *skb, struct genl_info *info) in cgroupstats_user_cmd() argument
536 static int taskstats_user_cmd(struct sk_buff *skb, struct genl_info *info) in taskstats_user_cmd() argument