freebsd kernel with SKQ
Go to file
Bosko Milekic 185c2244ce o Introduce new m_getcl() interface routine that allocates an mbuf
and a cluster in one shot.
o Introduce MBP_PERSIST and MBP_PERSISTENT control bits to mb_alloc();
  MBP_PERSIST means "if you can allocate, then keep the cache lock
  held on exit," and MBP_PERSISTENT means "a cache lock is alredy held
  on entry, so allocate from the specified (already locked) cache."
  They may be used in combination.
o m_getcl() uses the MBP_PERSIST/MBP_PERSISTENT interface so that it
  doesn't drop the cache lock in between the mbuf and cluster allocations.
o m_getm(), which takes a size and allocates an mbuf + cluster "best fit"
  chain, has been moved from uipc_mbuf.c to subr_mbuf.c and shown how to
  use MBP_PERSIST/MBP_PERSISTENT to attempt to do a grouped allocation
  without dropping the cache lock in between.

Why this is good: much less bus-locked lock acquires/drops when they're
not needed.  Also, prototype for m_getcl():
struct mbuf * m_getcl(int how, short type, int flags);
"how" and "type" are self-explanatory.  "flags" may be M_PKTHDR, in
which case m_getcl() will make the mbuf a pkthdr-mbuf.

While I'm in subr_mbuf.c:
o Every exported routine now has a nice comment with a description of
  the expected arguments.  Eventually, mbuf(9) needs to be re-vamped
  but there's still more code to write/finalize before I get to that.
o internal macros have been changed a bit.
o consistently use 'short' for "type."  This somehow slipped through
  before (that 'type' was sometimes declared as int).

Alfred has been pushing for the MBP_PERSIST{,ENT} thing for almost a
year now.  Luigi asked for m_getcl(), and will probably MFC that
part of this commit.

TODO [Related]: teach mb_free() about MBP_PERSIST{, ENT}.
2002-07-15 15:32:59 +00:00
bin Revert previous delta, which is not required with rev 1.5 of 2002-07-15 12:08:21 +00:00
contrib MFS: make this file compilable with gcc 2.9x as well. 2002-07-14 13:25:51 +00:00
crypto Use realhostname_sa(3) so the IP address will be used instead of the 2002-07-11 10:36:10 +00:00
etc Removed no longer used share/examples/diskless/* dirs (forgotten 2002-07-11 07:15:36 +00:00
games Fix a typo. 2002-07-14 22:50:12 +00:00
gnu The .Nm utility 2002-07-14 15:12:00 +00:00
include clnt_vc_create() has const scalar arguments that wind up being modified, 2002-07-14 23:35:04 +00:00
kerberos5 Heimdal Texinfo manual. 2002-07-05 05:47:13 +00:00
kerberosIV This code is no longer WARNS level 2 OK. 2002-05-15 06:32:29 +00:00
lib Fix whitespace in .Bd -literal display of S_IXXX constants. 2002-07-15 08:58:16 +00:00
libexec Use fgetln(3) to read lines from configuration files (ftpusers, ftphosts.) 2002-07-12 15:51:15 +00:00
release Add "tty" entry. 2002-07-14 14:18:16 +00:00
sbin Replace extra call to "tunefs" with the equivalent of "newfs -U". 2002-07-15 11:30:21 +00:00
secure Removed the (never used) help-distribute target from here. 2002-07-11 13:31:52 +00:00
share Document savecore_flags. 2002-07-15 02:21:44 +00:00
sys o Introduce new m_getcl() interface routine that allocates an mbuf 2002-07-15 15:32:59 +00:00
tools Update another mention of <CR><CR> I missed the first time around (rev 1.2) 2002-07-04 05:16:19 +00:00
usr.bin s/progname/procname/ to be consistent with the other occurrences 2002-07-15 11:33:30 +00:00
usr.sbin Get rid of %qd, and unbreak Alpha build. 2002-07-15 12:17:31 +00:00
COPYRIGHT
MAINTAINERS Express my interest about being notified for fdc(4) and sppp(4) changes. 2002-07-10 14:51:48 +00:00
Makefile correct syntax in last commit 2002-06-24 20:13:09 +00:00
Makefile.inc1 Pass -DBOOTSTRAPPING to the kernel's build tool (sys/dev/aic7xxx/aicasm). 2002-07-11 16:43:59 +00:00
Makefile.upgrade
README Spell "FreeBSD" correctly. 2002-03-26 12:35:49 +00:00
UPDATING Approved by: imp@freebsd.org 2002-07-03 04:23:38 +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 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/handbook/synching.html