Function report |
Source Code:include\linux\swapops.h |
Create Date:2022-07-28 10:01:50 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Store a type+offset into a swp_entry_t in an arch-independent format
Proto:static inline swp_entry_t swp_entry(unsigned long type, unsigned long offset)
Type:swp_entry_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | type | |
| unsigned long | offset |
| 33 | val = type << swapcache pages are stored in the swapper_space radix tree | offset & SWP_OFFSET_MASK |
| 34 | Return ret |
| Name | Describe |
|---|---|
| alloc_swapdev_block | alloc_swapdev_block - allocate a swap page and register that it has* been allocated, so that it can be freed in case of an error. |
| free_all_swap_pages | _all_swap_pages - free swap pages allocated for saving image data.* It also frees the extents used to register which swap entries had been* allocated. |
| total_swapcache_pages | |
| swap_cluster_readahead | swap_cluster_readahead - swap in pages in hope we need them soon*@entry: swap entry of this memory*@gfp_mask: memory allocation flags*@vmf: fault information* Returns the struct page for entry and addr, after queueing swapin. |
| __try_to_reclaim_swap | rns 1 if swap entry is freed |
| scan_swap_map_slots | |
| swap_alloc_cluster | |
| get_swap_page_of_type | The only caller of this function is now suspend routine |
| try_to_unuse | If the boolean frontswap is true, only unuse pages_to_unuse pages;* pages_to_unuse==0 means all pages; ignored if frontswap is false |
| generic_max_swapfile_size | Find out how many pages are allowed for a single swap device |
| zswap_frontswap_store | attempts to compress and store an single page |
| 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 |