^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) #define _GNU_SOURCE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #include <sys/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #include <sys/stat.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) #include <fcntl.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <inttypes.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) int main(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) struct {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) struct file_handle fh;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) uint64_t cgroup_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) } handle;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) int mount_id;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) name_to_handle_at(AT_FDCWD, "/", &handle.fh, &mount_id, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) }