Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:lmsg_ok - check if the netlink message fits into the remaining bytes*@nlh: netlink message header*@remaining: number of bytes remaining in message stream

Proto:static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining)

Type:int

Parameter:

TypeParameterName
const struct nlmsghdr *nlh
intremaining
544  Return remaining >= sizeof(structnlmsghdr) && Length of message including header >= sizeof(structnlmsghdr) && Length of message including header <= remaining
Caller
NameDescribe
audit_receiveaudit_receive - receive messages from a netlink control socket*@skb: the message buffer* Parse the provided skb and deal with any messages that may be present,* malformed skbs are discarded.