函数逻辑报告 |
Source Code:lib\genalloc.c |
Create Date:2022-07-27 07:54:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:devm_gen_pool_create - managed gen_pool_create*@dev: device that provides the gen_pool*@min_alloc_order: log base 2 of number of bytes each bitmap bit represents*@nid: node selector for allocated gen_pool, %NUMA_NO_NODE for all nodes*@name: name of a
函数原型:struct gen_pool *devm_gen_pool_create(struct device *dev, int min_alloc_order, int nid, const char *name)
返回类型:struct gen_pool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct device * | dev | |
int | min_alloc_order | |
int | nid | |
const char * | name |
826 | const char * pool_name = NULL |
829 | 如果获得gen_pool(如果有的话)的设备则返回:错误号 |
832 | 如果name则 |
838 | ptr等于devres_alloc(devm_gen_pool_release, ptr的长度, GFP_KERNEL) |
839 | 如果非ptr则转到:free_pool_name |
843 | 如果非pool则转到:free_devres |
848 | devres_add(dev, ptr) |
850 | 返回:pool |
852 | free_devres : |
853 | devres_free(ptr) |
854 | free_pool_name : |
857 | 返回:错误号 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |