git: c1e304c60c46 - main - setsockopt.2: Clarify SO_SPLICE action
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 25 Nov 2024 18:36:38 UTC
The branch main has been updated by kbowling:
URL: https://cgit.FreeBSD.org/src/commit/?id=c1e304c60c46a26af57f9638c53417dd6cffa9fe
commit c1e304c60c46a26af57f9638c53417dd6cffa9fe
Author: Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2024-11-25 18:32:35 +0000
Commit: Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-11-25 18:36:00 +0000
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 <markj@FreeBSD.org>
---
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