函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory.c Create Date:2022-07-27 16:09:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:map_mapping_range - unmap the portion of all mmaps in the specified* address_space corresponding to the specified byte range in the underlying* file

函数原型:void unmap_mapping_range(struct address_space *mapping, loff_t const holebegin, loff_t const holelen, int even_cows)

返回类型:void

参数:

类型参数名称
struct address_space *mapping
loff_t constholebegin
loff_t constholelen
inteven_cows
2879  hba等于holebegin右移PAGE_SHIFT determines the page size
2880  hlen等于holelenPAGE_SIZE减1右移PAGE_SHIFT determines the page size
2883  如果holelen的长度大于hlen的长度则
2884  holeend等于holebeginholelenPAGE_SIZE减1右移PAGE_SHIFT determines the page size
2886  如果holeend按位与ULONG_MAX的反则hlen等于ULONG_MAXhba加1
2890  map_mapping_pages() - Unmap pages from processes.*@mapping: The address space containing pages to be unmapped.*@start: Index of first page to be unmapped.*@nr: Number of pages to be unmapped. 0 to unmap to end of file.
调用者
名称描述
truncate_pagecacheruncate_pagecache - unmap and remove pagecache that has been truncated*@inode: inode*@newsize: new file size* inode's new i_size must already be written before truncate_pagecache* is called.* This function should typically be called before the filesystem
truncate_pagecache_rangeruncate_pagecache_range - unmap and remove pagecache that is hole-punched*@inode: inode*@lstart: offset of beginning of hole*@lend: offset of last byte of hole* This function should typically be called before the filesystem
memory_failure_dev_pagemap
dax_layout_busy_pagedax_layout_busy_page - find first pinned page in @mapping*@mapping: address space to scan for a page with ref count > 1* DAX requires ZONE_DEVICE mapped pages. These pages are never* 'onlined' to the page allocator so they are considered idle when