Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:reqsk_alloc

Proto:static inline struct request_sock *reqsk_alloc(const struct request_sock_ops *ops, struct sock *sk_listener, bool attach_listener)

Type:struct request_sock

Parameter:

TypeParameterName
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  If Not req Then Return NULL
87  rsk_listener = NULL
88  If attach_listener Then
91  Return 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  Return req