Re: [PATCH] mremap.2: Update information about MREMAP_DONTUNMAP restrictions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alex,

On Mon, Nov 04, 2024 at 09:16:41PM GMT, Alex Henrie wrote:
> See "mm: extend MREMAP_DONTUNMAP to non-anonymous mappings":
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a4609387859f0281951f5e476d9f76d7fb9ab321
> 
> Signed-off-by: Alex Henrie <alexhenrie24@xxxxxxxxx>
> ---
>  man/man2/mremap.2 | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/man/man2/mremap.2 b/man/man2/mremap.2
> index 53e0bcf2d..b99ab9492 100644
> --- a/man/man2/mremap.2
> +++ b/man/man2/mremap.2
> @@ -106,7 +106,13 @@ remaps a mapping to a new address but does not unmap the mapping at
>  .IP
>  The
>  .B MREMAP_DONTUNMAP
> -flag can be used only with private anonymous mappings
> +flag can only be used with mappings that are not

I find the position of "only" a bit inconsistent here.  It probably
would be more appropriate right before "with".  (I'm wondering if I put
"probably" in the right place too... :)

> +.BR VM_DONTEXPAND

Please use .B, not .BR.  You'll find that BR causes a warning in that
file, if you run `make build-all`:

	$ make build-all -j24 -k
	TROFF		.tmp/man/man2/mremap.2.cat.set
	an.tmac:.tmp/man/man2/mremap.2:42: style: .BR expects at least 2 arguments, got 1
	make: *** [/home/alx/src/linux/man-pages/man-pages/contrib/share/mk/build/catman/troff.mk:65: .tmp/man/man2/mremap.2.cat.set] Error 1
	make: *** Deleting file '.tmp/man/man2/mremap.2.cat.set'
	make: Target 'build-all' not remade because of errors.

(You'll need to run a sufficiently recent system that includes
 groff-1.23.0, such as Debian Sid.)

Cheers,
Alex

> +or
> +.BR VM_MIXEDMAP .
> +Before Linux 5.13, the
> +.B MREMAP_DONTUNMAP
> +flag could be used only with private anonymous mappings
>  (see the description of
>  .B MAP_PRIVATE
>  and
> -- 
> 2.47.0
> 
> 

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux