FreeBSD src
Go to file
John Baldwin f82c6950be - Split the itismychild() function into two functions: insertchild()
adds a witness to the child list of a parent witness.  rebalancetree()
  runs through the entire tree removing direct descendants of witnesses
  who already have said child witness as an indirect descendant through
  another direct descendant.  itismychild() now calls insertchild()
  followed by rebalancetree() and no longer needs the evil hack of
  having static recursed variable.
- Add a function reparentchildren() that adds all the direct descendants
  of one witness as direct descendants of another witness.
- Change the return value of itismychild() and similar functions so that
  they return 0 in the case of failure due to lack of resources instead
  of 1.  This makes the return value more intuitive.
- Check the return value of itismychild() when defining the static lock
  order in witness_initialize().
- Don't try to setup a lock instance in witness_lock() if itismychild()
  fails.  Witness is hosed anyways so no need to do any more witness
  related activity at that point.  It also makes the code flow easier to
  understand.
- Add a new depart() function as the opposite of enroll().  When the
  reference count of a witness drops to 0 in witness_destroy(), this
  function is called on that witness.  First, it runs through the
  lock order tree using reparentchildren() to reparent direct descendants
  of the departing witness to each of the witness' parents in the tree.
  Next, it releases it's own child list and other associated resources.
  Finally it calls rebalanacetree() to rebalance the lock order tree.
- Sort function prototypes into something closer to alphabetical order.

As a result of these changes, there should no longer be 'dead' witnesses
in the order tree, and repeatedly loading and unloading a module should no
longer exhaust witness of its internal resources.

Inspired by:	gallatin
2003-03-11 22:07:35 +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 Fixes for the Russian translations of the messages. 2003-03-08 22:45:12 +00:00
crypto KerberosIV deorbit sequence: Re-entry. Thank you, faithful friend. 2003-03-08 12:55:48 +00:00
etc No tabs here. 2003-03-11 11:14:34 +00:00
games At the risk of serious physical abuse from markm, add another regex joke, 2003-03-10 19:58:37 +00:00
gnu Only cross-tools may use TARGET_ARCH/TARGET, everyone else 2003-02-27 09:19:31 +00:00
include Clean up some signed/unsigned issues in the XDR code. 2003-03-07 13:19:40 +00:00
kerberos5 Post KerberosIV de-orbit: Clean up Kerberos5. We dont need KerberosIV 2003-03-09 21:56:55 +00:00
lib Don't parse the proxy URL unless we're actually going to use it. No real 2003-03-11 08:20:58 +00:00
libexec mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
release New release note: IP fragment reassembly improvement. 2003-03-09 02:27:12 +00:00
sbin Fix and sync SYNOPSIS and usage(). 2003-03-11 20:12:39 +00:00
secure Back out rev 1.60, taking the pointy hat away from nectar as 'rm -f' 2003-03-11 17:19:37 +00:00
share manual page for rndtest driver/module 2003-03-11 19:16:42 +00:00
sys - Split the itismychild() function into two functions: insertchild() 2003-03-11 22:07:35 +00:00
tools use relative pathname to driver-private file (instead of absolute) 2003-03-11 18:49:50 +00:00
usr.bin Use floating point arithmetic to compute the ETA to avoid integer overflow 2003-03-11 21:33:43 +00:00
usr.sbin Make this work on different endianness machines. 2003-03-11 13:48:58 +00:00
COPYRIGHT
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 Convert kgzip(8) to be an i386 cross-tool. This is needed for 2003-03-11 11:45:43 +00:00
Makefile.upgrade Removed "env" commands. "sh" is a real shell, so 2002-03-19 05:58:36 +00:00
README KerberosIV de-orbit burn continues. Disconnect from "make world". 2003-03-08 10:01:26 +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.

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