cfg80211_testmode_alloc_event_skb(9)

cfg80211_testmode_alloc_event_skb9

Allocate testmode event

Usage

struct sk_buff * cfg80211_testmode_alloc_event_skb(struct wiphy * wiphy, int approxlen, gfp_t gfp);

Arguments

wiphy

the wiphy

approxlen

an upper bound of the length of the data that will be put into the skb

gfp

allocation flags

Overview

This function allocates and pre-fills an skb for an event on the testmode multicast group.

The returned skb is set up in the same way as with cfg80211_testmode_alloc_reply_skb but prepared for an event. As there, you should simply add data to it that will then end up in the NL80211_ATTR_TESTDATA attribute. Again, you must not modify the skb in any other way.

When done filling the skb, call cfg80211_testmode_event with the skb to send the event.

Return

An allocated and pre-filled skb. NULL if any errors happen.

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8

Author

Johannes Berg <[email protected]>

Author.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.