函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:uevent_net_broadcast_tagged

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

返回类型:int

参数:

类型参数名称
struct sock *usk
struct kobj_uevent_env *env
const char *action_string
const char *devpath
346  owning_user_ns等于 Owning user namespace
347  struct sk_buff * skb = NULL
348  ret等于0
350  skb等于alloc_uevent_skb(env, action_string, devpath)
351  如果非skb则返回:负ENOMEM
355  如果owning_user_ns不等于init_user_ns
356  parms等于NETLINK_CB(skb)
361  root_uid等于make_kuid(owning_user_ns, 0)
362  如果uid_valid(root_uid)则uid等于root_uid
366  root_gid等于make_kgid(owning_user_ns, 0)
367  如果gid_valid(root_gid)则gid等于root_gid
371  ret等于netlink_broadcast(usk, skb, 0, 1, GFP_KERNEL)
373  如果ret恒等于负ENOBUFSret恒等于负ESRCHret等于0
376  返回:ret
调用者
名称描述
kobject_uevent_net_broadcast