diff options
author | Neil Horman <nhorman@tuxdriver.com> | 2017-06-30 13:32:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-01 15:26:11 -0700 |
commit | 2cb5c8e378d10a57aa1c9eaee36bea46c27dd2b9 (patch) | |
tree | cc8f2f7500a0b48952c742c169fe858e536a9eba /net/bluetooth | |
parent | 15324b25d5792b92c44714e20694a2df3a3a7b8f (diff) | |
download | op-kernel-dev-2cb5c8e378d10a57aa1c9eaee36bea46c27dd2b9.zip op-kernel-dev-2cb5c8e378d10a57aa1c9eaee36bea46c27dd2b9.tar.gz |
sctp: Add peeloff-flags socket option
Based on a request raised on the sctp devel list, there is a need to
augment the sctp_peeloff operation while specifying the O_CLOEXEC and
O_NONBLOCK flags (simmilar to the socket syscall). Since modifying the
SCTP_SOCKOPT_PEELOFF socket option would break user space ABI for existing
programs, this patch creates a new socket option
SCTP_SOCKOPT_PEELOFF_FLAGS, which accepts a third flags parameter to
allow atomic assignment of the socket descriptor flags.
Tested successfully by myself and the requestor
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Vlad Yasevich <vyasevich@gmail.com>
CC: "David S. Miller" <davem@davemloft.net>
CC: Andreas Steinmetz <ast@domdv.de>
CC: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth')
0 files changed, 0 insertions, 0 deletions