函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:reqsk_alloc

函数原型:static inline struct request_sock *reqsk_alloc(const struct request_sock_ops *ops, struct sock *sk_listener, bool attach_listener)

返回类型:struct request_sock

参数:

类型参数名称
const struct request_sock_ops *ops
struct sock *sk_listener
boolattach_listener
84  req等于kmem_cache_alloc(slab, DOC: Useful GFP flag combinations* Useful GFP flag combinations* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~* Useful GFP flag combinations that are commonly used. It is recommended* that subsystems start with one of these combinations and then set/clear | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.)
85  如果非req则返回:NULL
87  rsk_listener = NULL
88  如果attach_listener
91  返回:NULL
93  rsk_listener等于sk_listener
95  rsk_ops等于ops
96  sk_prot等于sk_prot
97  sk_node_init( & sk_node)
98  sk_tx_queue_clear(req_to_sk(req))
99  saved_syn = NULL
100  number of timeouts 等于0
101  number of retransmits 等于0
102  sk = NULL
103  _set - set a refcount's value*@r: the refcount*@n: value to which the refcount will be set
105  返回:req