函数逻辑报告

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

函数名称:kobject_uevent_net_broadcast

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

返回类型:int

参数:

类型参数名称
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  如果非ops设备组指针
393  ksobj等于设备对象
395  如果(父设备指针 != NULL)则ops等于kobj_ns_ops(父设备指针)
403  如果opsnetlink_nsnamespace则如果type恒等于KOBJ_NS_TYPE_NET
405  net等于namespace(kobj)
407  如果非netret等于uevent_net_broadcast_untagged(env, action_string, devpath)
410  否则ret等于uevent_net_broadcast_tagged(sk, env, action_string, devpath)
415  返回:ret
调用者
名称描述
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