From owner-p4-projects@FreeBSD.ORG Fri Nov 7 03:17:31 2014 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5E2DBFF5; Fri, 7 Nov 2014 03:17:31 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 21D3DFF3 for ; Fri, 7 Nov 2014 03:17:31 +0000 (UTC) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:1900:2254:2068::682: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 E8252CBA for ; Fri, 7 Nov 2014 03:17:30 +0000 (UTC) Received: from skunkworks.freebsd.org ([127.0.1.74]) by skunkworks.freebsd.org (8.14.9/8.14.9) with ESMTP id sA73HUgC055878 for ; Fri, 7 Nov 2014 03:17:30 GMT (envelope-from jmg@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.9/8.14.9/Submit) id sA73HUar055875 for perforce@freebsd.org; Fri, 7 Nov 2014 03:17:30 GMT (envelope-from jmg@freebsd.org) Date: Fri, 7 Nov 2014 03:17:30 GMT Message-Id: <201411070317.sA73HUar055875@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to jmg@freebsd.org using -f From: John-Mark Gurney Subject: PERFORCE change 1202593 for review To: Perforce Change Reviews Precedence: bulk X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.18-1 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2014 03:17:31 -0000 http://p4web.freebsd.org/@@1202593?ac=10 Change 1202593 by jmg@jmg_carbon2 on 2014/11/07 03:17:12 document CIOCFINDDEV so others are likely to use it... remove some NetBSD specific verbiage... I should look at this to see if we can do the same... Sponsored by: FreeBSD Foundation Sponsored by: Netgate Affected files ... .. //depot/projects/opencrypto/share/man/man4/crypto.4#5 edit Differences ... ==== //depot/projects/opencrypto/share/man/man4/crypto.4#5 (text+ko) ==== @@ -4,7 +4,7 @@ .\" Copyright (c) 2014 The FreeBSD Foundation .\" All rights reserved. .\" -.\" Portions of this documentation were writen by John-Mark Gurney +.\" Portions of this documentation were written by John-Mark Gurney .\" under sponsorship of the FreeBSD Foundation and .\" Rubicon Communications, LLC (Netgate). .\" @@ -58,7 +58,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF .\" THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd August 12, 2014 +.Dd November 6, 2014 .Dt CRYPTO 4 .Os .Sh NAME @@ -154,19 +154,41 @@ requests against the session. .Ss Algorithms For a list of supported algorithms, see +.Xr crypto 7 +and .Xr crypto 9 . .Ss IOCTL Request Descriptions .\" .Bl -tag -width CIOCGSESSION .\" .It Dv CRIOGET Fa int *fd -This operation is deprecated and will be removed after -.Nx 5.0 . -It clones the fd argument to +Clone the fd argument to .Xr ioctl 2 , yielding a new file descriptor for the creation of sessions. -Because the device now clones on open, this operation is unnecessary. .\" +.It Dv CIOCFINDDEV Fa struct crypt_find_op *fop +.Bd -literal +struct crypt_find_op { + int crid; /* driver id + flags */ + char name[32]; /* device/driver name */ +}; + +.Ed +If +.Fa crid +is -1, then find the driver named +.Fa name +and return the id in +.Fa crid . +If +.Fa crid +is not -1, return the name of the driver with +.Fa crid +in +.Fa name . +In either case, if the driver is not found, +.Dv ENOENT +is returned. .It Dv CIOCGSESSION Fa struct session_op *sessp .Bd -literal struct session_op {