Lines Matching defs:msg
28 static int ieee802154_nl_fill_phy(struct sk_buff *msg, u32 portid,
40 hdr = genlmsg_put(msg, 0, seq, &nl802154_family, flags,
46 if (nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) ||
47 nla_put_u8(msg, IEEE802154_ATTR_PAGE, phy->current_page) ||
48 nla_put_u8(msg, IEEE802154_ATTR_CHANNEL, phy->current_channel))
55 nla_put(msg, IEEE802154_ATTR_CHANNEL_PAGE_LIST,
60 genlmsg_end(msg, hdr);
65 genlmsg_cancel(msg, hdr);
76 struct sk_buff *msg;
94 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL);
95 if (!msg)
98 rc = ieee802154_nl_fill_phy(msg, info->snd_portid, info->snd_seq,
105 return genlmsg_reply(msg, info);
107 nlmsg_free(msg);
163 struct sk_buff *msg;
199 msg = ieee802154_nl_new_reply(info, 0, IEEE802154_ADD_IFACE);
200 if (!msg)
243 if (nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) ||
244 nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name)) {
252 return ieee802154_nl_reply(msg, info);
260 nlmsg_free(msg);
268 struct sk_buff *msg;
318 msg = ieee802154_nl_new_reply(info, 0, IEEE802154_DEL_IFACE);
319 if (!msg)
331 if (nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) ||
332 nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, name))
336 return ieee802154_nl_reply(msg, info);
339 nlmsg_free(msg);