Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Queue a received datagram if it will fit. Stream and sequenced* protocols can't normally use this as they need to fit buffers in* and play with them.* Inlined as it's very short and called for pretty much every* packet ever received.

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

Type:void

Parameter:

TypeParameterName
struct sk_buff *skb
struct sock *sk
2142  skb_orphan - orphan a buffer*@skb: buffer to orphan* If a buffer currently has an owner then we call the owner's* destructor function and make the @skb unowned. The buffer continues* to exist but is no longer charged to its former owner.
2143  sk = sk
2144  destructor = sock_rfree
2145  atomic_add(truesize, & sk_rmem_alloc)
2146  sk_mem_charge(sk, truesize)