Date: Fri, 7 Nov 2014 03:17:30 GMT From: John-Mark Gurney <jmg@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 1202593 for review Message-ID: <201411070317.sA73HUar055875@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411070317.sA73HUar055875>