Source-Changes-HG archive

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

[src/trunk]: src/share/man/man9 Document config_match().



details:   https://anonhg.NetBSD.org/src/rev/c9bcc742fd71
branches:  trunk
changeset: 537724:c9bcc742fd71
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Sat Oct 05 05:39:35 2002 +0000

description:
Document config_match().

diffstat:

 share/man/man9/Makefile   |   3 ++-
 share/man/man9/autoconf.9 |  12 +++++++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diffs (57 lines):

diff -r 5a8da1edc7b8 -r c9bcc742fd71 share/man/man9/Makefile
--- a/share/man/man9/Makefile   Sat Oct 05 05:24:40 2002 +0000
+++ b/share/man/man9/Makefile   Sat Oct 05 05:39:35 2002 +0000
@@ -1,4 +1,4 @@
-#       $NetBSD: Makefile,v 1.126 2002/09/29 20:29:15 jdolecek Exp $
+#       $NetBSD: Makefile,v 1.127 2002/10/05 05:39:35 gmcgarry Exp $
 
 #      Makefile for section 9 (kernel function and variable) manual pages.
 
@@ -47,6 +47,7 @@
 MLINKS+=autoconf.9 config_search.9 \
        autoconf.9 config_found_sm.9 \
        autoconf.9 config_found.9 \
+       autoconf.9 config_match.9 \
        autoconf.9 config_attach.9 \
        autoconf.9 config_detach.9 \
        autoconf.9 config_activate.9 \
diff -r 5a8da1edc7b8 -r c9bcc742fd71 share/man/man9/autoconf.9
--- a/share/man/man9/autoconf.9 Sat Oct 05 05:24:40 2002 +0000
+++ b/share/man/man9/autoconf.9 Sat Oct 05 05:39:35 2002 +0000
@@ -1,4 +1,4 @@
-.\"     $NetBSD: autoconf.9,v 1.10 2002/04/02 14:14:45 heinz Exp $
+.\"     $NetBSD: autoconf.9,v 1.11 2002/10/05 05:39:35 gmcgarry Exp $
 .\"
 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -42,6 +42,7 @@
 .Nm config_search ,
 .Nm config_found_sm ,
 .Nm config_found ,
+.Nm config_match ,
 .Nm config_attach ,
 .Nm config_detach ,
 .Nm config_activate ,
@@ -62,6 +63,8 @@
 "cfmatch_t submatch"
 .Ft struct device *
 .Fn config_found "struct device *parent" "void *aux" "cfprint_t print"
+.Ft int
+.Fn config_match "struct device *parent" "struct cfdata *cf" "void *aux"
 .Ft struct device *
 .Fn config_attach "struct device *parent" "struct cfdata *cf" "void *aux" \
 "cfprint_t print"
@@ -205,6 +208,13 @@
 with
 .Fa submatch
 set to NULL and is provided for compatibility with older drivers.
+.It Fn config_match "parent" "cf" "aux"
+Match a device.  Invokes the drivers match function according to the
+configuration table. The
+.Fn config_match
+function returns a nonzero integer indicating the confidence of
+supporting this device and a value of 0 if the driver doesn't support
+the device.
 .It Fn config_attach "parent" "cf" "aux" "print"
 Attach a found device.  Allocates the memory for the
 .Em softc



Home | Main Index | Thread Index | Old Index