函数逻辑报告 |
Source Code:lib\idr.c |
Create Date:2022-07-27 07:11:02 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:dr_alloc() - Allocate an ID.*@idr: IDR handle.*@ptr: Pointer to be associated with the new ID.*@start: The minimum ID (inclusive).*@end: The maximum ID (exclusive).*@gfp: Memory allocation flags.
函数原型:int idr_alloc(struct idr *idr, void *ptr, int start, int end, gfp_t gfp)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct idr * | idr | |
| void * | ptr | |
| int | start | |
| int | end | |
| gfp_t | gfp |
| 84 | 如果WARN_ON_ONCE(start < 0)则返回:负EINVAL |
| 91 | 返回:id |
| 名称 | 描述 |
|---|---|
| alloc_pid | 分配进程句柄 |
| irq_timings_alloc | |
| cgroup_idr_alloc | IDR wrappers which synchronize using cgroup_idr_lock |
| perf_pmu_register | |
| mem_cgroup_alloc | |
| bsg_register_queue | |
| worker_pool_assign_id | worker_pool_assign_id - allocate ID and assing it to @pool*@pool: the pool pointer of interest* Returns 0 if ID in [0, WORK_OFFQ_POOL_NONE) is allocated and assigned* successfully, -errno on failure. |
| prealloc_memcg_shrinker | |
| ipc_idr_alloc | Insert new IPC object into idr tree, and set sequence number and id* in the correct order.* Especially:* - the sequence number must be set before inserting the object into the idr,* because the sequence number is accessed without a lock. |
| blk_alloc_devt | lk_alloc_devt - allocate a dev_t for a partition*@part: partition to allocate dev_t for*@devt: out parameter for resulting dev_t* Allocate a dev_t for block device |
| aa_alloc_secid | aa_alloc_secid - allocate a new secid for a profile*@label: the label to allocate a secid for*@gfp: memory allocation flags* Returns: 0 with @label->secid initialized* <0 returns error with @label->secid set to AA_SECID_INVALID |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |