Function report |
Source Code:mm\swapfile.c |
Create Date:2022-07-28 15:16:39 |
Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:alloc_cluster
Proto:static void alloc_cluster(struct swap_info_struct *si, unsigned long idx)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct swap_info_struct * | si | |
unsigned long | idx |
505 | ci = cluster info. Only for SSD |
507 | VM_BUG_ON(cluster_list_first( & clusters list ) != idx) |
508 | cluster_list_del_first( & clusters list , ci) |
509 | cluster_set_count_flag(ci + idx, 0, 0) |
Name | Describe |
---|---|
inc_cluster_info_page | The cluster corresponding to page_nr will be used. The cluster will be* removed from free cluster list and its usage counter will be increased. |
swap_alloc_cluster |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |