Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man Document also kern.cryptodevallowsoft.



details:   https://anonhg.NetBSD.org/src/rev/77de6d198423
branches:  trunk
changeset: 754103:77de6d198423
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Tue Apr 20 08:37:22 2010 +0000

description:
Document also kern.cryptodevallowsoft.

diffstat:

 share/man/man4/crypto.4 |   9 +++++----
 share/man/man7/sysctl.7 |  21 +++++++++++++++++----
 2 files changed, 22 insertions(+), 8 deletions(-)

diffs (68 lines):

diff -r 7c675475c179 -r 77de6d198423 share/man/man4/crypto.4
--- a/share/man/man4/crypto.4   Tue Apr 20 08:27:24 2010 +0000
+++ b/share/man/man4/crypto.4   Tue Apr 20 08:37:22 2010 +0000
@@ -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.
diff -r 7c675475c179 -r 77de6d198423 share/man/man7/sysctl.7
--- a/share/man/man7/sysctl.7   Tue Apr 20 08:27:24 2010 +0000
+++ b/share/man/man7/sysctl.7   Tue Apr 20 08:37:22 2010 +0000
@@ -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



Home | Main Index | Thread Index | Old Index