Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Ungrab socket in the context, which assumes that socket refcntcannot hit zero, f.e. it is true in context of any socketcall.

Proto:static __always_inline void __sock_put(struct sock *sk)

Type:void

Parameter:

TypeParameterName
struct sock *sk
656  _dec - decrement a refcount*@r: the refcount* Similar to atomic_dec(), it will WARN on underflow and fail to decrement* when saturated at REFCOUNT_SATURATED.* Provides release memory ordering, such that prior loads and stores are done* before.