From nobody Mon Nov 25 18:36:38 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XxvYf28fNz5f1bN; Mon, 25 Nov 2024 18:36:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XxvYf1R5Tz4TGn; Mon, 25 Nov 2024 18:36:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732559798; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KojfhBrmHTkNc+WH8otwqtwvMTPXGe9LuVFHoIyxawQ=; b=EhAno9rfytSzXFRn56UoVd7pfd+Ssy9D426aZBtydfwWDICc9roc3FQicQ2klFXihCWAYP RCpZXTAie1wW0QPJUncO5PwnLE1TkqY5qbs5iTpjM0V3A6YU3vySGwAQyv73vUvPh3h3xV GGK+5ykLI5DHfEgAEffk5J8Ae5LM2uRxaDirdyTi3AftGWmkc1xDq39GJ6y6We3gDXSLkc z+NrPsMHU2DSbpLDBdsEbOi4dty5IA/OSBXPEizFsHM+inzjj4AryrWPwtYGekrPP1w1Pn BnPPezA1DpwOADHug2RVAuznXDbkW0uVlf5YDHf17CgCP+KTSNUbqHVgfPRBtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732559798; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KojfhBrmHTkNc+WH8otwqtwvMTPXGe9LuVFHoIyxawQ=; b=EZQH14cUyvG97LCg0qNCyD3+QNPYH/jazVaGnW9XtOMR2Cv6HHdVYdDfn4g4pHKxzWSMkT YRU/BXQ+XB2VOrp31a66cedGYaOVRh9Yy6XNxX4MqyRpDap9G6LCDEU23WdUbnOMNycNVD FScwuqWZyekzobQSCCd5hno6ilesMgPJykb93+2yJAbpQJJ++jnY/pidsNB3RZl3cRjlsC hTkGLGg5UfYHOy+KEFtdMr8ZwzEDvv7ls7/SwjDgb3QzsB9Xd9WuNpGhHdgoempDAumITd xSJwvYNidrcgu6unaUHVfTmlCwx+yaq3ZnjDqa6+yBP2Nbifkr8zTYS6vrK/BQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732559798; a=rsa-sha256; cv=none; b=PcOvEg4NsZrFQKjXP7yw53JnLTZSmuzUWfeu7APswlNhKZpI/mWg6E+fqJ9kcKAu96gebh 0nGNXNycrubMN5B7bRTyCEAgxIwMkIOUmj7bizKu9HFTcyCqlmJQ/Jf6MCQF/omPodXJwr 2uiiVl9pkr7oKGYo1U9F1VSG4VCCwxlpNxbLsjZ9iwfdRVo6aqnZzL/i69/R/3O1J/Y2Tz bd54OOkNXYi8Gba//E50n1TkyTv1qgxv4u4uRk5hFyWB1+iVii4MTfq8YzYh+BEnC/AUdP V+x9+ifqKxxxWV7fgZJm9xWZ6r+SRHcQw8kuuOIMRaNYyLU3gfOwm+UvKRN/8g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XxvYf12QYzrHx; Mon, 25 Nov 2024 18:36:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4APIacD3029490; Mon, 25 Nov 2024 18:36:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4APIacnv029487; Mon, 25 Nov 2024 18:36:38 GMT (envelope-from git) Date: Mon, 25 Nov 2024 18:36:38 GMT Message-Id: <202411251836.4APIacnv029487@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: c1e304c60c46 - main - setsockopt.2: Clarify SO_SPLICE action List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c1e304c60c46a26af57f9638c53417dd6cffa9fe Auto-Submitted: auto-generated The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=c1e304c60c46a26af57f9638c53417dd6cffa9fe commit c1e304c60c46a26af57f9638c53417dd6cffa9fe Author: Kevin Bowling AuthorDate: 2024-11-25 18:32:35 +0000 Commit: Kevin Bowling 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 --- 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