函数逻辑报告 | 
Source Code:security\tomoyo\gc.c | 
Create Date:2022-07-27 21:11:54 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:moyo_try_to_gc - Try to kfree() an entry.*@type: One of values in "enum tomoyo_policy_id".*@element: Pointer to "struct list_head".* Returns nothing.* Caller holds tomoyo_policy_lock mutex.
函数原型:static void tomoyo_try_to_gc(const enum tomoyo_policy_id type, struct list_head *element)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| const enum tomoyo_policy_id | type | |
| struct list_head * | element | 
| 395 | 删除链表项 | 
| 410 | 退出 | 
| 411 | 当:type恒等于TOMOYO_ID_MANAGER | 
| 413 | 退出 | 
| 414 | 当:type恒等于TOMOYO_ID_AGGREGATOR | 
| 416 | 退出 | 
| 417 | 当:type恒等于TOMOYO_ID_GROUP | 
| 419 | 退出 | 
| 420 | 当:type恒等于TOMOYO_ID_PATH_GROUP | 
| 422 | 退出 | 
| 423 | 当:type恒等于TOMOYO_ID_ADDRESS_GROUP | 
| 425 | 退出 | 
| 426 | 当:type恒等于TOMOYO_ID_NUMBER_GROUP | 
| 428 | 退出 | 
| 429 | 当:type恒等于TOMOYO_ID_CONDITION | 
| 431 | 退出 | 
| 432 | 当:type恒等于TOMOYO_ID_NAME | 
| 442 | 退出 | 
| 443 | 当:type恒等于TOMOYO_ID_ACL | 
| 445 | 退出 | 
| 446 | 当:type恒等于TOMOYO_ID_DOMAIN | 
| 455 | 退出 | 
| 456 | 当:type恒等于TOMOYO_MAX_POLICY | 
| 457 | 退出 | 
| 459 | mutex_lock( & tomoyo_policy_lock) | 
| 460 | 如果type恒等于TOMOYO_ID_DOMAIN则moyo_del_domain - Delete members in "struct tomoyo_domain_info".*@element: Pointer to "struct list_head".* Returns nothing.* Caller holds tomoyo_policy_lock mutex. | 
| 463 | 返回 | 
| 464 | reinject : | 
| 473 | mutex_lock( & tomoyo_policy_lock) | 
| 474 | 添加RCU保护项 | 
| 名称 | 描述 | 
|---|---|
| tomoyo_collect_member | moyo_collect_member - Delete elements with "struct tomoyo_acl_head".*@id: One of values in "enum tomoyo_policy_id".*@member_list: Pointer to "struct list_head".* Returns nothing. | 
| tomoyo_collect_acl | moyo_collect_acl - Delete elements in "struct tomoyo_domain_info".*@list: Pointer to "struct list_head".* Returns nothing. | 
| tomoyo_collect_entry | moyo_collect_entry - Try to kfree() deleted elements.* Returns nothing. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |