⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2.t

📁 早期freebsd实现
💻 T
字号:
.\" Copyright (c) 1983, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"	@(#)2.t	8.1 (Berkeley) 6/8/93.\".\".ds RH "Configuration File Contents.ne 2i.NHCONFIGURATION FILE CONTENTS.PPA system configuration must include at least the followingpieces of information:.IP \(bu 3machine type.IP \(bu 3cpu type.IP \(bu 3system identification.IP \(bu 3timezone.IP \(bu 3maximum number of users.IP \(bu 3location of the root file system.IP \(bu 3available hardware.PP.I Configallows multiple system images to be generated from a singleconfiguration description.  Each system image is configuredfor identical hardware, but may have different locations for the rootfile system and, possibly, other system devices..NH 2Machine type.PPThe .I "machine type"indicates if the system is going to operate on a DEC VAX-11\(dg computer,.FS\(dg DEC, VAX, UNIBUS, MASSBUS and MicroVAX are trademarks of DigitalEquipment Corporation..FEor some other machine on which 4.4BSD operates.  The machine typeis used to locate certain data files which are machine specific, andalso to select rules used in constructing the resultantconfiguration files..NH 2Cpu type.PPThe.I "cpu type"indicates which, of possibly many, cpu's the system is to operate on.For example, if the system is being configured for a VAX-11, it couldbe running on a VAX 8600, VAX-11/780, VAX-11/750, VAX-11/730 or MicroVAX II.(Other VAX cpu types, including the 8650, 785 and 725, are configured usingthe cpu designation for compatible machines introduced earlier.)Specifyingmore than one cpu type implies that the system should be configured to runon any of the cpu's specified.  For some types of machines this is notpossible and .I configwill print a diagnostic indicating such..NH 2System identification.PPThe.I "system identification"is a moniker attached to the system, and often the machine on which thesystem is to run.  For example, at Berkeley we have machines named Ernie(Co-VAX), Kim (No-VAX), and so on.  The system identifier selected is used tocreate a global C ``#define'' which may be used to isolate system dependentpieces of code in the kernel.  For example, Ernie's Varian driver usedto be special cased because its interrupt vectors were wired together.  Thecode in the driver which understood how to handle this non-standard hardwareconfiguration was conditionally compiled in only if the systemwas for Ernie.  .PPThe system identifier ``GENERIC'' is given to a system whichwill run on any cpu of a particular machine type; it should nototherwise be used for a system identifier..NH 2Timezone.PPThe timezone in which the system is to run is used to define theinformation returned by the \fIgettimeofday\fP\|(2)system call.  This value is specified as the number of hours eastor west of GMT.  Negative numbers indicate a value east of GMT.The timezone specification may also indicate thetype of daylight savings time rules to be applied..NH 2Maximum number of users.PPThe system allocates many system data structures at boot timebased on the maximum number of users the system will support.This number is normally between 8 and 40, dependingon the hardware and expected job mix.  The rulesused to calculate system data structures are discussed inAppendix D..NH 2Root file system location.PPWhen the system boots it must know the location ofthe root of the file systemtree.  This location and the part(s) of the disk(s) to be usedfor paging and swapping must be specified in order to createa complete configuration description.  .I Configuses many rules to calculate default locations for these items;these are described in Appendix B..PPWhen a generic system is configured, the root file system is leftundefined until the system is booted.  In this case, the root filesystem need not be specified, only that the system is a generic system..NH 2Hardware devices.PPWhen the system boots it goes through an.I autoconfigurationphase.  During this period, the system searches for allthose hardware deviceswhich the system builder has indicated might be present.  This probingsequence requires certain pieces of information such as registeraddresses, bus interconnects, etc.  A system's hardware may be configuredin a very flexible manner or be specified without any flexibilitywhatsoever.  Most people do not configure hardware devices into thesystem unless they are currently present on the machine, expectthem to be present in the near future, or are simply guardingagainst a hardwarefailure somewhere else at the site (it is often wise to configure inextra disks in case an emergency requires moving one off a machine whichhas hardware problems)..PPThe specification of hardware devices usually occupies the majority ofthe configuration file.  As such, a large portion of this document willbe spent understanding it.  Section 6.3 contains a description ofthe autoconfiguration process, as it applies to those planning towrite, or modify existing, device drivers..NH 2Pseudo devices.PPSeveral system facilities are configured in a manner like that usedfor hardware devices although they are not associated with specific hardware.These system options are configured as.IR pseudo-devices .Some pseudo devices allow an optional parameter that sets the limiton the number of instances of the device that are active simultaneously..NH 2System options.PPOther than the mandatory pieces of information described above, itis also possible to include various optional system facilitiesor to modify system behavior and/or limits.For example, 4.4BSD can be configured to support binary compatibility forprograms built under 4.3BSD.  Also, optional support is providedfor disk quotas and tracing the performance of the virtual memorysubsystem.  Any optional facilities to be configured intothe system are specified in the configuration file.  The resultantfiles generated by.I configwill automatically include the necessary pieces of the system.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -