Searched refs:skb (Results 1 – 2 of 2) sorted by relevance
/fs/quota/ |
D | netlink.c | 41 struct sk_buff *skb; in quota_send_warning() local 50 skb = genlmsg_new(msg_size, GFP_NOFS); in quota_send_warning() 51 if (!skb) { in quota_send_warning() 56 msg_head = genlmsg_put(skb, 0, atomic_add_return(1, &seq), in quota_send_warning() 63 ret = nla_put_u32(skb, QUOTA_NL_A_QTYPE, qid.type); in quota_send_warning() 66 ret = nla_put_u64_64bit(skb, QUOTA_NL_A_EXCESS_ID, in quota_send_warning() 71 ret = nla_put_u32(skb, QUOTA_NL_A_WARNING, warntype); in quota_send_warning() 74 ret = nla_put_u32(skb, QUOTA_NL_A_DEV_MAJOR, MAJOR(dev)); in quota_send_warning() 77 ret = nla_put_u32(skb, QUOTA_NL_A_DEV_MINOR, MINOR(dev)); in quota_send_warning() 80 ret = nla_put_u64_64bit(skb, QUOTA_NL_A_CAUSED_ID, in quota_send_warning() [all …]
|
/fs/dlm/ |
D | netlink.c | 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() [all …]
|