| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include <sys/pidfd.h> /* IWYU pragma: export */ |
| 5 |
|
| 6 |
#include "basic-forward.h" |
| 7 |
|
| 8 |
int pidfd_get_namespace(int fd, unsigned long ns_type_cmd); |
| 9 |
|
| 10 |
int pidfd_get_info(int fd, struct pidfd_info *info); |
| 11 |
|
| 12 |
int pidfd_get_pid(int fd, pid_t *ret); |
| 13 |
int pidfd_verify_pid(int pidfd, pid_t pid); |
| 14 |
|
| 15 |
int pidfd_get_ppid(int fd, pid_t *ret); |
| 16 |
int pidfd_get_uid(int fd, uid_t *ret); |
| 17 |
int pidfd_get_cgroupid(int fd, uint64_t *ret); |
| 18 |
|
| 19 |
int pidfd_get_inode_id_impl(int fd, uint64_t *ret); |
| 20 |
int pidfd_get_inode_id(int fd, uint64_t *ret); |
| 21 |
int pidfd_get_inode_id_self_cached(uint64_t *ret); |
| 22 |
|
| 23 |
int pidfd_check_pidfs(int pid_fd); |