Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kobject_uevent.c Create Date:2022-07-28 06:14:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:uevent_net_rcv_skb

Proto:static int uevent_net_rcv_skb(struct sk_buff *skb, struct nlmsghdr *nlh, struct netlink_ext_ack *extack)

Type:int

Parameter:

TypeParameterName
struct sk_buff *skb
struct nlmsghdr *nlh
struct netlink_ext_ack *extack
730  If Not lmsg_data - head of message payload*@nlh: netlink message header Then Return -EINVAL
738  net = sock_net(sk)
739  If Not netlink_ns_capable(skb, Owning user namespace , Allow setting zone reclaim policy ) Then
740  Always use this macro, this allows later putting the* message into a separate section or such for things* like translation or listing all possible messages.* Currently string formatting is not supported (due* to the lack of an output buffer.)(extack, "missing CAP_SYS_ADMIN capability")
741  Return -EPERM
744  mutex_lock( & This lock protects uevent_seqnum and uevent_sock_list )
745  ret = uevent_net_broadcast(sk, skb, extack)
746  mutex_unlock( & This lock protects uevent_seqnum and uevent_sock_list )
748  Return ret