Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory.c Create Date:2022-07-28 14:42:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:map_mapping_range - unmap the portion of all mmaps in the specified* address_space corresponding to the specified byte range in the underlying* file

Proto:void unmap_mapping_range(struct address_space *mapping, loff_t const holebegin, loff_t const holelen, int even_cows)

Type:void

Parameter:

TypeParameterName
struct address_space *mapping
loff_t constholebegin
loff_t constholelen
inteven_cows
2879  hba = holebegin >> PAGE_SHIFT determines the page size
2880  hlen = holelen + PAGE_SIZE - 1 >> PAGE_SHIFT determines the page size
2883  If size of holelen > size of hlen Then
2884  holeend = holebegin + holelen + PAGE_SIZE - 1 >> PAGE_SHIFT determines the page size
2886  If holeend & ~ULONG_MAX Then hlen = ULONG_MAX - hba + 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.
Caller
NameDescribe
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