Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:uevent_net_broadcast_tagged

Proto:static int uevent_net_broadcast_tagged(struct sock *usk, struct kobj_uevent_env *env, const char *action_string, const char *devpath)

Type:int

Parameter:

TypeParameterName
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  If Not skb Then Return -ENOMEM
355  If owning_user_ns != init_user_ns Then
356  parms = NETLINK_CB(skb)
361  root_uid = make_kuid(owning_user_ns, 0)
362  If uid_valid(root_uid) Then uid = root_uid
366  root_gid = make_kgid(owning_user_ns, 0)
367  If gid_valid(root_gid) Then gid = root_gid
371  ret = netlink_broadcast(usk, skb, 0, 1, GFP_KERNEL)
373  If ret == -ENOBUFS || ret == -ESRCH Then ret = 0
376  Return ret
Caller
NameDescribe
kobject_uevent_net_broadcast