1CFG80211_TESTMODE_AL(9)            Test mode           CFG80211_TESTMODE_AL(9)
2
3
4

NAME

6       cfg80211_testmode_alloc_event_skb - allocate testmode event
7

SYNOPSIS

9       struct sk_buff *
10                                                          cfg80211_testmode_alloc_event_skb(struct wiphy * wiphy,
11                                                          int approxlen,
12                                                          gfp_t gfp);
13

ARGUMENTS

15       wiphy
16           the wiphy
17
18       approxlen
19           an upper bound of the length of the data that will be put into the
20           skb
21
22       gfp
23           allocation flags
24

DESCRIPTION

26       This function allocates and pre-fills an skb for an event on the
27       testmode multicast group.
28
29       The returned skb is set up in the same way as with
30       cfg80211_testmode_alloc_reply_skb but prepared for an event. As there,
31       you should simply add data to it that will then end up in the
32       NL80211_ATTR_TESTDATA attribute. Again, you must not modify the skb in
33       any other way.
34
35       When done filling the skb, call cfg80211_testmode_event with the skb to
36       send the event.
37

RETURN

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

AUTHOR

42       Johannes Berg <johannes@sipsolutions.net>
43           Author.
44
46Kernel Hackers Manual 3.10         June 2019           CFG80211_TESTMODE_AL(9)
Impressum