From c1e304c60c46a26af57f9638c53417dd6cffa9fe Mon Sep 17 00:00:00 2001 From: Kevin Bowling Date: Mon, 25 Nov 2024 11:32:35 -0700 Subject: [PATCH] setsockopt.2: Clarify SO_SPLICE action Reviewed by: gallatin, markj MFC after: 3 days Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D47720 Co-authored-by: Mark Johnston --- lib/libsys/getsockopt.2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/libsys/getsockopt.2 b/lib/libsys/getsockopt.2 index ca826528ff2f..15e4b76311d8 100644 --- a/lib/libsys/getsockopt.2 +++ b/lib/libsys/getsockopt.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd July 8, 2024 +.Dd November 25, 2024 .Dt GETSOCKOPT 2 .Os .Sh NAME @@ -568,9 +568,14 @@ struct so_splice { .Pp Data received on .Fa s -will automatically be transmitted from the socket specified in +will automatically be transmitted via the socket specified in .Fa sp_fd without any intervention by userspace. +That is, the data will be transmitted via +.Fa sp_fd +as if userspace had called +.Xr send 2 +directly. Splicing is a one-way operation; a given pair of sockets may be spliced in one or both directions. Currently only connected