| /linux-6.15/tools/testing/selftests/uevent/ |
| H A D | uevent_filtering.c | 42 ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function 148 ret = write_nointr(sync_fd, &sync_add, sizeof(sync_add)); in uevent_listener() 182 (void)write_nointr(STDERR_FILENO, buf, r); in uevent_listener() 183 (void)write_nointr(STDERR_FILENO, "\n", 1); in uevent_listener() 209 ret = write_nointr(fd, "add\n", sizeof("add\n") - 1); in trigger_uevent()
|
| /linux-6.15/tools/testing/selftests/filesystems/ |
| H A D | utils.c | 124 static ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function 197 ret = write_nointr(setgroups_fd, "deny\n", STRLITERALLEN("deny\n")); in write_id_mapping() 215 ret = write_nointr(fd, buf, buf_size); in write_id_mapping() 365 ret = write_nointr(h->fd_event, "1", 1); in userns_fd_cb() 409 bytes = write_nointr(fd_socket[0], "1", 1); /* Inform the child we wrote a mapping. */ in create_userns_hierarchy() 411 bytes = write_nointr(fd_socket[0], "0", 1); /* Inform the child we didn't write a mapping. */ in create_userns_hierarchy()
|
| /linux-6.15/tools/testing/selftests/filesystems/binderfs/ |
| H A D | binderfs_test.c | 235 static ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function 262 ret = write_nointr(setgroups_fd, "deny", sizeof("deny") - 1); in write_id_mapping() 286 ret = write_nointr(fd, buf, buf_size); in write_id_mapping() 307 ret = write_nointr(syncfds[0], "1", 1); in change_userns() 349 ret = write_nointr(syncfds[1], "1", 1); in change_idmaps()
|
| /linux-6.15/tools/testing/selftests/pidfd/ |
| H A D | pidfd_info_test.c | 56 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP() 81 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP() 227 if (write_nointr(ipc_socket, &pid_thread, sizeof(pid_thread)) != sizeof(pid_thread)) in pidfd_info_pause_thread() 402 if (write_nointr(ipc_socket, &pid_thread, sizeof(pid_thread)) != sizeof(pid_thread)) in pidfd_info_thread_exec() 482 ASSERT_EQ(write_nointr(ipc_sockets[0], &pid_thread, sizeof(pid_thread)), sizeof(pid_thread)); in TEST_F() 551 if (write_nointr(ipc_socket, &pid_thread, sizeof(pid_thread)) != sizeof(pid_thread)) in pidfd_info_thread_exec_sane() 630 ASSERT_EQ(write_nointr(ipc_sockets[0], &pid_thread, sizeof(pid_thread)), sizeof(pid_thread)); in TEST_F()
|
| H A D | pidfd_file_handle_test.c | 59 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP() 81 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP() 103 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP()
|
| H A D | pidfd.h | 246 static inline ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function
|
| H A D | pidfd_setns_test.c | 197 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP() 251 if (write_nointr(ipc_sockets[1], "1", 1) < 0) in FIXTURE_SETUP()
|
| /linux-6.15/tools/testing/selftests/move_mount_set_group/ |
| H A D | move_mount_set_group_test.c | 48 static ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function 68 ret = write_nointr(fd, buf, count); in write_file()
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | token.c | 222 static ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function 242 ret = write_nointr(fd, buf, count); in write_file()
|
| /linux-6.15/tools/testing/selftests/mount_setattr/ |
| H A D | mount_setattr_test.c | 181 static ssize_t write_nointr(int fd, const void *buf, size_t count) in write_nointr() function 201 ret = write_nointr(fd, buf, count); in write_file()
|
| /linux-6.15/tools/testing/selftests/filesystems/overlayfs/ |
| H A D | set_layers_via_fds.c | 419 ASSERT_EQ(write_nointr(ipc_sockets[0], "1", 1), 1); in TEST_F()
|