Lines Matching defs:head
188 pr_emerg("%s: text:%px len:%d put:%d head:%px data:%px tail:%#lx end:%#lx dev:%s\n",
189 msg, addr, skb->len, sz, skb->head, skb->data,
277 * skb->head being backed by slab, not a page fragment.
354 skb->head = data;
429 * Allocate a new &sk_buff. Caller provides space holding head and
438 * Driver should add room at head (NET_SKB_PAD) and
459 * takes care of skb->head and skb->pfmemalloc
609 * instead of head cache and allocate a cloned (child) skb.
648 * Both skb->head and skb_shared_info are cache line aligned.
709 * we use kmalloc() for skb->head allocation.
766 * attempt to allocate the head from a special reserved region used
784 * we use kmalloc() for skb->head allocation.
898 * head page of compound page and bit 1 for pfmemalloc page, so
940 static void skb_kfree_head(void *head, unsigned int end_offset)
943 kmem_cache_free(skb_small_head_cache, head);
945 kfree(head);
950 unsigned char *head = skb->head;
953 if (skb_pp_recycle(skb, head, napi_safe))
955 skb_free_frag(head);
957 skb_kfree_head(head, skb_end_offset(skb));
990 * bit is only set on the head though, so in order to avoid races
1052 if (likely(skb->head))
1211 16, 1, skb->head, headroom, false);
1293 * skb reference and all the head states have been already dropped
1442 C(head);
1799 struct page *page, *head = NULL;
1821 while (head) {
1822 struct page *next = (struct page *)page_private(head);
1823 put_page(head);
1824 head = next;
1828 set_page_private(page, (unsigned long)head);
1829 head = page;
1832 page = head;
1866 __skb_fill_page_desc(skb, i, head, 0, psize);
1867 head = (struct page *)page_private(head);
1869 __skb_fill_page_desc(skb, new_frags - 1, head, 0, d_off);
1927 /* {transport,network,mac}_header and tail are relative to skb->head */
1987 BUG_ON(skb_copy_bits(skb, -headerlen, n->head, headerlen + skb->len));
1995 * __pskb_copy_fclone - create copy of an sk_buff with private head.
2000 * cache instead of the head cache; it is recommended to set this
2062 * @nhead: room to add at head
2101 memcpy(data + nhead, skb->head, skb_tail_pointer(skb) - skb->head);
2108 * if shinfo is shared we must drop the old head gracefully, but if it
2109 * is not we can just drop the old head and let the existing refcount
2127 off = (data + nhead) - skb->head;
2129 skb->head = data;
2162 /* Make private copy of skb with writable head and some headroom */
2221 memmove(skb->head + saved_end_offset,
2284 * @newheadroom: new free bytes at head
2328 BUG_ON(skb_copy_bits(skb, -head_copy_len, n->head + head_copy_off,
2445 if (unlikely(skb->data < skb->head))
2634 /* Moves tail of skb head forward, copying data from fragmented part,
2678 * further bloating skb head and crucify ourselves here instead.
2723 /* And insert new clone at head. */
2976 * fragment, and if the head is not shared with any clones then
2977 * we can avoid a copy since we own the head portion of this page.
3071 struct sk_buff *head = skb;
3077 /* Deal with head data */
3098 /* All the data was skb head? */
3147 if (skb == head) {
3586 int plen = 0; /* length of skb->head fragment */
3605 page = virt_to_head_page(from->head);
3669 * skb_dequeue - remove from the head of the queue
3672 * Remove the head of the list. The list lock is taken so the function
3673 * may be used safely with other locking list functions. The head item is
3776 * skb_queue_head - queue a buffer at the list head
4113 * the head of the data block to @data and returns the length
4319 page = virt_to_head_page(frag_skb->head);
4340 /* Ensure the head is writeable before touching the shared info */
4854 * struct skb_shared_info is located at the end of skb->head,
5015 /* If skb is cloned or its head is paged, reallocate
5016 * head pulling out all the pages (pages are considered not writable
5793 page = virt_to_head_page(from->head);
6045 * skb_eth_pop() - Drop the Ethernet header at the head of a packet
6071 * skb_eth_push() - Add a new Ethernet header at the head of a packet
6382 /* drop the old head gracefully */
6399 skb->head = data;
6461 /* And insert new clone at head. */
6533 skb->head = data;
6584 * If packet has bytes in frags and enough tail room in skb->head,
6588 * We do not reallocate skb->head thus can not fail.
6604 * When we pulled its content into skb->head, fragment