Lines Matching refs:skb
58 static int cnss_genl_process_msg(struct sk_buff *skb, struct genl_info *info) in cnss_genl_process_msg() argument
93 struct sk_buff *skb = NULL; in cnss_genl_send_data() local
106 skb = genlmsg_new(NLMSG_HDRLEN + in cnss_genl_send_data()
114 if (!skb) in cnss_genl_send_data()
117 msg_header = genlmsg_put(skb, 0, 0, in cnss_genl_send_data()
125 ret = nla_put_u8(skb, CNSS_GENL_ATTR_MSG_TYPE, type); in cnss_genl_send_data()
128 ret = nla_put_string(skb, CNSS_GENL_ATTR_MSG_FILE_NAME, filename); in cnss_genl_send_data()
131 ret = nla_put_u32(skb, CNSS_GENL_ATTR_MSG_TOTAL_SIZE, total_size); in cnss_genl_send_data()
134 ret = nla_put_u32(skb, CNSS_GENL_ATTR_MSG_SEG_ID, seg_id); in cnss_genl_send_data()
137 ret = nla_put_u8(skb, CNSS_GENL_ATTR_MSG_END, end); in cnss_genl_send_data()
140 ret = nla_put_u32(skb, CNSS_GENL_ATTR_MSG_DATA_LEN, data_len); in cnss_genl_send_data()
143 ret = nla_put(skb, CNSS_GENL_ATTR_MSG_DATA, data_len, msg_buff); in cnss_genl_send_data()
147 genlmsg_end(skb, msg_header); in cnss_genl_send_data()
148 ret = genlmsg_multicast(&cnss_genl_family, skb, 0, 0, GFP_KERNEL); in cnss_genl_send_data()
155 if (skb) in cnss_genl_send_data()
156 nlmsg_free(skb); in cnss_genl_send_data()