pidfd-util: expose pidfd_get_info()

This commit is contained in:
Yu Watanabe
2025-10-19 10:01:46 +09:00
parent 208f88def3
commit 0c37508494
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ int pidfd_get_namespace(int fd, unsigned long ns_type_cmd) {
return nsfd;
}
static int pidfd_get_info(int fd, struct pidfd_info *info) {
int pidfd_get_info(int fd, struct pidfd_info *info) {
static bool cached_supported = true;
assert(fd >= 0);
+2
View File
@@ -7,6 +7,8 @@
int pidfd_get_namespace(int fd, unsigned long ns_type_cmd);
int pidfd_get_info(int fd, struct pidfd_info *info);
int pidfd_get_pid(int fd, pid_t *ret);
int pidfd_verify_pid(int pidfd, pid_t pid);