FreeBSD src
Go to file
Bosko Milekic e66468ea7a Make the slabrefzone, the zone from which we allocated slabs with
internal reference counters, UMA_ZONE_NOFREE.  This way, those slabs
(with their ref counts) will be effectively type-stable, then using
a trick like this on the refcount is no longer dangerous:

        MEXT_REM_REF(m);
        if (atomic_cmpset_int(m->m_ext.ref_cnt, 0, 1)) {
                if (m->m_ext.ext_type == EXT_PACKET) {
                        uma_zfree(zone_pack, m);
                        return;
                } else if (m->m_ext.ext_type == EXT_CLUSTER) {
                        uma_zfree(zone_clust, m->m_ext.ext_buf);
                        m->m_ext.ext_buf = NULL;
                } else {
                        (*(m->m_ext.ext_free))(m->m_ext.ext_buf,
                            m->m_ext.ext_args);
                        if (m->m_ext.ext_type != EXT_EXTREF)
                                free(m->m_ext.ref_cnt, M_MBUF);
                }
        }
        uma_zfree(zone_mbuf, m);

Previously, a second thread hitting the above cmpset might
actually read the refcnt AFTER it has already been freed.  A very
rare occurance.  Now we'll know that it won't be freed, though.

Spotted by: julian, pjd
2004-06-09 19:18:50 +00:00
bin If we are asked to print the total number of blocks, do so even if we 2004-06-08 09:30:10 +00:00
contrib FreeBSD-ify the manpage. Our inetd does not support bind-address:port syntax 2004-05-27 23:51:05 +00:00
crypto
etc Back out rev 1.3. 2004-06-08 19:53:25 +00:00
games Consistently credit President Truman as Harry S. Truman. 2004-06-01 09:45:16 +00:00
gnu Have /usr/bin/tar be a symlink to /usr/bin/gtar rather 2004-06-04 00:39:46 +00:00
include Fix typo in putwc(). 2004-06-07 10:31:10 +00:00
kerberos5
lib Include <sys/cdefs.h> earlier to get the various visibility constants. 2004-06-09 10:32:05 +00:00
libexec give out a little more information in case of a missing dependency 2004-05-28 00:05:28 +00:00
release Update copyright years. 2004-06-09 10:56:32 +00:00
rescue
sbin Reapply traditionally lost fixes, fixed some more. 2004-06-05 20:22:15 +00:00
secure Import the openssl conf for arm. 2004-05-14 12:26:51 +00:00
share Style. 2004-06-09 17:10:41 +00:00
sys Make the slabrefzone, the zone from which we allocated slabs with 2004-06-09 19:18:50 +00:00
tools Log the config name in the history file. 2004-06-05 11:09:34 +00:00
usr.bin Set program exit value to 1 if there are any of various errors when 2004-06-07 07:19:04 +00:00
usr.sbin Add some more details about what traceroute6 does. 2004-06-09 12:45:51 +00:00
COPYRIGHT
installworld_newk
installworld_oldk
MAINTAINERS Add myself as maintainer for geom_nop, geom_stripe and geom(8). 2004-05-20 12:44:23 +00:00
Makefile
Makefile.inc1 Allow buildworld and friends to complete when make(1) is called 2004-05-17 16:19:51 +00:00
README
UPDATING Note the need to rerun config. 2004-06-07 21:37:40 +00:00
UPDATING.64BTT

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