• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2020 Linaro Limited. All rights reserved.
4  * Author: Viresh Kumar <viresh.kumar@linaro.org>
5  */
6 
7 #ifndef LAPI_PIDFD_OPEN_H__
8 #define LAPI_PIDFD_OPEN_H__
9 
10 #include <sys/syscall.h>
11 #include <sys/types.h>
12 
13 #include "lapi/syscalls.h"
14 
15 #include "config.h"
16 
17 #ifndef HAVE_PIDFD_OPEN
pidfd_open(pid_t pid,unsigned int flags)18 static inline int pidfd_open(pid_t pid, unsigned int flags)
19 {
20 	return tst_syscall(__NR_pidfd_open, pid, flags);
21 }
22 #endif
23 
24 #endif /* LAPI_PIDFD_OPEN_H__ */
25