Lines Matching refs:skb
20 struct sk_buff *skb; in prepare_data() local
23 skb = genlmsg_new(size, GFP_NOFS); in prepare_data()
24 if (!skb) in prepare_data()
28 data = genlmsg_put(skb, 0, dlm_nl_seqnum++, &family, 0, cmd); in prepare_data()
30 nlmsg_free(skb); in prepare_data()
34 *skbp = skb; in prepare_data()
38 static struct dlm_lock_data *mk_data(struct sk_buff *skb) in mk_data() argument
42 ret = nla_reserve(skb, DLM_TYPE_LOCK, sizeof(struct dlm_lock_data)); in mk_data()
48 static int send_data(struct sk_buff *skb) in send_data() argument
50 struct genlmsghdr *genlhdr = nlmsg_data((struct nlmsghdr *)skb->data); in send_data()
53 genlmsg_end(skb, data); in send_data()
55 return genlmsg_unicast(&init_net, skb, listener_nlportid); in send_data()
58 static int user_cmd(struct sk_buff *skb, struct genl_info *info) in user_cmd() argument