1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
Mirror of the FreeBSD src repository https://git.FreeBSD.org/src.git .
Go to file
John Baldwin 35580ede37 A small overhaul of witness:
- Add a comment about special lock order rules and Giant near the top of
  subr_witness.c.  Specifically, this documents and explains the real lock
  order relationship between Giant and sleepable locks (i.e. lockmgr locks
  and sx locks).  Basically, Giant can be safely acquired either before or
  after sleepable locks and the case of Giant before a sleepable lock is
  exempted as a special case.
- Add a new static function 'witness_list_lock()' that displays a single
  line of information about a struct lock_instance.  This is used to
  make the output of witness messages more consistent and reduce some code
  duplication.
- Fixup a few comments in witness_lock().
- Properly handle the Giant-before-sleepable-lock lock order exception in
  a more general fashion and remove the no longer needed LI_SLEPT flag.
- Break up the last condition before assuming a reversal a bit to try
  and make the logic less confusing in witness_lock().
- Axe WITNESS_SLEEP() now that LI_SLEPT is no longer needed and replace it
  with a more general WITNESS_WARN() macro/function combination.
  WITNESS_WARN() allows you to output a customized message out to the
  console along with a list of held locks.  It will optionally drop into
  the debugger as well.  You can exempt a single lock from the check by
  passing it in as the second argument.  You can also use flags to specify
  if Giant should be exempt from the check, if all sleepable locks should
  be exempt from the check, and if witness should panic if any non-exempt
  locks are found.
- Make the witness_list() function static.  Other areas of the kernel
  should use the new WITNESS_WARN() instead.
2003-03-04 20:56:39 +00:00
bin WARNS=4 fixes. This would be WARNS=9 if we were -std=99 instead of 2003-02-27 18:04:54 +00:00
contrib sendmail 8.12.8 has been imported 2003-03-03 17:25:49 +00:00
crypto Resolve conflicts after import of OpenSSL 0.9.7a. 2003-02-19 23:24:16 +00:00
etc Make sure the default install comes with /etc/login.conf hashed. 2003-03-03 11:19:18 +00:00
games Fix style of recent additions and sort. 2003-02-26 04:41:58 +00:00
gnu Only cross-tools may use TARGET_ARCH/TARGET, everyone else 2003-02-27 09:19:31 +00:00
include Eliminate 19 warnings in libc (at level WARNS=2) of the 2003-02-27 13:40:01 +00:00
kerberos5 Define OPENSSL_DES_LIBDES_COMPATIBILITY so that Heimdal will build with 2003-01-21 14:08:24 +00:00
kerberosIV update version numbers to (consistenly): 2002-10-23 06:12:21 +00:00
lib MFlibc_r: add and document pthread_attr_get_np() function. 2003-03-03 22:40:20 +00:00
libexec mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
release SA:03-04 note was a poor cut-n-paste from the SA. Do it right this 2003-03-03 18:23:57 +00:00
sbin Add an xref to kldconfig(8). 2003-03-03 22:48:06 +00:00
secure Handle includes the normal way. 2003-02-27 23:07:26 +00:00
share Add cvsroot-all to the example 2003-03-04 19:02:27 +00:00
sys A small overhaul of witness: 2003-03-04 20:56:39 +00:00
tools Fix a bug in the white-space remover. 2003-03-04 19:20:52 +00:00
usr.bin mdoc(7) police: Revision. 2003-03-03 11:51:30 +00:00
usr.sbin Start whining to stderr when people use obsolete flags. These flags 2003-03-04 14:59:48 +00:00
COPYRIGHT Update to add the July 22, 1999 addendum. 1999-09-05 21:33:47 +00:00
MAINTAINERS Nuke xargs, I haven't had to help anyone with it, so I assume it stands on 2003-02-18 00:07:06 +00:00
Makefile Don't make buildworld and buildkernel in parallel. 2003-02-27 13:11:33 +00:00
Makefile.inc1 Doh, committed to the wrong branch. 2003-03-04 17:24:18 +00:00
Makefile.upgrade Removed "env" commands. "sh" is a real shell, so 2002-03-19 05:58:36 +00:00
README Fix broken handbook links. 2002-07-21 16:45:30 +00:00
UPDATING Acutally document how to make a LINT kernel config, besides telling all it 2003-02-13 17:55:12 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The
``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

kerberosIV	KerberosIV (eBones) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html