函数逻辑报告 |
Source Code:mm\swapfile.c |
Create Date:2022-07-27 16:49:50 |
Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:alloc_swap_info
函数原型:static struct swap_info_struct *alloc_swap_info(void)
返回类型:struct swap_info_struct
参数:无
2834 | 加自旋锁 |
2835 | 以type小于nr_swapfiles循环 |
2836 | 如果非SWP_USED etc: see above 按位与SWP_USED的值则退出 |
2839 | 如果type大于等于MAX_SWAPFILES则 |
2844 | 如果type大于等于nr_swapfiles则 |
2845 | strange name for an index 等于type |
2846 | WRITE_ONCE(swap_info[type], p) |
2852 | smp_wmb() |
2853 | WRITE_ONCE(nr_swapfiles, nr_swapfiles + 1) |
2854 | 否则 |
2862 | of the swap extent rbtree = |
2863 | 动态链表初始化 |
2864 | for_each_node(i) |
2865 | 动态链表初始化 |
2866 | SWP_USED etc: see above 等于SWP_USED |
2867 | 自旋锁解锁 |
2871 | 返回:p |
名称 | 描述 |
---|---|
SYSCALL_DEFINE2 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |