Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| struct sock * | sk | |
| struct sk_buff * | skb | |
| unsigned int | limit |
| 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 |
| 944 | Return 0 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |