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:kobject_uevent_net_broadcast

Proto:static int kobject_uevent_net_broadcast(struct kobject *kobj, struct kobj_uevent_env *env, const char *action_string, const char *devpath)

Type:int

Parameter:

TypeParameterName
struct kobject *kobj
struct kobj_uevent_env *env
const char *action_string
const char *devpath
385  ret = 0
389  const struct net * net = NULL
391  ops = kobj_ns_ops(kobj)
392  If Not ops && kset Then
393  ksobj = kobj
395  If (parent != NULL) Then ops = kobj_ns_ops(parent)
403  If ops && netlink_ns && namespace Then If type == KOBJ_NS_TYPE_NET Then
405  net = namespace(kobj)
407  If Not net Then ret = uevent_net_broadcast_untagged(env, action_string, devpath)
410  Else ret = uevent_net_broadcast_tagged(sk, env, action_string, devpath)
415  Return ret
Caller
NameDescribe
kobject_uevent_envkobject_uevent_env - send an uevent with environmental data*@kobj: struct kobject that the action is happening to*@action: action that is happening*@envp_ext: pointer to environmental data* Returns 0 if kobject_uevent_env() is completed with success or the