函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: 向环境缓冲区添加键值字符串

函数原型:int add_uevent_var(struct kobj_uevent_env *env, const char *format, ...)

返回类型:int

参数:

类型参数名称
struct kobj_uevent_env *env
const char *format
658  如果envp_idx大于等于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(envp)则
659  WARN(1, r conditions "add_uevent_var: too many keys\n")
660  返回:负ENOMEM
663  va_start(args, format)
664  len等于vsnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@args: Arguments for the format string* This function generally
667  va_end(args)
669  如果len大于等于buf的长度减buflen
670  WARN(1, r conditions "add_uevent_var: buffer size too small\n")
671  返回:负ENOMEM
674  envp[envp_idx++]等于buf[buflen]
675  buflen加等于len加1
676  返回:0
调用者
名称描述
kobject_action_args
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
part_uevent