Module Name:    src
Committed By:   jruoho
Date:           Tue Apr 20 08:37:23 UTC 2010

Modified Files:
        src/share/man/man4: crypto.4
        src/share/man/man7: sysctl.7

Log Message:
Document also kern.cryptodevallowsoft.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/share/man/man4/crypto.4
cvs rdiff -u -r1.45 -r1.46 src/share/man/man7/sysctl.7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man4/crypto.4
diff -u src/share/man/man4/crypto.4:1.20 src/share/man/man4/crypto.4:1.21
--- src/share/man/man4/crypto.4:1.20	Tue Apr 20 08:27:24 2010
+++ src/share/man/man4/crypto.4	Tue Apr 20 08:37:22 2010
@@ -1,4 +1,4 @@
-.\"	$NetBSD: crypto.4,v 1.20 2010/04/20 08:27:24 jruoho Exp $
+.\"	$NetBSD: crypto.4,v 1.21 2010/04/20 08:37:22 jruoho Exp $
 .\"
 .\" Copyright (c) 2008 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -96,12 +96,13 @@
 calls on the descriptor.
 User-mode access to
 .Pa /dev/crypto
-is generally controlled by two
+is generally controlled by three
 .Xr sysctl 8
 variables,
-.Ic kern.usercrypto
+.Ic kern.usercrypto ,
+.Ic kern.userasymcrypto ,
 and
-.Ic kern.userasymcrypto .
+.Ic kern.cryptodevallowsoft .
 See
 .Xr sysctl 7
 for additional details.

Index: src/share/man/man7/sysctl.7
diff -u src/share/man/man7/sysctl.7:1.45 src/share/man/man7/sysctl.7:1.46
--- src/share/man/man7/sysctl.7:1.45	Tue Apr 20 08:27:24 2010
+++ src/share/man/man7/sysctl.7	Tue Apr 20 08:37:23 2010
@@ -1,4 +1,4 @@
-.\"	$NetBSD: sysctl.7,v 1.45 2010/04/20 08:27:24 jruoho Exp $
+.\"	$NetBSD: sysctl.7,v 1.46 2010/04/20 08:37:23 jruoho Exp $
 .\"
 .\" Copyright (c) 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -250,7 +250,7 @@
 .It kern.coredump	node	not applicable
 .It kern.cp_id	struct	no
 .It kern.cp_time	uint64_t[\|]	no
-.\".It kern.cryptodevallowsoft	integer	yes
+.It kern.cryptodevallowsoft	integer	yes
 .It kern.defcorename	string	yes
 .It kern.detachall	integer	yes
 .It kern.domainname	string	yes
@@ -406,8 +406,21 @@
 appropriate space is given for one data set for each CPU.
 Data for a specific CPU can also be obtained by adding the number of the
 CPU at the end of the MIB, enlarging it by one.
-.\".It Li kern.cryptodevallowsoft
-.\" XXX: Undocumented.
+.It Li kern.cryptodevallowsoft
+This variable controls userland access to hardware versus software transforms
+in the
+.Xr crypto 4
+system.
+The available values are as follows:
+.Bl -tag -width "> 0" -offset indent
+.It Dv < 0
+Always force userlevel requests to use software transforms.
+.It Dv = 0
+If present, use hardware and grant userlevel requests for
+non-accelerated transforms (handling the latter in software).
+.It Dv > 0
+Allow user requests only for transforms which are hardware-accelerated.
+.El
 .It Li kern.defcorename ( KERN_DEFCORENAME )
 Default template for the name of core dump files (see also
 .Li proc.pid.corename

Reply via email to