| 函数逻辑报告 | 
| Source Code: lib\kobject_uevent.c | Create Date:2022-07-27 07:11:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: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
函数原型:int kobject_uevent_env(struct kobject *kobj, enum kobject_action action, char *envp_ext[])
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct kobject * | kobj | |
| enum kobject_action | action | |
| char * | envp_ext | 
| 461 | const char * devpath = NULL | 
| 466 | i等于0 | 
| 467 | retval等于0 | 
| 473 | 如果action恒等于重置设备则state_remove_uevent_sent等于1 | 
| 476 | pr_debug("kobject: '%s' (%p): %s\n", kobject_name(kobj), kobj, __func__) | 
| 484 | 如果非设备组指针则 | 
| 485 | pr_debug("kobject: '%s' (%p): %s: attempted to send uevent without kset!\n", kobject_name(kobj), kobj, __func__) | 
| 488 | 返回:负EINVAL | 
| 492 | uevent_ops等于uevent_ops | 
| 495 | 如果uevent_suppress则 | 
| 496 | pr_debug("kobject: '%s' (%p): %s: uevent_suppress caused the event to drop!\n", kobject_name(kobj), kobj, __func__) | 
| 499 | 返回:0 | 
| 502 | 如果uevent_ops且filter则如果非filter(kset, kobj)则 | 
| 504 | pr_debug("kobject: '%s' (%p): %s: filter function caused the event to drop!\n", kobject_name(kobj), kobj, __func__) | 
| 507 | 返回:0 | 
| 513 | 否则subsystem等于kobject_name( & 设备对象) | 
| 515 | 如果非subsystem则 | 
| 516 | pr_debug("kobject: '%s' (%p): %s: unset subsystem caused the event to drop!\n", kobject_name(kobj), kobj, __func__) | 
| 519 | 返回:0 | 
| 529 | 如果非devpath则 | 
| 535 | retval等于 向环境缓冲区添加键值字符串 | 
| 538 | retval等于 向环境缓冲区添加键值字符串 | 
| 541 | retval等于 向环境缓冲区添加键值字符串 | 
| 546 | 如果envp_ext则 | 
| 555 | 如果uevent_ops且uevent则 | 
| 557 | 如果retval则 | 
| 558 | pr_debug("kobject: '%s' (%p): %s: uevent() returned %d\n", kobject_name(kobj), kobj, __func__, retval) | 
| 561 | 转到:exit | 
| 574 | state_add_uevent_sent等于1 | 
| 575 | 退出 | 
| 577 | 当:action恒等于KOBJ_UNBIND | 
| 578 | zap_modalias_env(env) | 
| 579 | 退出 | 
| 581 | 默认 | 
| 582 | 退出 | 
| 587 | retval等于 向环境缓冲区添加键值字符串 | 
| 588 | 如果retval则 | 
| 590 | 转到:exit | 
| 623 | exit : | 
| 624 | 释放内存 | 
| 625 | 释放内存 | 
| 626 | 返回:retval | 
| 名称 | 描述 | 
|---|---|
| kobject_synth_uevent | 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 | 
| kobject_uevent | 通过发送一个uevent通知用户空间 | 
| kobject_rename | kobject_rename() - Change the name of an object | 
| kobject_move | 移动对象 | 
| disk_check_events | |
| set_disk_ro_uevent | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |