函数逻辑报告 |
Source Code:mm\mempolicy.c |
Create Date:2022-07-27 17:06:43 |
Last Modify:2020-03-17 22:28:11 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Replace a policy range.
函数原型:static int shared_policy_replace(struct shared_policy *sp, unsigned long start, unsigned long end, struct sp_node *new)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct shared_policy * | sp | |
unsigned long | start | |
unsigned long | end | |
struct sp_node * | new |
2530 | ret等于0 |
2532 | restart : |
2533 | write_lock( & lock) |
2534 | n等于lookup first element intersecting start-end. Caller holds sp->lock for* reading or for writing |
2543 | 否则 |
2550 | atomic_set( & refcnt, 1) |
2551 | sp_node_init(n_new, end, end, mpol_new) |
2554 | n_new = NULL |
2555 | mpol_new = NULL |
2556 | 退出 |
2566 | write_unlock( & lock) |
2567 | ret等于0 |
2569 | err_out : |
2572 | 如果n_new则kmem_cache_free(sn_cache, n_new) |
2575 | 返回:ret |
2577 | alloc_new : |
2578 | write_unlock( & lock) |
2586 | 转到:restart |
名称 | 描述 |
---|---|
mpol_set_shared_policy |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |