freebsd with flexible iflib nic queues
Go to file
Poul-Henning Kamp d986dbb448 Add a new kind of reference count (fd_holdcnt) to struct filedesc
which holds on to just the data structure and the mutex.  (The
existing refcount (fd_refcnt) holds onto the open files in the
descriptor.)

The fd_holdcnt is protected by fdesc_mtx, fd_refcnt by FILEDESC_LOCK.

Add fdhold(struct proc *) which gets a hold on the filedescriptors of
the specified proc..

Add fddrop(struct filedesc *) which drops the fd_holdcnt and if zero
destroys the mutex and frees the memory.

Initialize the fd_holdcnt to one in fdinit().  Normal operations on
the filedesc structure will not change it.

In fdfree() use fddrop() to dispose of the mutex and structure.  Hold
the FILEDESC_LOCK() until we have cleaned out the contents and carefully
set the fields to null values during cleanup.

Use fdhold()/fddrop() in mountcheckdirs() and sysctl_kern_file().
2004-12-14 09:09:51 +00:00
bin o Add a missed "." . 2004-12-02 13:13:27 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r138451, 2004-12-06 14:33:29 +00:00
crypto Better Xlist command line. 2004-10-28 16:13:28 +00:00
etc Use utils from /rescue vs. /stand. Also use pax rather than cpio & gzip. 2004-12-12 08:04:26 +00:00
games From Richard W. Hamming ``You and Your Research'' 2004-12-11 21:57:27 +00:00
gnu Add removal of MKTEMP_SH_FUNCTION to processing for cvsbug script. 2004-12-10 18:16:52 +00:00
include According to the information on: 2004-12-10 15:24:40 +00:00
kerberos5 Introduce the PRECIOUSPROG knob in bsd.prog.mk, similar 2004-11-03 18:01:21 +00:00
lib Be more careful about assembling/disassembling 2004-12-11 07:11:42 +00:00
libexec Never emit a message to stderr: use syslog instead. 2004-12-12 17:30:28 +00:00
release Alpha can use 1 or 2 Gbyte of physical RAM max. 2004-12-11 20:41:57 +00:00
rescue Replace GNU tar with BSD tar. 2004-12-04 08:24:36 +00:00
sbin Back the warnings down from 9 to 6, since that is the highest we have. If 2004-12-13 15:42:46 +00:00
secure Update for OpenSSH 3.9p1. 2004-10-28 16:04:23 +00:00
share mdoc(7) nit: Removed redundant .Pp call. 2004-12-14 09:06:44 +00:00
sys Add a new kind of reference count (fd_holdcnt) to struct filedesc 2004-12-14 09:09:51 +00:00
tools Make kttcp work in -stable (and -current) 2004-12-13 20:40:16 +00:00
usr.bin Add myself to the committers' birthday calendar 2004-12-13 12:22:28 +00:00
usr.sbin Handle select() returning -1/EINTR - fairly common in these KSE days. 2004-12-13 14:50:13 +00:00
COPYRIGHT Update the COPYRIGHT file to include FreeBSD's compilation copyright 2003-12-31 22:35:22 +00:00
installworld_newk Commit the first set of files for changing time_t on freebsd/sparc64 2004-03-03 19:36:20 +00:00
installworld_oldk Commit the first set of files for changing time_t on freebsd/sparc64 2004-03-03 19:36:20 +00:00
MAINTAINERS add myself as the contact for the pkg_install tools 2004-11-30 20:04:47 +00:00
Makefile Unbreak the MAKEOBJDIRPREFIX variable check by avoiding bugs in make(1). 2004-12-13 00:49:52 +00:00
Makefile.inc1 Do not leave build droppings in /usr/src for usr.sbin/pcvt/keycap and 2004-12-01 23:23:14 +00:00
README
UPDATING Mention the necessity for ``enable echo'' in ppp(8). 2004-12-13 17:52:10 +00:00
UPDATING.64BTT Add a tip for people who are using database-related ports on a sparc64 2004-03-17 01:59:47 +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