函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kobject_uevent.c Create Date:2022-07-27 07:11:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:uevent_net_broadcast_untagged

函数原型:static int uevent_net_broadcast_untagged(struct kobj_uevent_env *env, const char *action_string, const char *devpath)

返回类型:int

参数:

类型参数名称
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  如果非netlink_has_listeners(uevent_sock, 1)则继续下一循环
323  如果非skb
324  retval等于负ENOMEM
325  skb等于alloc_uevent_skb(env, action_string, devpath)
326  如果非skb则继续下一循环
330  retval等于netlink_broadcast(uevent_sock, 引用缓存, 0, 1, GFP_KERNEL)
333  如果retval恒等于负ENOBUFSretval恒等于负ESRCHretval等于0
336  consume_skb(skb)
338  返回:retval
调用者
名称描述
kobject_uevent_net_broadcast