函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The per-socket spinlock must be held here.

函数原型:static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb, unsigned int limit)

返回类型:int

参数:

类型参数名称
struct sock *sk
struct sk_buff *skb
unsigned intlimit
931  如果Take into account size of receive queue and backlog queue* Do not take into account this skb truesize,* to allow even a single big packet to come.则返回:负ENOBUFS
939  如果skb_pfmemalloc - Test if the skb was allocated from PFMEMALLOC reserves*@skb: buffer且非sock_flag(sk, VM depends on this socket for swapping )则返回:负ENOMEM
942  OOB backlog add
943  len加等于truesize
944  返回:0