# Re: \[PATCH v7 4/7\] pid: move pidfd\_get\_pid function to pid.c

- From: Christian Brauner \<hidden\>
- Date: 2020-03-06 11:14:11 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2020/03/5886576
- Thread: https://ratatoskr.run/linux-mm/2020/03/5881613/t.md

```text
On Mon, Mar 02, 2020 at 11:36:27AM -0800, Minchan Kim wrote:
> process_madvise syscall needs pidfd_get_pid function to translate
> pidfd to pid so this patch move the function to kernel/pid.c.
> 
> Cc: Christoph Hellwig <hch@infradead.org>
> Cc: Christian Brauner <christian@brauner.io>
> Reviewed-by: Suren Baghdasaryan <surenb@google.com>
> Suggested-by: Alexander Duyck <redacted>
> Reviewed-by: Alexander Duyck <redacted>
> Signed-off-by: Minchan Kim <minchan@kernel.org>

Acked-by: Christian Brauner <redacted>
```
