]> git.baikalelectronics.ru Git - kernel.git/commit
net: add __sys_connect_file() helper
authorJens Axboe <axboe@kernel.dk>
Sat, 23 Nov 2019 21:17:16 +0000 (14:17 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 26 Nov 2019 02:56:11 +0000 (19:56 -0700)
commit2a4f50249aa112d3ddf4c32dd366d705bbb98158
tree72d55790cbd79afedf04b8fe819ae483eda22ea9
parent57d78b4fc6b818163093a50bd3292bf6629e2ffe
net: add __sys_connect_file() helper

This is identical to __sys_connect(), except it takes a struct file
instead of an fd, and it also allows passing in extra file->f_flags
flags. The latter is done to support masking in O_NONBLOCK without
manipulating the original file flags.

No functional changes in this patch.

Cc: netdev@vger.kernel.org
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/socket.h
net/socket.c