'\" t .\" Title: cfg80211_testmode_alloc_event_skb .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Test mode .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "CFG80211_TESTMODE_AL" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Test mode" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" cfg80211_testmode_alloc_event_skb \- allocate testmode event .SH "SYNOPSIS" .HP \w'struct\ sk_buff\ *\ cfg80211_testmode_alloc_event_skb('u .BI "struct sk_buff * cfg80211_testmode_alloc_event_skb(struct\ wiphy\ *\ " "wiphy" ", int\ " "approxlen" ", gfp_t\ " "gfp" ");" .SH "ARGUMENTS" .PP \fIwiphy\fR .RS 4 the wiphy .RE .PP \fIapproxlen\fR .RS 4 an upper bound of the length of the data that will be put into the skb .RE .PP \fIgfp\fR .RS 4 allocation flags .RE .SH "DESCRIPTION" .PP This function allocates and pre\-fills an skb for an event on the testmode multicast group\&. .PP The returned skb is set up in the same way as with \fBcfg80211_testmode_alloc_reply_skb\fR but prepared for an event\&. As there, you should simply add data to it that will then end up in the \fBNL80211_ATTR_TESTDATA\fR attribute\&. Again, you must not modify the skb in any other way\&. .PP When done filling the skb, call \fBcfg80211_testmode_event\fR with the skb to send the event\&. .SH "RETURN" .PP An allocated and pre\-filled skb\&. \fBNULL\fR if any errors happen\&. .SH "AUTHOR" .PP \fBJohannes Berg\fR <\&johannes@sipsolutions.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br