Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kobject_uevent.c Create Date:2022-07-28 06:14:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:zap_modalias_env

Proto:static void zap_modalias_env(struct kobj_uevent_env *env)

Type:void

Parameter:

TypeParameterName
struct kobj_uevent_env *env
420  modalias_prefix[] = "MODALIAS="
424  When i < envp_idx cycle
425  If strncmp(envp[i], modalias_prefix, size of modalias_prefix - 1) Then
427  i++
428  Continue
431  len = strlen(envp[i]) + 1
433  If i != envp_idx - 1 Then
434  memmove(envp[i], envp[i + 1], buflen - len)
437  When j < envp_idx - 1 cycle envp[j] = envp[j + 1] - len
441  envp_idx--
442  buflen -= len
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