函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kobject_synth_uevent - send synthetic uevent with arguments*@kobj: struct kobject for which synthetic uevent is to be generated*@buf: buffer containing action type and action args, newline is ignored*@count: length of buffer* Returns 0 if

函数原型:int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count)

返回类型:int

参数:

类型参数名称
struct kobject *kobj
const char *buf
size_tcount
194  char * no_uuid_envp[] = {"SYNTH_UUID=0", NULL}
198  msg等于NULL
201  r等于字符串转换为整数
202  如果r
203  msg等于"unknown uevent action string"
204  转到:out
207  如果非action_args
208  r等于kobject_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
209  转到:out
212  r等于kobject_action_args(action_args, count - (action_args - buf), & env)
214  如果r恒等于负EINVAL
215  msg等于"incorrect uevent action arguments"
216  转到:out
219  如果r则转到:out
222  r等于kobject_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
223  释放内存
224  out :
225  如果r
226  devpath等于kobject_get_path() - Allocate memory and fill in the path for @kobj.*@kobj: kobject in question, with which to build the path*@gfp_mask: the allocation type used to allocate the path* Return: The newly allocated memory, caller must free with kfree().
227  打印警告信息("synth uevent: %s: %s\n", devpath ? : "unknown device", msg ? : "failed to send uevent")
230  释放内存
232  返回:r
调用者
名称描述
store_uevent