diff options
| author | Johannes Berg <[email protected]> | 2024-07-02 17:21:19 +0000 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2024-07-03 10:24:25 +0000 |
| commit | 5cde6096a4dd114b7dc5ac37a71778ea68507938 (patch) | |
| tree | a52d892bcf61e64b70d93a11fb86b50dca5d2a59 /arch/um/include/shared/os.h | |
| parent | um: time-travel: support time-travel protocol broadcast messages (diff) | |
| download | kernel-5cde6096a4dd114b7dc5ac37a71778ea68507938.tar.gz kernel-5cde6096a4dd114b7dc5ac37a71778ea68507938.zip | |
um: generalize os_rcv_fd
Change os_rcv_fd() to os_rcv_fd_msg() that can more generally
receive any number of FDs in any kind of message.
Link: https://patch.msgid.link/20240702192118.40b78b2bfe4e.Ic6ec12d72630e5bcae1e597d6bd5c6f29f441563@changeid
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'arch/um/include/shared/os.h')
| -rw-r--r-- | arch/um/include/shared/os.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/um/include/shared/os.h b/arch/um/include/shared/os.h index 6516ff5a0ecc..fc4091c127c8 100644 --- a/arch/um/include/shared/os.h +++ b/arch/um/include/shared/os.h @@ -165,7 +165,8 @@ extern int os_create_unix_socket(const char *file, int len, int close_on_exec); extern int os_shutdown_socket(int fd, int r, int w); extern int os_dup_file(int fd); extern void os_close_file(int fd); -extern int os_rcv_fd(int fd, int *helper_pid_out); +ssize_t os_rcv_fd_msg(int fd, int *fds, unsigned int n_fds, + void *data, size_t data_len); extern int os_connect_socket(const char *name); extern int os_file_type(char *file); extern int os_file_mode(const char *file, struct openflags *mode_out); |
