msync - can someone shed some light please?
Bo Lindbergh
2bfjdsla52kztwejndzdstsxl9athp at gmail.com
Sat Jun 14 07:15:58 UTC 2025
Quoth Richard Kettlewell <rjk at terraraq.uk>:
> Anyway I think it should be:
>
> char *end = (char *) (((uintptr_t) p + length + pagesize - 1) & mask);
>
> ...so that we end up to the round of the allocation, and never any further.
I concur. This is the standard integer arithmetic idiom for rounding up
to a multiple of some value.
/Bo Lindbergh
More information about the inn-workers
mailing list