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>
This commit is contained in:
Kevin Bowling 2024-11-25 11:32:35 -07:00
parent c94d6389e4
commit c1e304c60c

View File

@ -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