__alloc_skb — allocate a network buffer
struct sk_buff * __alloc_skb ( | unsigned int size, |
gfp_t gfp_mask, | |
int flags, | |
int node) ; |
size
size to allocate
gfp_mask
allocation mask
flags
If SKB_ALLOC_FCLONE is set, allocate from fclone cache instead of head cache and allocate a cloned (child) skb. If SKB_ALLOC_RX is set, __GFP_MEMALLOC will be used for allocations in case the data is required for writeback
node
numa node to allocate memory on