Function report |
Source Code:mm\swapfile.c |
Create Date:2022-07-28 15:16:54 |
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:swap_range_free
Proto:static void swap_range_free(struct swap_info_struct *si, unsigned long offset, unsigned int nr_entries)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct swap_info_struct * | si | |
| unsigned long | offset | |
| unsigned int | nr_entries |
| 705 | end = offset + nr_entries - 1 |
| 706 | void( * swap_slot_free_notify)(struct block_device * , unsigned long) |
| 708 | If offset < dex of first free in swap_map Then dex of first free in swap_map = offset |
| 710 | If end > dex of last free in swap_map Then |
| 711 | was_full = Not dex of last free in swap_map |
| 714 | If was_full && SWP_USED etc: see above & SWP_WRITEOK Then add_to_avail_list(si) |
| 717 | atomic_long_add(nr_entries, & nr_swap_pages) |
| 719 | If SWP_USED etc: see above & SWP_BLKDEV Then swap_slot_free_notify = swap_slot_free_notify |
| 722 | Else swap_slot_free_notify = NULL |
| 728 | offset++ |
| Name | Describe |
|---|---|
| swap_free_cluster | |
| swap_entry_free |
| 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 |