FreeBSD src
Go to file
Hans Petter Selasky 3da1cf1e88 Extend the meaning of the CTLFLAG_TUN flag to automatically check if
there is an environment variable which shall initialize the SYSCTL
during early boot. This works for all SYSCTL types both statically and
dynamically created ones, except for the SYSCTL NODE type and SYSCTLs
which belong to VNETs. A new flag, CTLFLAG_NOFETCH, has been added to
be used in the case a tunable sysctl has a custom initialisation
function allowing the sysctl to still be marked as a tunable. The
kernel SYSCTL API is mostly the same, with a few exceptions for some
special operations like iterating childrens of a static/extern SYSCTL
node. This operation should probably be made into a factored out
common macro, hence some device drivers use this. The reason for
changing the SYSCTL API was the need for a SYSCTL parent OID pointer
and not only the SYSCTL parent OID list pointer in order to quickly
generate the sysctl path. The motivation behind this patch is to avoid
parameter loading cludges inside the OFED driver subsystem. Instead of
adding special code to the OFED driver subsystem to post-load tunables
into dynamically created sysctls, we generalize this in the kernel.

Other changes:
- Corrected a possibly incorrect sysctl name from "hw.cbb.intr_mask"
to "hw.pcic.intr_mask".
- Removed redundant TUNABLE statements throughout the kernel.
- Some minor code rewrites in connection to removing not needed
TUNABLE statements.
- Added a missing SYSCTL_DECL().
- Wrapped two very long lines.
- Avoid malloc()/free() inside sysctl string handling, in case it is
called to initialize a sysctl from a tunable, hence malloc()/free() is
not ready when sysctls from the sysctl dataset are registered.
- Bumped FreeBSD version to indicate SYSCTL API change.

MFC after:	2 weeks
Sponsored by:	Mellanox Technologies
2014-06-27 16:33:43 +00:00
bin use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
cddl MFV illumos 2014-06-26 23:24:59 +00:00
contrib MFV r267843: update file/libmagic to 5.19. 2014-06-26 06:03:39 +00:00
crypto Merge OpenSSL 1.0.1h. 2014-06-09 05:50:57 +00:00
etc Remove example cvsup config files. 2014-06-25 12:32:41 +00:00
games use .Mt to mark up email addresses consistently (part1) 2014-06-20 09:40:43 +00:00
gnu Make sure that the sub-makes for unwind.h start from the CURDIR 2014-06-24 22:15:27 +00:00
include Don't install GSS-API headers when the GSSAPI option has been disabled. 2014-06-13 10:08:18 +00:00
kerberos5 In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE. 2014-06-08 17:29:31 +00:00
lib Fix build with WITHOUT_INET6. 2014-06-26 14:24:31 +00:00
libexec mdoc: remove superfluous paragraph macros. 2014-06-23 18:40:21 +00:00
release Remove an nunnecessary reference to csup. 2014-06-25 12:17:00 +00:00
rescue Minor style nits... 2014-05-23 00:20:57 +00:00
sbin Don't hide zero-length strings when doing sysctl listings. 2014-06-27 15:23:12 +00:00
secure Merge OpenSSL 1.0.1h. 2014-06-09 05:50:57 +00:00
share use .Mt to mark up email addresses consistently (final part) 2014-06-26 21:46:14 +00:00
sys Extend the meaning of the CTLFLAG_TUN flag to automatically check if 2014-06-27 16:33:43 +00:00
tests Vendor import of file 5.19. 2014-06-24 21:24:48 +00:00
tools * Handle ++x as well as x++ while converting. 2014-06-25 15:22:14 +00:00
usr.bin MFV r267843: update file/libmagic to 5.19. 2014-06-26 06:03:39 +00:00
usr.sbin Sort command flags in usage output and the manpages. 2014-06-27 15:20:34 +00:00
.arcconfig Prevent arc commands from overwriting history 2014-06-06 08:05:34 +00:00
.arclint arc: add linting for python files 2014-06-02 00:21:42 +00:00
COPYRIGHT Bump copyright year. 2013-12-31 12:18:10 +00:00
LOCKS Explicitly require Security Officer's approval for kernel PRNG bits. 2013-09-17 14:19:05 +00:00
MAINTAINERS Remove send-pr, the supported interface to submit bugs is now via 2014-06-14 20:36:32 +00:00
Makefile grep -L returns non-zero status if none of the files had the pattern 2014-05-10 16:39:08 +00:00
Makefile.inc1 - Add a LOCAL_ITOOLS to allow adding additional tools required for the 2014-06-17 22:23:36 +00:00
ObsoleteFiles.inc Remove example cvsup config files. 2014-06-25 12:32:41 +00:00
README Vendor import of file 5.19. 2014-06-24 21:24:48 +00:00
UPDATING Document r267639 CTL ABI breakage. 2014-06-24 18:56:45 +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 ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

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.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

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.

rescue		Build system for statically linked /rescue utilities.

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