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:Grab socket reference count. This operation is valid onlywhen sk is ALREADY grabbed f.e. it is found in hash tableor a list and the lookup is made under lock preventing hash tablemodifications.

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

Type:void

Parameter:

TypeParameterName
struct sock *sk
648  _inc - increment a refcount*@r: the refcount to increment* Similar to atomic_inc(), but will saturate at REFCOUNT_SATURATED and WARN