Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\sock.h Create Date:2022-07-28 06:09:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sk_wmem_free_skb

Proto:static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb)

Type:void

Parameter:

TypeParameterName
struct sock *sk
struct sk_buff *skb
1478  sock_set_flag(sk, write queue has been shrunk recently )
1479  sk_wmem_queued_add(sk, - truesize)
1480  sk_mem_uncharge(sk, truesize)
1481  If static_branch_unlikely( & tcp_tx_skb_cache_key) && Not sk_tx_skb_cache && Not skb_cloned - is the buffer a clone*@skb: buffer to check* Returns true if the buffer was generated with skb_clone() and is* one of multiple shared copies of the buffer. Cloned buffers are* shared data so must not be written to under normal circumstances. Then
1483  Release a reference on a zerocopy structure
1484  sk_tx_skb_cache = skb
1485  Return
1487  private function