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_broadcast

Proto:static int uevent_net_broadcast(struct sock *usk, struct sk_buff *skb, struct netlink_ext_ack *extack)

Type:int

Parameter:

TypeParameterName
struct sock *usk
struct sk_buff *skb
struct netlink_ext_ack *extack
690  ret = snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
691  If ret < 0 || ret >= size of buf Then Return -ENOMEM
693  ret++
696  If len + ret > uffer for the variables Then
697  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, "uevent message too big")
698  Return -EINVAL
702  skbc = copy and expand sk_buff
703  If Not skbc Then Return -ENOMEM
707  skb_put_data(skbc, buf, ret)
710  remove data from the start of a buffer
713  portid = 0
714  dst_group = 1
716  ret = netlink_broadcast(usk, skbc, 0, 1, GFP_KERNEL)
718  If ret == -ENOBUFS || ret == -ESRCH Then ret = 0
721  Return ret
Caller
NameDescribe
uevent_net_rcv_skb