12.07.2015 Views

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CONFIG (9) <strong>NetBSD</strong> <strong>Kernel</strong> Developer’s <strong>Manual</strong> CONFIG (9)needs-flagThis flag performs the same operation as needs-count but only records if the number isnonzero. Since the count is not exact, needs-flag does not prevent autoconfigurationcloning.device-major name char [block] [attributes]The character device switch name associated with a character major device number is added to thelist of device switches used to build the kernel. If block is specified, the block device switch associatedwith a block major device number is also added. If all of attributes are specified by devicesin the machine description files, then device switches are added into the device switches’ table ofthe kernel in compilation, otherwise they are omitted.include filenameInclude contents of file filename to currently processed configuration.filename doesn’t exist, config(1) exits with error.If the specifiedpackage filenameChanges prefix to directory of filename, processes contents of filename, and switches backto previous prefix. This is syntactic sugar for:prefix dirname(filename)include basename(filename)prefixprefix [dirname]If dirname is specified, it is pushed on top of prefix stack. Any further files specified via optionfile would have the prefix implicitly prepended before its filename. If dirname is not specified,pops (removes) a prefix from prefix stack.To allow locators to be wildcarded in the machine description file, their default value must be defined in theattribute definition. To allow locators to be omitted entirely in the machine description file, enclose the locatorin square brackets. This can be used when some locators do not make sense for some devices, but thesoftware interface requires them.CODE REFERENCESThis section describes places within the <strong>NetBSD</strong> source tree where actual code implementing or using theautoconfiguration framework can be found. All pathnames are relative to /usr/src.The device definition files are in sys/conf/files, sys/arch//conf/files., andsys/dev//files..The grammar for machine description files can be found in config(1), in usr.bin/config/gram.y.SEE ALSOconfig(1), config(5), autoconf(9), driver(9)Building 4.4 BSD Systems with Config.Chris Torek, Device Configuration in 4.4BSD, 1992.HISTORYAutoconfiguration first appeared in 4.1BSD. The autoconfiguration framework was completely revised in4.4BSD. Ithas been modified within <strong>NetBSD</strong> to support bus-independent drivers and bus-dependent attachments.<strong>NetBSD</strong> 3.0 August 19, 2003 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!