Query: cfg80211_testmode_alloc_reply_skb
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CFG80211_TESTMODE_AL(9) Test mode CFG80211_TESTMODE_AL(9)NAMEcfg80211_testmode_alloc_reply_skb - allocate testmode replySYNOPSISstruct sk_buff * cfg80211_testmode_alloc_reply_skb(struct wiphy * wiphy, int approxlen);ARGUMENTSwiphy the wiphy approxlen an upper bound of the length of the data that will be put into the skbDESCRIPTIONThis function allocates and pre-fills an skb for a reply to the testmode command. Since it is intended for a reply, calling it outside of the testmode_cmd operation is invalid. The returned skb is pre-filled with the wiphy index and set up in a way that any data that is put into the skb (with skb_put, nla_put or similar) will end up being within the NL80211_ATTR_TESTDATA attribute, so all that needs to be done with the skb is adding data for the corresponding userspace tool which can then read that data out of the testdata attribute. You must not modify the skb in any other way. When done, call cfg80211_testmode_reply with the skb and return its error code as the result of the testmode_cmd operation.RETURNAn allocated and pre-filled skb. NULL if any errors happen.AUTHORJohannes Berg <johannes@sipsolutions.net> Author.COPYRIGHTKernel Hackers Manual 3.10 June 2014 CFG80211_TESTMODE_AL(9)
Related Man Pages |
---|
__skb_recv_datagram(9) - centos |
enum_ieee80211_rate_flags(9) - centos |
struct_cfg80211_bss(9) - centos |
struct_wireless_dev(9) - centos |
struct_ieee80211_hw(9) - suse |
Similar Topics in the Unix Linux Community |
---|
Required unix command!!! |
datetimestamp related query! |
How can I get data in the sk_buff? |
search file and put into struct |
reading data from a file to an array |