Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The per-socket spinlock must be held here.

Proto:static inline __must_check int sk_add_backlog(struct sock *sk, struct sk_buff *skb, unsigned int limit)

Type:int

Parameter:

TypeParameterName
struct sock *sk
struct sk_buff *skb
unsigned intlimit
931  If 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. Then Return -ENOBUFS
939  If skb_pfmemalloc - Test if the skb was allocated from PFMEMALLOC reserves*@skb: buffer && Not sock_flag(sk, VM depends on this socket for swapping ) Then Return -ENOMEM
942  OOB backlog add
943  len += truesize
944  Return 0