Re: Unnecessary limitation on munmap?

2024-12-22 Thread Ken Brown
On 12/22/2024 4:17 AM, Corinna Vinschen wrote: The point was that a pagesize of 4K is wrong from the POSIX point of view. I was pretty stubborn in understanding this myself, and it took quite some time until I caved in and produced the aforementioned patch back in 2005. The reason (or rather, o

Re: Unnecessary limitation on munmap?

2024-12-22 Thread Corinna Vinschen
On Dec 21 19:05, Ken Brown wrote: > Hi Mark, > > On 12/21/2024 5:15 PM, Mark Geisert wrote: > > Hi Ken, > > > > On 12/21/2024 1:42 PM, Ken Brown wrote: > > > I'm wondering why munmap insists on operating with chunks of size > > > 64k instead of pages of size 4k.  In other words, what would go > >

Re: A few quick mmap questions

2024-12-22 Thread Corinna Vinschen
On Dec 20 17:48, Ken Brown wrote: > On 12/20/2024 10:37 AM, Corinna Vinschen wrote: > > No worries. The expression > > > >size_t commit_len = u_len - (start_addr - u_addr); > > > > may be right, but it's not generally intelligible. If you'd like > > to take a stab of changing the code to be