From owner-svn-src-head@freebsd.org Thu Apr 6 02:46:10 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4450D30F09; Thu, 6 Apr 2017 02:46:10 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A6632BBE; Thu, 6 Apr 2017 02:46:10 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v362k9Cn010757; Thu, 6 Apr 2017 02:46:09 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v362k926010756; Thu, 6 Apr 2017 02:46:09 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201704060246.v362k926010756@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Ngie Cooper Date: Thu, 6 Apr 2017 02:46:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316551 - head/share/man/man9 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2017 02:46:10 -0000 Author: ngie Date: Thu Apr 6 02:46:09 2017 New Revision: 316551 URL: https://svnweb.freebsd.org/changeset/base/316551 Log: sbuf(9): clarify kernel-only APIs - move sbuf_bcopyin(9) and sbuf_copyin(9) near sbuf_new_for_sysctl(9), as all three functions are kernel-only APIs. - add #ifdef _KERNEL around sbuf_*copyin and sbuf_new_for_sysctl(9) to make it visually clear that they are kernel-only APIs. MFC after: 2 months Sponsored by: Dell EMC Isilon Modified: head/share/man/man9/sbuf.9 Modified: head/share/man/man9/sbuf.9 ============================================================================== --- head/share/man/man9/sbuf.9 Thu Apr 6 02:40:52 2017 (r316550) +++ head/share/man/man9/sbuf.9 Thu Apr 6 02:46:09 2017 (r316551) @@ -106,12 +106,6 @@ .Fa "size_t len" .Fc .Ft int -.Fo sbuf_bcopyin -.Fa "struct sbuf *s" -.Fa "const void *uaddr" -.Fa "size_t len" -.Fc -.Ft int .Fo sbuf_bcpy .Fa "struct sbuf *s" .Fa "const void *buf" @@ -128,12 +122,6 @@ .Fa "const char *str" .Fc .Ft int -.Fo sbuf_copyin -.Fa "struct sbuf *s" -.Fa "const void *uaddr" -.Fa "size_t len" -.Fc -.Ft int .Fo sbuf_printf .Fa "struct sbuf *s" .Fa "const char *fmt" "..." @@ -207,6 +195,21 @@ .Fo sbuf_putbuf .Fa "struct sbuf *s" .Fc +.Fd #ifdef _KERNEL +.In sys/types.h +.In sys/sbuf.h +.Ft int +.Fo sbuf_bcopyin +.Fa "struct sbuf *s" +.Fa "const void *uaddr" +.Fa "size_t len" +.Fc +.Ft int +.Fo sbuf_copyin +.Fa "struct sbuf *s" +.Fa "const void *uaddr" +.Fa "size_t len" +.Fc .In sys/sysctl.h .Ft struct sbuf * .Fo sbuf_new_for_sysctl @@ -215,6 +218,7 @@ .Fa "int length" .Fa "struct sysctl_req *req" .Fc +.Fd #endif /* _KERNEL */ .Sh DESCRIPTION The .Nm