freebsd with flexible iflib nic queues
Go to file
Poul-Henning Kamp 224d5539a9 Make devstat fully Giant agnostic:
Add a mutex and protect the allocation and traversal of the list with it.

When we allocate a page for devstat use we drop the mutex and use
M_WAITOK this is not nice, but under the given circumstances the
best we can do.

In the sysctl handler for returning the devstat entries we do not want to
hold the mutex across copyout(9) calls, so we keep a very careful eye on
the devstat_generation count, and abandon with EBUSY if it changes under
our feet.

Specifically test for BIO_WRITE, rather than default non-read,non-deletes
as write.  Make the default be DEVSTAT_NO_DATA.

Add atomic increments of the sequence[01] fields so applications using the
mmap'ed view stand a chance of detecting updates in progress.

Reviewed by:    ken
2003-03-18 09:20:20 +00:00
bin Flush the output buffers before forking a child process to avoid 2003-03-17 11:28:56 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r112336, 2003-03-17 07:59:59 +00:00
crypto KerberosIV deorbit sequence: Re-entry. Thank you, faithful friend. 2003-03-08 12:55:48 +00:00
etc Attach the kldxref script to the build/install. 2003-03-17 23:20:48 +00:00
games Improved version of Unix sex. 2003-03-17 20:59:50 +00:00
gnu Forced non-forced commit by adding a comment mentioning what the 2003-03-17 00:08:47 +00:00
include MFp4: Implementations of the wcstof() and wcstold() functions. 2003-03-13 06:29:53 +00:00
kerberos5 Post KerberosIV de-orbit: Clean up Kerberos5. We dont need KerberosIV 2003-03-09 21:56:55 +00:00
lib Constify arg to geom_lookupid(). 2003-03-17 08:22:48 +00:00
libexec Run a revision of the devstat interface: 2003-03-15 21:59:06 +00:00
release Update release note: awk 20030314. 2003-03-17 19:22:12 +00:00
sbin Teach disklabel(8) about different hardware architectures. 2003-03-16 00:11:49 +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 A new rc-ng script to build linker.hints files with kldxref(8) 2003-03-17 23:15:53 +00:00
sys Make devstat fully Giant agnostic: 2003-03-18 09:20:20 +00:00
tools Allow the configuration to specify environment variables (passed on 2003-03-14 00:55:41 +00:00
usr.bin For the bwk_20030314 version, we have to -DHAS_ISBLANK now. 2003-03-17 08:07:54 +00:00
usr.sbin Run a revision of the devstat interface: 2003-03-15 21:59:06 +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