Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

__pskb_pull_tail(9) [suse man page]

__PSKB_PULL_TAIL(9)						 Linux Networking					       __PSKB_PULL_TAIL(9)

NAME
__pskb_pull_tail - advance tail of skb header SYNOPSIS
unsigned char * __pskb_pull_tail(struct sk_buff * skb, int delta); ARGUMENTS
skb buffer to reallocate delta number of bytes to advance tail DESCRIPTION
The function makes a sense only on a fragmented sk_buff, it expands header moving its tail forward and copying necessary data from fragmented part. sk_buff MUST have reference count of 1. Returns NULL (and sk_buff does not change) if pull failed or value of new tail of skb in the case of success. All the pointers pointing into skb header may change and must be reloaded after call to this function. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 __PSKB_PULL_TAIL(9)

Check Out this Related Man Page

CFG80211_TESTMODE_AL(9) 					     Test mode						   CFG80211_TESTMODE_AL(9)

NAME
cfg80211_testmode_alloc_reply_skb - allocate testmode reply SYNOPSIS
struct sk_buff * cfg80211_testmode_alloc_reply_skb(struct wiphy * wiphy, int approxlen); ARGUMENTS
wiphy the wiphy approxlen an upper bound of the length of the data that will be put into the skb DESCRIPTION
This 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. RETURN
An allocated and pre-filled skb. NULL if any errors happen. AUTHOR
Johannes Berg <johannes@sipsolutions.net> Author. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 CFG80211_TESTMODE_AL(9)
Man Page