PERFORCE change 1202593 for review
John-Mark Gurney
jmg at FreeBSD.org
Fri Nov 7 03:17:31 UTC 2014
http://p4web.freebsd.org/@@1202593?ac=10
Change 1202593 by jmg at 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 {
More information about the p4-projects
mailing list