From owner-svn-src-all@FreeBSD.ORG Wed Jan 7 19:51:11 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 724DE106564A; Wed, 7 Jan 2009 19:51:11 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 2F7CE8FC19; Wed, 7 Jan 2009 19:51:11 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n07Jlv4d060208; Wed, 7 Jan 2009 12:48:00 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 07 Jan 2009 12:48:10 -0700 (MST) Message-Id: <20090107.124810.1933499588.imp@bsdimp.com> To: rizzo@iet.unipi.it From: "M. Warner Losh" In-Reply-To: <20090106224658.GB3130@onelab2.iet.unipi.it> References: <200901061510.n06FAQ0g034585@svn.freebsd.org> <4963D4E9.707@FreeBSD.org> <20090106224658.GB3130@onelab2.iet.unipi.it> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, sobomax@freebsd.org, luigi@freebsd.org, src-committers@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn: head/sys/i386/conf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 19:51:12 -0000 In message: <20090106224658.GB3130@onelab2.iet.unipi.it> Luigi Rizzo writes: : On Tue, Jan 06, 2009 at 02:02:17PM -0800, Maxim Sobolev wrote: : > Luigi Rizzo wrote: : > >+# through getenv() (or kenv(1) in userland). The format of the file : > >+# is 'variable=value' , same as for hints files. : > : > What do you think about extending comment with the following: : > : > "hints files" -> "hints or loader.conf(5) files". : : i don't know -- in fact, I have a curiosity here: : loader.conf is processed by some code in loader.4th which in turn : is interpreted by loader.conf, and this chain does some magic : on certain variable names (and can also do $variable expansion). : : Instead, I believe that 'hints' (and presumably 'env' values) are : passed directly to the kernel, so there are no special manipulation : of variable names or values. Is that correct ? hints are either compiled into the kernel, or are loaded into the kernel environment by reading /boot/device.hints. There's nothing really magical about it. You could put all your hints into /boot/loader.conf if you wanted... If you compile them directly into the kernel, the loader can't help... Warner