commit | 9479040c20067eb54127d4ace786d1826ed3ffa1 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Thu Mar 31 08:54:06 2022 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Apr 12 19:31:29 2022 -0600 |
tree | b23ef2235488aaa124b431c7b85ba808961daa58 | |
parent | 559eaeff2cd6c5fba359d7d796b1051b3563c7d9 [diff] |
net: add __sys_socket_file() This works like __sys_socket(), except instead of allocating and returning a socket fd, it just returns the file associated with the socket. No fd is installed into the process file table. This is similar to do_accept(), and allows io_uring to use this without instantiating a file descriptor in the process file table. Signed-off-by: Jens Axboe <axboe@kernel.dk>