Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:uevent_net_broadcast_untagged

Proto:static int uevent_net_broadcast_untagged(struct kobj_uevent_env *env, const char *action_string, const char *devpath)

Type:int

Parameter:

TypeParameterName
struct kobj_uevent_env *env
const char *action_string
const char *devpath
312  struct sk_buff * skb = NULL
314  retval = 0
318  uevent_sock = sk
320  If Not netlink_has_listeners(uevent_sock, 1) Then Continue
323  If Not skb Then
324  retval = -ENOMEM
325  skb = alloc_uevent_skb(env, action_string, devpath)
326  If Not skb Then Continue
330  retval = netlink_broadcast(uevent_sock, skb_get - reference buffer*@skb: buffer to reference* Makes another reference to a socket buffer and returns a pointer* to the buffer., 0, 1, GFP_KERNEL)
333  If retval == -ENOBUFS || retval == -ESRCH Then retval = 0
336  consume_skb(skb)
338  Return retval
Caller
NameDescribe
kobject_uevent_net_broadcast