

Parameters gfp_t gfp_mask allocation priority. Struct page * _dev_alloc_pages (gfp_t gfp_mask, unsigned int order ) ¶

Although this functionĪllocates memory it can be called from an interrupt. NULL is returned if there is no free memory. The built in space is used for optimisations. The headroom they think they need without accounting for theīuilt in space. Theīuffer has unspecified headroom built in. Parameters const struct sk_buff * skb buffer to checkĪllocate a new sk_buff and assign it a usage count of one. Unsigned int skb_headroom (const struct sk_buff * skb ) ¶ InĪddition updates skb such that i is the last fragment. Skb to point to size bytes at offset off within page. Void skb_fill_page_desc (struct sk_buff * skb, int i, struct page * page, int off, int size ) ¶Īs per _skb_fill_page_desc() – initialises the i‘th fragment of Initialises the i‘th fragment of skb to point to size bytes atĭoes not take any additional reference on the fragment. Parameters struct sk_buff * skb buffer containing fragment to be initialised int i paged fragment index to initialise struct page * page the page to use for this fragment int off the offset to the data with page int size the length of the data Void _skb_fill_page_desc (struct sk_buff * skb, int i, struct page * page, int off, int size ) ¶ So must be used with appropriate locks held only. Parameters struct sk_buff * skb buffer to pad int pad space to pad Int skb_pad (struct sk_buff * skb, int pad ) ¶ Some drivers call skb_orphan() in their ndo_start_xmit(), Returns true if skb is a fast clone, and its clone is not freed. Parameters const struct sock * sk socket const struct sk_buff * skb buffer Reference, so that last dst_release can destroy the dst immediately.īool skb_dst_is_noref (const struct sk_buff * skb ) ¶īool skb_fclone_busy (const struct sock * sk, const struct sk_buff * skb ) ¶ If dst entry is cached, we do not take reference and dst_release

Sets skb dst, assuming a reference was not taken on dst. Sets skb dst, hopefully, without taking reference Void skb_dst_set_noref (struct sk_buff * skb, struct dst_entry * dst ) ¶ Sets skb dst, assuming a reference was taken on dst and should Parameters struct sk_buff * skb buffer struct dst_entry * dst dst entry Void skb_dst_set (struct sk_buff * skb, struct dst_entry * dst ) ¶ Returns skb dst_entry, regardless of reference taken or not. Parameters const struct sk_buff * skb buffer Struct dst_entry * skb_dst (const struct sk_buff * skb ) ¶
