函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zap_modalias_env

函数原型:static void zap_modalias_env(struct kobj_uevent_env *env)

返回类型:void

参数:

类型参数名称
struct kobj_uevent_env *env
420  modalias_prefix[]等于"MODALIAS="
424 i小于envp_idx循环
427  i自加
428  继续下一循环
431  len等于strlen(envp[i])加1
433  如果i不等于envp_idx减1则
434  memmove(envp[i], envp[i + 1], buflen - len)
437 j小于envp_idx减1循环envp[j]等于envp[j + 1]减len
441  envp_idx自减
442  buflen减等于len
调用者
名称描述
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