From 23ef2355fbdebce56083ec7a0ebb65a05c42e5dc Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 30 Sep 2018 22:58:25 +0200 Subject: [PATCH] vss: Add documentation of MAP_POPULATE. It should be clear why the vss should ask the kernel to prefault the page tables for the mapping, but it's less clear why we might need to define the preprocessor symbol. --- vss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vss.c b/vss.c index f6ec8393..73c72311 100644 --- a/vss.c +++ b/vss.c @@ -941,6 +941,7 @@ static int recv_afs_msg(int afs_socket, int *fd, uint32_t *code, uint32_t *data) } #ifndef MAP_POPULATE +/** As of 2018, neither FreeBSD-11.2 nor NetBSD-8.0 have MAP_POPULATE. */ #define MAP_POPULATE 0 #endif -- 2.30.2