函数逻辑报告 |
Source Code:include\linux\swapops.h |
Create Date:2022-07-27 11:01:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format
函数原型:static inline unsigned long swp_offset(swp_entry_t entry)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
swp_entry_t | entry |
52 | 返回:val按位与SWP_OFFSET_MASK |
名称 | 描述 |
---|---|
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. |
swap_slot_free_notify | |
add_to_swap_cache | add_to_swap_cache resembles add_to_page_cache_locked on swapper_space,* but sets SwapCache flag and private instead of mapping and index. |
__delete_from_swap_cache | This must be called only on pages that have* been verified to be in the swap cache. |
lookup_swap_cache | Lookup a swap entry in the swap cache. A found page will be returned* unlocked and with its refcount incremented - we rely on the kernel* lock getting page table operations atomic even if we drop the page* lock before returning. |
__read_swap_cache_async | |
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. |
scan_swap_map | |
__swap_info_get | |
_swap_info_get | |
get_swap_device | Check whether swap entry is valid in the swap device |
__swap_entry_free | |
swap_entry_free | |
put_swap_page | Called after dropping swapcache to decrease refcnt to swap entries. |
page_swapcount | How many references to page are currently swapped out?* This does not give an exact answer when swap count is continued,* but does include the high COUNT_CONTINUED flag to allow for that. |
__swap_count | |
swap_swapcount | |
swp_swapcount | How many references to @entry are currently swapped out?* This considers COUNT_CONTINUED so it returns exact answer. |
swap_page_trans_huge_swapped | |
page_trans_huge_map_swapcount | |
free_swap_and_cache | Free the swap entry like above, but also try to* free the page cache entry if it is the last user. |
unuse_pte_range | |
map_swap_entry | Use this swapdev's extent info to locate the (PAGE_SIZE) block which* corresponds to page offset for the specified swap entry.* Note that the type of this function is sector_t, but it returns page offset* into the bdev, not sector offset. |
generic_max_swapfile_size | Find out how many pages are allowed for a single swap device |
__swap_duplicate | Verify that a swap entry is valid and increment its swap map count.* Returns error code in following case.* - success -> 0* - swp_entry is invalid -> EINVAL* - swp_entry is migration entry -> EINVAL |
__page_file_index | |
add_swap_count_continuation | add_swap_count_continuation - called when a swap count is duplicated* beyond SWAP_MAP_MAX, it allocates a new page and links that to the entry's* page of the original vmalloc'ed swap_map, to hold the continuation count |
__frontswap_store | "Store" data from a page to frontswap and associate it with the page's* swaptype and offset |
__frontswap_load | "Get" data from frontswap associated with swaptype and offset that were* specified when the data was put to frontswap and use it to fill the* specified page with data. Page must be locked and in the swap cache. |
zswap_writeback_entry | |
zap_huge_pmd | |
__split_huge_pmd_locked | |
__split_huge_page | |
lookup_swap_cgroup | |
swap_cgroup_record | swap_cgroup_record - record mem_cgroup for a set of swap entries*@ent: the first swap entry to be recorded into*@id: mem_cgroup to be recorded*@nr_ents: number of swap entries to be recorded* Returns old value at success, 0 at failure. |
hmm_vma_handle_pte | |
swp_entry_to_pte | Convert the arch-independent representation of a swp_entry_t into the* arch-dependent pte representation. |
make_device_private_entry_read | |
device_private_entry_to_pfn | |
device_private_entry_to_page | |
migration_entry_to_pfn | |
migration_entry_to_page | |
make_migration_entry_read |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |