1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00
Mirror of the FreeBSD src repository https://git.FreeBSD.org/src.git .
Go to file
Matthew Dillon d23f5958bc Add mtx_lock_giant() and mtx_unlock_giant() wrappers for sysctl management
of Giant during the Giant unwinding phase, and start work on instrumenting
Giant for the file and proc mutexes.

These wrappers allow developers to turn on and off Giant around various
subsystems.  DEVELOPERS SHOULD NEVER TURN OFF GIANT AROUND A SUBSYSTEM JUST
BECAUSE THE SYSCTL EXISTS!  General developers should only considering
turning on Giant for a subsystem whos default is off (to help track down
bugs).  Only developers working on particular subsystems who know what
they are doing should consider turning off Giant.

These wrappers will greatly improve our ability to unwind Giant and test
the kernel on a (mostly) subsystem by subsystem basis.   They allow Giant
unwinding developers (GUDs) to emplace appropriate subsystem and structural
mutexes in the main tree and then request that the larger community test
the work by turning off Giant around the subsystem(s), without the larger
community having to mess around with patches.  These wrappers also allow
GUDs to boot into a (more likely to be) working system in the midst of
their unwinding work and to test that work under more controlled
circumstances.

There is a master sysctl, kern.giant.all, which defaults to 0 (off).  If
turned on it overrides *ALL* other kern.giant sysctls and forces Giant to
be turned on for all wrapped subsystems.  If turned off then Giant around
individual subsystems are controlled by various other kern.giant.XXX sysctls.

Code which overlaps multiple subsystems must have all related subsystem Giant
sysctls turned off in order to run without Giant.
2001-10-26 20:48:04 +00:00
bin mdoc(7) police: join OS version with the corresponding macro. 2001-10-19 14:44:13 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r85552, 2001-10-26 17:22:12 +00:00
crypto Add __FBSDID() to diff-reduce with "base" telnet. 2001-10-01 16:04:55 +00:00
etc Remove /var/spool/uucp subtree, not needed for 'cu' 2001-10-26 09:40:28 +00:00
games Correct a typo: numtiple -> multiple. 2001-10-24 12:51:23 +00:00
gnu There are users of FreeBSD 4.5 already. 2001-10-26 17:01:15 +00:00
include Resume deorbit burn sequence for <malloc.h>. Inspection of my make logs 2001-10-25 02:35:29 +00:00
kerberos5 also install roken-common.h 2001-10-05 04:56:37 +00:00
kerberosIV
lib Style: sort __sys_foo() prototypes, tabs -> spaces, etc. 2001-10-26 18:45:02 +00:00
libexec When we set our UID to `nobody', set an appropriate group also. 2001-10-22 01:55:40 +00:00
release If an article in the release documentation has a table of contents, 2001-10-26 20:26:59 +00:00
sbin Put WARNS into the right place. 2001-10-25 17:09:37 +00:00
secure __FBSDID() (second half of src/lib/libcrypt changes) 2001-10-23 10:23:32 +00:00
share mdoc(7) police: 2001-10-26 17:11:50 +00:00
sys Add mtx_lock_giant() and mtx_unlock_giant() wrappers for sysctl management 2001-10-26 20:48:04 +00:00
tools Make a start at a regression test for the unaligned trap handler. 2001-10-19 22:10:13 +00:00
usr.bin o Modify format of /etc/fbtab to accept glob matching patterns for 2001-10-25 20:45:47 +00:00
usr.sbin mdoc(7) police: 2001-10-26 11:16:18 +00:00
COPYRIGHT
Makefile
Makefile.inc1 Fix cross-building further. 2001-10-25 07:28:55 +00:00
Makefile.upgrade
README
UPDATING Add Soren's burncd warning. 2001-10-02 07:01:27 +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/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 have to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/i386/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.

kerberosIV	Kerberos 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/handbook/synching.html