]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agonoop change so RUN->RUN transition isn't considered invalid
Sam Leffler [Mon, 24 Jan 2005 20:39:29 +0000 (20:39 +0000)]
noop change so RUN->RUN transition isn't considered invalid
(it happens on ibss merge)

19 years agoadd macros to convert between txop's and usecs
Sam Leffler [Mon, 24 Jan 2005 20:38:26 +0000 (20:38 +0000)]
add macros to convert between txop's and usecs

19 years agoFixup radiotap handling of FCS and QoS frames per discussion with David Young:
Sam Leffler [Mon, 24 Jan 2005 20:31:24 +0000 (20:31 +0000)]
Fixup radiotap handling of FCS and QoS frames per discussion with David Young:
o mark rx frames including FCS in the payload with the
  IEEE80211_RADIOTAP_F_FCS flag
o remove hack to copy 802.11 headers with padding out of line; instead mark
  the frames with IEEE80211_RADIOTAP_F_DATAPAD and require applications to
  do the work
o split precalculated radiotap flags into tx+rx now that they can be different

Note the full usefulness of these changes depends on updates to applications
that process radiotap data.

19 years agospell "file system" correctly
Philippe Charnier [Mon, 24 Jan 2005 20:06:16 +0000 (20:06 +0000)]
spell "file system" correctly

Approved by: ru

19 years agobeacon handling fixups for adhoc mode:
Sam Leffler [Mon, 24 Jan 2005 20:05:03 +0000 (20:05 +0000)]
beacon handling fixups for adhoc mode:
o don't reclaim any previous beacon state in ath_beacon_alloc; do it
  explicitly in ath_newstate
o reference count the node held in the beacon frame state block
o process ibss merge more intelligently; let the state machine do the
  right thing instead of explicitly setting the new bssi id
o explicitly stop tx dma before doing beacon setup to handle the ibss
  merge case

19 years agospell "file system" correctly
Philippe Charnier [Mon, 24 Jan 2005 20:01:28 +0000 (20:01 +0000)]
spell "file system" correctly

Approved by:  ru

19 years agospell "file system" correctly
Philippe Charnier [Mon, 24 Jan 2005 19:58:05 +0000 (19:58 +0000)]
spell "file system" correctly
Approved by: ru

19 years agoswitch to use bus_dmamap_load_mbuf_sg
Sam Leffler [Mon, 24 Jan 2005 19:51:59 +0000 (19:51 +0000)]
switch to use bus_dmamap_load_mbuf_sg

19 years agoo correct beacon interval calculation; the internal setting is in TU's not ms
Sam Leffler [Mon, 24 Jan 2005 19:45:59 +0000 (19:45 +0000)]
o correct beacon interval calculation; the internal setting is in TU's not ms
o replace the private macro to convert MS->TU with the common one

19 years agoo clarify that beacon interval settings are in TU's, not ms
Sam Leffler [Mon, 24 Jan 2005 19:39:07 +0000 (19:39 +0000)]
o clarify that beacon interval settings are in TU's, not ms
o add macros to convert between TU's and ms

19 years agostatically allocate the station/neighbor node table; the deferred
Sam Leffler [Mon, 24 Jan 2005 19:32:10 +0000 (19:32 +0000)]
statically allocate the station/neighbor node table; the deferred
allocation scheme introduced a race condition during device state
transitions

19 years agoThere have been a substantial number of changes to this file from the
Warner Losh [Mon, 24 Jan 2005 19:13:47 +0000 (19:13 +0000)]
There have been a substantial number of changes to this file from the
NetBSD original, so add our copyright notice as well.

19 years agoBegin the first phase of trying to add IRP support (and ultimately
Bill Paul [Mon, 24 Jan 2005 18:18:12 +0000 (18:18 +0000)]
Begin the first phase of trying to add IRP support (and ultimately
USB device support):

- Convert all of my locally chosen function names to their actual
  Windows equivalents, where applicable. This is a big no-op change
  since it doesn't affect functionality, but it helps avoid a bit
  of confusion (it's now a lot easier to see which functions are
  emulated Windows API routines and which are just locally defined).

- Turn ndis_buffer into an mdl, like it should have been. The structure
  is the same, but now it belongs to the subr_ntoskrnl module.

- Implement a bunch of MDL handling macros from Windows and use them where
  applicable.

- Correct the implementation of IoFreeMdl().

- Properly implement IoAllocateMdl() and MmBuildMdlForNonPagedPool().

- Add the definitions for struct irp and struct driver_object.

- Add IMPORT_FUNC() and IMPORT_FUNC_MAP() macros to make formatting
  the module function tables a little cleaner. (Should also help
  with AMD64 support later on.)

- Fix if_ndis.c to use KeRaiseIrql() and KeLowerIrql() instead of
  the previous calls to hal_raise_irql() and hal_lower_irql() which
  have been renamed.

The function renaming generated a lot of churn here, but there should
be very little operational effect.

19 years agoMarkup and grammar fixes.
Ruslan Ermilov [Mon, 24 Jan 2005 18:14:18 +0000 (18:14 +0000)]
Markup and grammar fixes.

19 years agoAdd an entry for Magic Ram, Inc's ETHERNET PC CARD 933926 card I just
Warner Losh [Mon, 24 Jan 2005 17:59:59 +0000 (17:59 +0000)]
Add an entry for Magic Ram, Inc's ETHERNET PC CARD 933926 card I just
won on ebay.  Also, add a pointer to the PCMCIA's web site for the
registered tuples (== manufacturer ID's).

19 years agoo Reorganize the previous delta to make it more style(9) compliant.
Maxim Konovalov [Mon, 24 Jan 2005 17:01:48 +0000 (17:01 +0000)]
o Reorganize the previous delta to make it more style(9) compliant.

Submitted by: ru

o Reduce an amount of memory we ask in advance.

19 years agoWhen "no_ccache" is set as an argument to the pam_krb5 module, don't
Robert Watson [Mon, 24 Jan 2005 16:49:50 +0000 (16:49 +0000)]
When "no_ccache" is set as an argument to the pam_krb5 module, don't
copy the acquired TGT from the in-memory cache to the on-disk cache
at login.  This was documented but un-implemented behavior.

MFC after: 1 week
PR: bin/64464
Reported and tested by: Eric van Gyzen <vangyzen at stat dot duke dot edu>

19 years agoFix spelling in a comment.
Yaroslav Tykhiy [Mon, 24 Jan 2005 15:48:00 +0000 (15:48 +0000)]
Fix spelling in a comment.

19 years agoFix NULL pointer dereference bug when parsing IPV6CP traffic.
Bruce M Simpson [Mon, 24 Jan 2005 14:56:48 +0000 (14:56 +0000)]
Fix NULL pointer dereference bug when parsing IPV6CP traffic.
This file is already off the vendor branch, and the fix will be
in future tcpdump.org vendor branch imports.

PR: bin/76497
MFC after: 1 week
Obtained from: tcpdump.org rev 1.89.2.4
Discussed with: fenner, keramida

19 years agoSave a line by unlocking before we test.
Poul-Henning Kamp [Mon, 24 Jan 2005 14:13:24 +0000 (14:13 +0000)]
Save a line by unlocking before we test.

19 years agoChange vprint() to vn_printf() which takes varargs.
Poul-Henning Kamp [Mon, 24 Jan 2005 13:58:08 +0000 (13:58 +0000)]
Change vprint() to vn_printf() which takes varargs.
Add #define for vprint() to call vn_printf().

19 years agoFix an evil typo.
Gleb Smirnoff [Mon, 24 Jan 2005 13:32:19 +0000 (13:32 +0000)]
Fix an evil typo.

Submitted by: Roselyn Lee
MFC after: 3 days

19 years agoRemove unused cred argument to ext2_reload()
Poul-Henning Kamp [Mon, 24 Jan 2005 13:31:22 +0000 (13:31 +0000)]
Remove unused cred argument to ext2_reload()

19 years agoo Try hard to guess a buffer size for a fast growing routing table.
Maxim Konovalov [Mon, 24 Jan 2005 13:27:24 +0000 (13:27 +0000)]
o Try hard to guess a buffer size for a fast growing routing table.
An approach taken from killall/killall.c.

PR: bin/76075
Submitted by: Dmitrij Tejblum
MFC after: 3 weeks

19 years agoKill the VV_OBJBUF and test the v_object for NULL instead.
Poul-Henning Kamp [Mon, 24 Jan 2005 13:13:57 +0000 (13:13 +0000)]
Kill the VV_OBJBUF and test the v_object for NULL instead.

19 years agoFix a list corruption issue in cloning device management using the
Poul-Henning Kamp [Mon, 24 Jan 2005 12:44:56 +0000 (12:44 +0000)]
Fix a list corruption issue in cloning device management using the
western strategy ("allocate first, ask questions later") so we can
extend the devmtx coverage to the clone list.

19 years agoRemove "register" keywords.
Poul-Henning Kamp [Mon, 24 Jan 2005 12:37:51 +0000 (12:37 +0000)]
Remove "register" keywords.

19 years agoRemove unused cred arg from nfs_vinvalbuf() and many bogus arguments
Poul-Henning Kamp [Mon, 24 Jan 2005 12:31:06 +0000 (12:31 +0000)]
Remove unused cred arg from nfs_vinvalbuf() and many bogus arguments
passed for it.

19 years ago- Convert so_qlen, so_incqlen, so_qlimit fields of struct socket from
Gleb Smirnoff [Mon, 24 Jan 2005 12:20:21 +0000 (12:20 +0000)]
- Convert so_qlen, so_incqlen, so_qlimit fields of struct socket from
  short to unsigned short.
- Add SYSCTL_PROC() around somaxconn, not accepting values < 1 or > U_SHRTMAX.

Before this change setting somaxconn to smth above 32767 and calling
listen(fd, -1) lead to a socket, which doesn't accept connections at all.

Reviewed by: rwatson
Reported by: Igor Sysoev

19 years agoPolish style.
Poul-Henning Kamp [Mon, 24 Jan 2005 12:19:28 +0000 (12:19 +0000)]
Polish style.

19 years agoStyle: Remove the commented out vop_foo_args replicas.
Poul-Henning Kamp [Mon, 24 Jan 2005 11:49:41 +0000 (11:49 +0000)]
Style: Remove the commented out vop_foo_args replicas.

19 years agoUpdate man pages to be in line with guidelines for IPv6 in FreeBSD.
George V. Neville-Neil [Mon, 24 Jan 2005 11:23:14 +0000 (11:23 +0000)]
Update man pages to be in line with guidelines for IPv6 in FreeBSD.

FreeBSD currently implements the most up to date IPv6 APIs for
option and route header parsing.   This checkin marks the older APIs
as deprecated and points the reader to the newer pages.

Reviewed by: Jun-ichiro Itojun
Approved by: rwatson (mentor)

19 years ago - Somehow I mangled KTR_CRITICAL.
Jeff Roberson [Mon, 24 Jan 2005 10:52:32 +0000 (10:52 +0000)]
 - Somehow I mangled KTR_CRITICAL.

Spotted by: ru

19 years ago - Regen for recent vfs syscall changes.
Jeff Roberson [Mon, 24 Jan 2005 10:50:42 +0000 (10:50 +0000)]
 - Regen for recent vfs syscall changes.

Sponsored By: Isilon Systems, Inc.

19 years ago - Change all VFS syscalls to MSTD as they all manually deal with giant
Jeff Roberson [Mon, 24 Jan 2005 10:49:26 +0000 (10:49 +0000)]
 - Change all VFS syscalls to MSTD as they all manually deal with giant
   or the appropriate filesystem locks.

Sponsored By: Isilon Systems, Inc.

19 years ago - Remove GIANT_REQUIRED where giant is no longer required.
Jeff Roberson [Mon, 24 Jan 2005 10:48:29 +0000 (10:48 +0000)]
 - Remove GIANT_REQUIRED where giant is no longer required.
 - Use VFS_LOCK_GIANT() rather than directly acquiring giant in places
   where giant is only held because vfs requires it.

Sponsored By:   Isilon Systems, Inc.

19 years ago - Don't acquire giant around calls to bufdone().
Jeff Roberson [Mon, 24 Jan 2005 10:47:46 +0000 (10:47 +0000)]
 - Don't acquire giant around calls to bufdone().

Sponsored By:   Isilon Systems, Inc.

19 years ago - Add CTR calls to trace the lifecycle of a buffer.
Jeff Roberson [Mon, 24 Jan 2005 10:47:04 +0000 (10:47 +0000)]
 - Add CTR calls to trace the lifecycle of a buffer.
 - Remove some KASSERTs which are invalid if the appropriate lock is
   not held.
 - Slightly restructure bremfree() so that it is more sane.
 - Change the flush code in bdwrite() to avoid acquiring a mutex
   whenever possible.
 - Change the flush code in bdwrite() to avoid holding the bufobj mutex
   while calling buf_countdeps().  This introduces a lock-order
   relationship with the softdep lock that can not otherwise be resolved.
 - Don't set B_DONE until bufdone() is complete, otherwise another
   processor may believe the buf is done before it is.
 - Only acquire Giant if the caller has set b_iodone.  Don't grab giant
   around normal bufdone() calls.

Sponsored By: Isilon Systems, Inc.

19 years ago - Add the tunable and sysctl for the mpsafevfs. It currently defaults
Jeff Roberson [Mon, 24 Jan 2005 10:41:01 +0000 (10:41 +0000)]
 - Add the tunable and sysctl for the mpsafevfs.  It currently defaults
   to off.
 - Protect access to mnt_kern_flag with the mointpoint mutex.
 - Remove some KASSERTs which are not legal checks without the appropriate
   locks held.
 - Use VCANRECYCLE() rather than rolling several slightly different
   checks together.
 - Return from vtryrecycle() with a recycled vnode rather than a locked
   vnode.  This simplifies some locking.
 - Remove several GIANT_REQUIRED lines.
 - Add a few KASSERTs to help with INACT debugging.

Sponsored By: Isilon Systems, Inc.

19 years ago - Add a VCANRECYCLE() which performs all the checks required to ensure
Jeff Roberson [Mon, 24 Jan 2005 10:34:58 +0000 (10:34 +0000)]
 - Add a VCANRECYCLE() which performs all the checks required to ensure
   that we are free to release a vnode.

19 years ago - Remove GIANT_REQUIRED where giant is no longer required.
Jeff Roberson [Mon, 24 Jan 2005 10:33:46 +0000 (10:33 +0000)]
 - Remove GIANT_REQUIRED where giant is no longer required.

Sponsored By: Isilon Systems, Inc.

19 years ago - Remove GIANT_REQUIRED where it is no longer required.
Jeff Roberson [Mon, 24 Jan 2005 10:32:14 +0000 (10:32 +0000)]
 - Remove GIANT_REQUIRED where it is no longer required.

Sponsored By: Isilon Systems, Inc.

19 years ago - Remove GIANT_REQUIRED where giant is no longer required.
Jeff Roberson [Mon, 24 Jan 2005 10:31:42 +0000 (10:31 +0000)]
 - Remove GIANT_REQUIRED where giant is no longer required.
 - Protect access to mnt_kern_flag with the mountpoint mutex.
 - Use the appropriate nd flags to deal with giant in vn_open_cred().
   We currently determine whether the caller is mpsafe by checking
   for a valid fdidx.  Any caller coming from user-space is now
   mpsafe and supplies a valid fd.  No kenrel callers have been
   converted to mpsafe, so this check is sufficient for now.
 - Use VFS_LOCK_GIANT instead of manual giant acquisition where
   appropriate.

Sponsored By: Isilon Systems, Inc.

19 years ago - Protect mnt_kern_flag with the mountpoint's mutex. This is required
Jeff Roberson [Mon, 24 Jan 2005 10:28:41 +0000 (10:28 +0000)]
 - Protect mnt_kern_flag with the mountpoint's mutex.  This is required
   to make the suspend related functions mpsafe.

Sponsored By: Isilon Systems, Inc.

19 years ago - Acquire and release Giant as we enter and leave filesystems which
Jeff Roberson [Mon, 24 Jan 2005 10:27:05 +0000 (10:27 +0000)]
 - Acquire and release Giant as we enter and leave filesystems which
   require it.
 - Track the status of Giant with the nd flag HASGIANT.
 - Release giant on return of namei() callers are not marked MPSAFE as
   they already own giant.

Sponsored By: Isilon Systems, Inc.

19 years ago - Change all vfs syscalls to use VFS_LOCK_GIANT(), and MPSAFE nds.
Jeff Roberson [Mon, 24 Jan 2005 10:25:44 +0000 (10:25 +0000)]
 - Change all vfs syscalls to use VFS_LOCK_GIANT(), and MPSAFE nds.
 - Move Giant acquisition into the few vfs syscalls that weren't already
   directly acquiring it.

Sponsored By: Isilon Systems, Inc.

19 years ago - Simplify the cache locking. The lock order relationship with the
Jeff Roberson [Mon, 24 Jan 2005 10:24:12 +0000 (10:24 +0000)]
 - Simplify the cache locking.  The lock order relationship with the
   vnode lock is much simpler than I originally thought it would be.
   Now, the cache lock is  always acquired before the vnode lock.
 - Provide some gotos in __getcwd() to simplify the unlocking a bit.
 - Move Giant acquisition down into __getcwd().

Sponsored By: Isilon Systems, Inc.

19 years ago - Do not use APAUSE if LK_INTERLOCK is set. We lose synchronization
Jeff Roberson [Mon, 24 Jan 2005 10:20:59 +0000 (10:20 +0000)]
 - Do not use APAUSE if LK_INTERLOCK is set.  We lose synchronization
   if the lockmgr interlock is dropped after the caller's interlock
   is dropped.
 - Change some lockmgr KTRs to be slightly more helpful.

Sponsored By: Isilon Systems, Inc.

19 years ago - Use VFS_LOCK_GIANT() in place of mtx_lock(&giant), etc.
Jeff Roberson [Mon, 24 Jan 2005 10:19:31 +0000 (10:19 +0000)]
 - Use VFS_LOCK_GIANT() in place of mtx_lock(&giant), etc.

Sponsored By: Isilon Systems, Inc.

19 years ago - Convert the global LK lock to a mutex.
Jeff Roberson [Mon, 24 Jan 2005 10:18:31 +0000 (10:18 +0000)]
 - Convert the global LK lock to a mutex.
 - Expand the scope of lk to cover not only interrupt races, but also
   top-half races, which includes many new uses over global top-half
   only data.
 - Get rid of interlocked_sleep() and use msleep or BUF_LOCK where
   appropriate.
 - Use the lk mutex in place of the various hand rolled semaphores.
 - Stop dropping the lk lock before we panic.
 - Fix getdirtybuf() callers so that they reacquire access to whatever
   softdep datastructure they were inxpecting in the failure/retry
   case.  Previously, sleeps in getdirtybuf() could leave us with
   pointers to bad memory.
 - Update handling of ffs to be compatible with ffs locking changes.

Sponsored By: Isilon Systems, Inc.

19 years ago - Initialize and destroy the per-filesystem ufs lock where appropriate.
Jeff Roberson [Mon, 24 Jan 2005 10:12:28 +0000 (10:12 +0000)]
 - Initialize and destroy the per-filesystem ufs lock where appropriate.
 - Use the buffer lock on the superblock buf to serialize calls to
   sbupdate.
 - Set the MNTK_MPSAFE flag when QUOTA is not defined in the kernel.

Sponsored By: Isilon Systems, Inc.

19 years ago - Remove GIANT_REQUIRED where giant is no longer required.
Jeff Roberson [Mon, 24 Jan 2005 10:10:47 +0000 (10:10 +0000)]
 - Remove GIANT_REQUIRED where giant is no longer required.

Sponsored By: Isilon Systems, Inc.

19 years ago - Use the ufs lock to protect fs_active.
Jeff Roberson [Mon, 24 Jan 2005 10:10:11 +0000 (10:10 +0000)]
 - Use the ufs lock to protect fs_active.

Sponsored By: Isilon Systems, Inc.

19 years ago - Acquire the ufs lock around several ffs_alloc functions that require
Jeff Roberson [Mon, 24 Jan 2005 10:09:10 +0000 (10:09 +0000)]
 - Acquire the ufs lock around several ffs_alloc functions that require
   it.

Sponsored By: Isilon Systems, Inc.

19 years ago - Don't use atomic operations to deal with the active array, instead
Jeff Roberson [Mon, 24 Jan 2005 10:08:35 +0000 (10:08 +0000)]
 - Don't use atomic operations to deal with the active array, instead
   it is now quite naturally protected by the ufsmount mutex.
 - Use the ufs lock to protect various fields in struct fs, primarily the
   cg summary needs protection to avoid allocation races.  Several
   functions have been slightly re-arranged to reduce the number of
   lock operations.
 - Adjust several functions (blkfree, freefile, etc.) to accept a
   ufsmount as an argument so that we may access the ufs lock.

Sponsored By: Isilon Systems, Inc.

19 years ago - Acquire the ufs lock when manipulating some fields of struct fs.
Jeff Roberson [Mon, 24 Jan 2005 10:04:22 +0000 (10:04 +0000)]
 - Acquire the ufs lock when manipulating some fields of struct fs.
 - Change arguments to various ffs functions to match their new
   prototypes.

Sponsored By: Isilon Systems, Inc.

19 years ago - Mark the struct fs members that require the ufsmount mutex.
Jeff Roberson [Mon, 24 Jan 2005 10:03:17 +0000 (10:03 +0000)]
 - Mark the struct fs members that require the ufsmount mutex.
 - Define some macros for manipulating the fs_active bitmap.

Sponsored By: Isilon Systems, Inc.

19 years ago - Change some function parameters so that the ufsmount structure is
Jeff Roberson [Mon, 24 Jan 2005 10:02:11 +0000 (10:02 +0000)]
 - Change some function parameters so that the ufsmount structure is
   accessable in places where the ufs lock will be needed.

Sponsored By: Isilon Systems, Inc.

19 years ago - Add a mutex to the ufsmount structure. This mutex is used to protect
Jeff Roberson [Mon, 24 Jan 2005 10:01:10 +0000 (10:01 +0000)]
 - Add a mutex to the ufsmount structure.  This mutex is used to protect
   any per-instance global data that is not already protected by a
   buf or vnode lock.  Presently, only fields in ffs's struct fs utilize
   this lock.
 - Sort some ufsmount members so that fields used for quotas are grouped
   together.  This is in anticipation of quota locking.

Sponsored By: Isilon Systems, Inc.

19 years agoForce commit to note the sponsor of the VFS smp work:
Jeff Roberson [Mon, 24 Jan 2005 09:58:23 +0000 (09:58 +0000)]
Force commit to note the sponsor of the VFS smp work:

Sponsored By: Isilon Systems, Inc.

19 years ago - Add two new flags to the nd structure. MPSAFE indicates that the
Jeff Roberson [Mon, 24 Jan 2005 09:57:35 +0000 (09:57 +0000)]
 - Add two new flags to the nd structure.  MPSAFE indicates that the
   caller may not be holding Giant, and namei() should acquire it as
   necessary.  HASGIANT is used to indicate when namei() is returning
   with a reference to a vnode that requires giant, and giant is locked.
 - Add the macro NDHASGIANT() which can be used in conjunction with
   VFS_UNLOCK_GIANT() in callers who have marked the nd with MPSAFE.

Sponsored By: Isilon Systems, Inc.

19 years ago - Add the mount flag MNTK_MPSAFE which indicates whether or not Giant
Jeff Roberson [Mon, 24 Jan 2005 09:53:46 +0000 (09:53 +0000)]
 - Add the mount flag MNTK_MPSAFE which indicates whether or not Giant
   must be held when any vnode owned by the filesystem is manipulated.
 - Add VFS_LOCK_GIANT and VFS_UNLOCK_GIANT macros which are used to
   conditionally lock and unlock Giant based on a particular mountpoint.

19 years ago - Add a new KTR class for the buffer cache.
Jeff Roberson [Mon, 24 Jan 2005 09:51:35 +0000 (09:51 +0000)]
 - Add a new KTR class for the buffer cache.

19 years agoIgnore the expected function number.
Warner Losh [Mon, 24 Jan 2005 06:54:05 +0000 (06:54 +0000)]
Ignore the expected function number.

NetBSD went this route a while ago.  FreeBSD originally tried this to
cope with multifunction cards.  However, it turns out that we're
better off not worrying about the function number, and instead worry
about the function type for the function.  This has worked well in
NetBSD, and all FreeBSD's relevant drivers have been converted.

# I'll rework the macros that specify them shortly, as soon as I can
# come up with a good, compatible way to deal...

19 years agou_intXX_t -> uintXX_t
Warner Losh [Mon, 24 Jan 2005 06:48:26 +0000 (06:48 +0000)]
u_intXX_t -> uintXX_t

19 years agoBring back WARNS to 3 for arm until I figure out how to make gcc happy.
Olivier Houchard [Mon, 24 Jan 2005 01:56:06 +0000 (01:56 +0000)]
Bring back WARNS to 3 for arm until I figure out how to make gcc happy.

19 years agoFix a dangling MKLINK from my last commit.
George V. Neville-Neil [Mon, 24 Jan 2005 01:40:16 +0000 (01:40 +0000)]
Fix a dangling MKLINK from my last commit.

Approved by: rwatson (mentor)

19 years agoDefine FE_TONEAREST, FE_TOWARDZERO, FE_UPWARD, FE_DOWNWARD and _ROUND_MASK to
Olivier Houchard [Mon, 24 Jan 2005 00:35:02 +0000 (00:35 +0000)]
Define FE_TONEAREST, FE_TOWARDZERO, FE_UPWARD, FE_DOWNWARD and _ROUND_MASK to
unbreak the build for arm.

19 years agoAdd support for the LSI 320-2E PCI-Express controller. Fix a couple of bugs
Scott Long [Sun, 23 Jan 2005 23:25:41 +0000 (23:25 +0000)]
Add support for the LSI 320-2E PCI-Express controller.  Fix a couple of bugs
in the ioctl handler.  Update the LSI copyrights for these.

Obtained from: LSI, Corp

19 years agoAdd my copyright for the locking and busdma work.
Scott Long [Sun, 23 Jan 2005 23:22:34 +0000 (23:22 +0000)]
Add my copyright for the locking and busdma work.

19 years agoReduce the global name space pollution.
Yaroslav Tykhiy [Sun, 23 Jan 2005 23:10:33 +0000 (23:10 +0000)]
Reduce the global name space pollution.
The cloner structure isn't referenced by name outside this file.

19 years agoUpdate comment to reflect the code change in the previous revision.
David Schultz [Sun, 23 Jan 2005 22:56:08 +0000 (22:56 +0000)]
Update comment to reflect the code change in the previous revision.

Noticed by: ceri

19 years agoProvide a needed argument to AT_MAKE_TAGID.
Scott Long [Sun, 23 Jan 2005 22:33:59 +0000 (22:33 +0000)]
Provide a needed argument to AT_MAKE_TAGID.

19 years agoMake sure we can boot both with and without MMU enabled.
Olivier Houchard [Sun, 23 Jan 2005 22:08:31 +0000 (22:08 +0000)]
Make sure we can boot both with and without MMU enabled.

19 years agoDefine bus_dmamap_load_buffer before bus_dmamap_load to make gcc happy.
Olivier Houchard [Sun, 23 Jan 2005 22:07:33 +0000 (22:07 +0000)]
Define bus_dmamap_load_buffer before bus_dmamap_load to make gcc happy.

19 years agoMany changes, including the following major ones:
David Schultz [Sun, 23 Jan 2005 22:05:33 +0000 (22:05 +0000)]
Many changes, including the following major ones:
- Rearrange the list of functions into categories.
- Remove the ulps column.  It was appropriate for only some
  of the functions in the list, and correct for even fewer
  of them.
- Add some new paragraphs, and remove some old ones about
  NaNs that may do more harm than good.
- Document precisions other than double-precision.

19 years agoFix compile for !KTR.
Olivier Houchard [Sun, 23 Jan 2005 21:39:23 +0000 (21:39 +0000)]
Fix compile for !KTR.

19 years agoBump the default maximum on nfsd processes from 20 to 256. Real-world
Robert Watson [Sun, 23 Jan 2005 21:34:00 +0000 (21:34 +0000)]
Bump the default maximum on nfsd processes from 20 to 256.  Real-world
measurements suggest that higher degrees of parallelism for large
numbers of clients help performance substantially.

Submitted by: Eric Anderson <anderson at centtech dot com>

19 years agoStyle cleanup: with removal of mutex operations, we can also remove
Robert Watson [Sun, 23 Jan 2005 21:11:39 +0000 (21:11 +0000)]
Style cleanup: with removal of mutex operations, we can also remove
{}'s from securelevel_gt() and securelevel_ge().

MFC after: 1 week

19 years agoWhen reading pr_securelevel from a prison, perform a lockless read,
Robert Watson [Sun, 23 Jan 2005 21:01:00 +0000 (21:01 +0000)]
When reading pr_securelevel from a prison, perform a lockless read,
as it's an integer read operation and the resulting slight race is
acceptable.

MFC after: 1 week

19 years agoWhen retrieving the current per-jails securelevel for a sysctl read,
Robert Watson [Sun, 23 Jan 2005 20:59:19 +0000 (20:59 +0000)]
When retrieving the current per-jails securelevel for a sysctl read,
don't acquire the prison mutex, as it's an integer read and races
here don't make a difference.

MFC after: 1 week

19 years agoCorrectly move the packet header in ip_insertoptions().
Alan Cox [Sun, 23 Jan 2005 19:43:46 +0000 (19:43 +0000)]
Correctly move the packet header in ip_insertoptions().

Reported by: Anupam Chanda
Reviewed by: sam@
MFC after: 2 weeks

19 years agoAttempt to describe the race conditions that must be considered
Ian Dowse [Sun, 23 Jan 2005 17:42:48 +0000 (17:42 +0000)]
Attempt to describe the race conditions that must be considered
when using the callout subsystem. Show how the callout_pending(),
callout_active() and callout_deactivate() macros can be used to
achieve simpler race-free callout semantics in many situations.

19 years ago- Document ldexpf().
David Schultz [Sun, 23 Jan 2005 16:49:49 +0000 (16:49 +0000)]
- Document ldexpf().
- Although ldexp() is in libc for backwards compatibility, ldexpf() is
  in its proper place in libm.  Document both as being in libm.
- The ldexp() and ldexpf() functions conform to C99.

19 years ago- Document frexpf().
David Schultz [Sun, 23 Jan 2005 16:49:40 +0000 (16:49 +0000)]
- Document frexpf().
- Neither frexp() nor frexpf() set errno.
- Although frexp() is in libc for backwards compatibility, frexpf() is
  in its proper place in libm.  Document both as being in libm.
- The frexp() and frexpf() functions conform to C99.

19 years agoWe cannot use sed(1), because rc.d/gbde has to be called before
Pawel Jakub Dawidek [Sun, 23 Jan 2005 16:43:55 +0000 (16:43 +0000)]
We cannot use sed(1), because rc.d/gbde has to be called before
rc.d/mountcritlocal and sed(1) is placed in /usr/bin/. Other useful tools
for this task are also placed in /usr/ (tr(1), awk(1)), so I implemented
local_tr() function which works simlar to tr(1).

Reported by: Amir Shalem <amir@boom.org.il>
MFC after: 1 week

19 years agoFix whitespace
Scott Long [Sun, 23 Jan 2005 16:13:10 +0000 (16:13 +0000)]
Fix whitespace

19 years agoSubmitted by: George V. Neville-Neil (gnn at freebsd dot org)
George V. Neville-Neil [Sun, 23 Jan 2005 16:02:48 +0000 (16:02 +0000)]
Submitted by: George V. Neville-Neil (gnn at freebsd dot org)
Reviewed by: Kame Project (including Itojun-san, Jinmei-san and Suzuki-san)
Approved by: Robert Watson (robert at freebsd dot org)
Obtained from: Kame Project and OpenBSD

Replace manual pages that may have violated the IETF's Copyright.

All come from the Kame tree.

Several were from OpenBSD except for ip6.4, and the inet6* pages which were
rewritten by me.

All of the text is new and drawn from reading the code and
documentation.

19 years agoThe final argument to verify_krb_v5_tgt() is the debug flag, not the
Robert Watson [Sun, 23 Jan 2005 15:57:07 +0000 (15:57 +0000)]
The final argument to verify_krb_v5_tgt() is the debug flag, not the
ticket forwardable flag, so key generation of debugging output to
"debug" rather than "forwardable".

Update copyright.

MFC after: 3 days

19 years agoIf x == y, return y, not x. C99 (though not IEEE 754) requires that
David Schultz [Sun, 23 Jan 2005 15:46:22 +0000 (15:46 +0000)]
If x == y, return y, not x.  C99 (though not IEEE 754) requires that
nextafter(+0.0, -0.0) returns -0.0 and nextafter(-0.0, +0.0) returns +0.0.

19 years agoSubmitted by: George V. Neville-Neil (gnn at freebsd dot org)
George V. Neville-Neil [Sun, 23 Jan 2005 15:41:10 +0000 (15:41 +0000)]
Submitted by: George V. Neville-Neil (gnn at freebsd dot org)
Approved by: Robert Watson (robert at freebsd dot org)

Remove files in preparation for replacement with totally new versions
of the manual pages.

Update the Makefile to handle the new file to be added.

19 years agoMinor white space tweak.
Robert Watson [Sun, 23 Jan 2005 15:28:02 +0000 (15:28 +0000)]
Minor white space tweak.

MFC after: 3 days

19 years agoRemove an obsoleted comment about struct versions.
Robert Watson [Sun, 23 Jan 2005 14:26:09 +0000 (14:26 +0000)]
Remove an obsoleted comment about struct versions.

MFC after: 3 days
Pointed out by: trhodes

19 years agoAccording to style.Makefile(5):
Xin LI [Sun, 23 Jan 2005 12:29:46 +0000 (12:29 +0000)]
According to style.Makefile(5):
WARNS?= should appear before CFLAGS

Reviewed by: ru

19 years agoAdd code to do better auto detection of tuner types etc.
Julian Elischer [Sun, 23 Jan 2005 07:13:09 +0000 (07:13 +0000)]
Add code to do better auto detection of tuner types etc.

PR: kern/75831
Submitted by: Branko Lankester <branko@euro.net>
MFC after: 1 week

19 years agoRemember to snag firmware for the DELL OEM (6312) card
Matt Jacob [Sun, 23 Jan 2005 06:37:28 +0000 (06:37 +0000)]
Remember to snag firmware for the DELL OEM (6312) card

MFC after: 2 days

19 years agoAdd some macros for inserting tag ids.
Matt Jacob [Sun, 23 Jan 2005 06:28:49 +0000 (06:28 +0000)]
Add some macros for inserting tag ids.

MFC after: 2 weeks

19 years agoMacroize the making of tag ids.
Matt Jacob [Sun, 23 Jan 2005 06:28:08 +0000 (06:28 +0000)]
Macroize the making of tag ids.

MFC after: 2 weeks

19 years agoRoll minor number.
Matt Jacob [Sun, 23 Jan 2005 06:27:05 +0000 (06:27 +0000)]
Roll minor number.

MFC after: 2 weeks

19 years agoDon't set ZIO for 23XX for target mode (use fast posting instead).
Matt Jacob [Sun, 23 Jan 2005 06:26:45 +0000 (06:26 +0000)]
Don't set ZIO for 23XX for target mode (use fast posting instead).
Use the correct number of handles for multihandle returns.

Very, very, rarely on some SMP systems we've seen an 'unstable' type
in the response queue. I dunno whether or not it's a bug in our
handling, or whether there's a cache incoherency issue, but
try to guard against it.

MFC after: 2 weeks