函数逻辑报告 |
Source Code:kernel\resource.c |
Create Date:2022-07-27 10:05:01 |
Last Modify:2022-05-22 11:14:39 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:allocate_resource - allocate a slot in the resource tree given range & alignment
函数原型:static int reallocate_resource(struct resource *root, struct resource *old, resource_size_t newsize, struct resource_constraint *constraint)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct resource * | root | |
struct resource * | old | |
resource_size_t | newsize | |
struct resource_constraint * | constraint |
672 | err等于0 |
676 | write_lock( & resource_lock) |
678 | 如果err等于Find empty slot in the resource tree with the given range and* alignment constraints则转到:out |
687 | 如果child则 |
695 | 否则 |
696 | __release_resource(old, true) |
701 | out : |
702 | write_unlock( & resource_lock) |
703 | 返回:err |
名称 | 描述 |
---|---|
allocate_resource | allocate_resource - allocate empty slot in the resource tree given range & alignment |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |