[PATCH kexec-tools 01/32] kdump: mmap() and munmap() only work on page-aligned quantites
From: linux@armlinux.org.uk (Russell King - ARM Linux)
Date: 2016-05-26 08:35:28
Also in:
kexec
From: linux@armlinux.org.uk (Russell King - ARM Linux)
Date: 2016-05-26 08:35:28
Also in:
kexec
On Wed, May 25, 2016 at 11:46:08AM +0530, Pratyush Anand wrote:
On Tue, May 3, 2016 at 3:51 PM, Russell King [off-list ref] wrote:quoted
The man page for mmap() and munmap() says that mmap() and munmap() only works for page-aligned addresses, sizes and offsets. Arrange to give these interfaces what they want.If I read correctly, it talks only offsets to be page aligned.
Yes, it's not really needed, but as we have to adjust the size anyway to compensate for the reduced file offset, it makes little difference whether we align the size or not. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.