]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pidfd-util: expose pidfd_get_info()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 7 Oct 2025 09:03:32 +0000 (18:03 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 19 Oct 2025 01:01:46 +0000 (10:01 +0900)
src/basic/pidfd-util.c
src/basic/pidfd-util.h

index b6614ffd3a573befa20966643c144c7663622f74..4b4caf5c9c92ba5e5db726d8c4a3935562d2d47a 100644 (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);
index 2050734ab27888dbcd465143a1c1b1c64c50b026..74dd1d96a2938ad85ee8d6ad8ce5136d3da4c5f9 100644 (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);