# Re: \[PATCH v2\] man2: new page describing memfd\_secret() system call

- From: Alejandro Colomar (man-pages) \<hidden\>
- Date: 2021-07-29 11:08:04 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2021/07/6510153
- Thread: https://ratatoskr.run/linux-api/2021/07/6510150/t.md

```text
Hi Mike,

On 7/29/21 12:30 PM, Mike Rapoport wrote:
> On Thu, Jul 29, 2021 at 12:12:12PM +0200, Alejandro Colomar (man-pages) wrote:
>> Hi Mike,
>>
>> On 7/29/21 10:29 AM, Mike Rapoport wrote:
>>> From: Mike Rapoport <redacted>
>>>
>>> Signed-off-by: Mike Rapoport <redacted>
>>> ---
[...]

>> Check the parameter list :)
>   
> Argh.
>
> Would you need v3 or this on top would suffice?

That suffices.  Patch applied.

>
> diff --git a/man2/memfd_secret.2 b/man2/memfd_secret.2
> index 5a70cb5d2..8263f18d5 100644
> --- a/man2/memfd_secret.2
> +++ b/man2/memfd_secret.2
> @@ -31,8 +31,7 @@ memfd_secret \- create an anonymous file to access secret memory regions
>   .BR "#include <sys/syscall.h>" "      /* Definition of " SYS_* " constants */"
>   .B #include <unistd.h>
>   .PP
> -.BI "int syscall(SYS_memfd_secret, int " cmd ", unsigned int " flags \
> -", int " cpu_id );
> +.BI "int syscall(SYS_memfd_secret, unsigned int " flags ");

I guess you meant ");", but note that the quotes are not necessary there (as there aren't any spaces), so I skipped them.

Cheers,

Alex


-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
```
