• Home
  • Raw
  • Download

Lines Matching refs:skb

69 	struct sk_buff *skb;  in prepare_reply()  local
75 skb = genlmsg_new(size, GFP_KERNEL); in prepare_reply()
76 if (!skb) in prepare_reply()
82 reply = genlmsg_put(skb, 0, seq, &family, 0, cmd); in prepare_reply()
84 reply = genlmsg_put_reply(skb, info, &family, 0, cmd); in prepare_reply()
86 nlmsg_free(skb); in prepare_reply()
90 *skbp = skb; in prepare_reply()
97 static int send_reply(struct sk_buff *skb, struct genl_info *info) in send_reply() argument
99 struct genlmsghdr *genlhdr = nlmsg_data(nlmsg_hdr(skb)); in send_reply()
102 genlmsg_end(skb, reply); in send_reply()
104 return genlmsg_reply(skb, info); in send_reply()
110 static void send_cpu_listeners(struct sk_buff *skb, in send_cpu_listeners() argument
113 struct genlmsghdr *genlhdr = nlmsg_data(nlmsg_hdr(skb)); in send_cpu_listeners()
115 struct sk_buff *skb_next, *skb_cur = skb; in send_cpu_listeners()
119 genlmsg_end(skb, reply); in send_cpu_listeners()
377 static struct taskstats *mk_reply(struct sk_buff *skb, int type, u32 pid) in mk_reply() argument
386 na = nla_nest_start_noflag(skb, aggr); in mk_reply()
390 if (nla_put(skb, type, sizeof(pid), &pid) < 0) { in mk_reply()
391 nla_nest_cancel(skb, na); in mk_reply()
394 ret = nla_reserve_64bit(skb, TASKSTATS_TYPE_STATS, in mk_reply()
397 nla_nest_cancel(skb, na); in mk_reply()
400 nla_nest_end(skb, na); in mk_reply()
407 static int cgroupstats_user_cmd(struct sk_buff *skb, struct genl_info *info) in cgroupstats_user_cmd() argument
558 static int taskstats_user_cmd(struct sk_buff *skb, struct genl_info *info) in taskstats_user_cmd() argument