Home
last modified time | relevance | path

Searched refs:seals (Results 1 – 2 of 2) sorted by relevance

/tools/testing/selftests/memfd/
Dfuse_test.c77 static void mfd_assert_has_seals(int fd, __u64 seals) in mfd_assert_has_seals() argument
82 if (s != seals) { in mfd_assert_has_seals()
84 (unsigned long long)seals, (unsigned long long)s, fd); in mfd_assert_has_seals()
89 static void mfd_assert_add_seals(int fd, __u64 seals) in mfd_assert_add_seals() argument
95 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_assert_add_seals()
98 fd, (unsigned long long)s, (unsigned long long)seals); in mfd_assert_add_seals()
103 static int mfd_busy_add_seals(int fd, __u64 seals) in mfd_busy_add_seals() argument
114 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_busy_add_seals()
117 fd, (unsigned long long)s, (unsigned long long)seals); in mfd_busy_add_seals()
Dmemfd_test.c99 static void mfd_assert_has_seals(int fd, unsigned int seals) in mfd_assert_has_seals() argument
104 if (s != seals) { in mfd_assert_has_seals()
105 printf("%u != %u = GET_SEALS(%d)\n", seals, s, fd); in mfd_assert_has_seals()
110 static void mfd_assert_add_seals(int fd, unsigned int seals) in mfd_assert_add_seals() argument
116 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_assert_add_seals()
118 printf("ADD_SEALS(%d, %u -> %u) failed: %m\n", fd, s, seals); in mfd_assert_add_seals()
123 static void mfd_fail_add_seals(int fd, unsigned int seals) in mfd_fail_add_seals() argument
134 r = fcntl(fd, F_ADD_SEALS, seals); in mfd_fail_add_seals()
137 fd, s, seals); in mfd_fail_add_seals()