函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:reqsk_queue_remove

函数原型:static inline struct request_sock *reqsk_queue_remove(struct request_sock_queue *queue, struct sock *parent)

返回类型:struct request_sock

参数:

类型参数名称
struct request_sock_queue *queue
struct sock *parent
196  spin_lock_bh( & rskq_lock)
197  req等于rskq_accept_head
198  如果req
199  sk_acceptq_removed(parent)
200  WRITE_ONCE(rskq_accept_head, dl_next)
201  如果(rskq_accept_head == NULL)则rskq_accept_tail = NULL
204  spin_unlock_bh( & rskq_lock)
205  返回:req