函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sk_add_node_rcu

函数原型:static inline void sk_add_node_rcu(struct sock *sk, struct hlist_head *list)

返回类型:void

参数:

类型参数名称
struct sock *sk
struct hlist_head *list
706  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.
707  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_IPV6)且sk_reuseportsk_family恒等于IP version 6 hlist_add_tail_rcu*@n: the element to add to the hash list
710  否则添加哈希记录