Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sk_has_allocations - check if allocations are outstanding*@sk: socket* Returns true if socket has write or read allocations

Proto:static inline bool sk_has_allocations(const struct sock *sk)

Type:bool

Parameter:

TypeParameterName
const struct sock *sk
2061  Return sk_wmem_alloc_get - returns write allocations*@sk: socket* Returns sk_wmem_alloc minus initial offset of one || sk_rmem_alloc_get - returns read allocations*@sk: socket* Returns sk_rmem_alloc