函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\sock.h Create Date:2022-07-27 07:06:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static __always_inline void sock_hold(struct sock *sk)

返回类型:void

参数:

类型参数名称
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
调用者
名称描述
sk_add_node
sk_add_node_rcu
sk_add_node_tail_rcu
sk_nulls_add_node_rcu