]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoThis commit was generated by cvs2svn to compensate for changes in r154184,
harti [Tue, 10 Jan 2006 11:59:31 +0000 (11:59 +0000)]
This commit was generated by cvs2svn to compensate for changes in r154184,
which included commits to RCS files with non-trunk default branches.

18 years agoVendor fix: the routing table can change while we are fetching it from
harti [Tue, 10 Jan 2006 11:59:31 +0000 (11:59 +0000)]
Vendor fix: the routing table can change while we are fetching it from
the kernel. Instead of complaining if we get an ENOMEM (meaning it got
larger than our buffer is) reallocate the buffer and loop.

Submitted by: maxim

18 years agoThis commit was generated by cvs2svn to compensate for changes in r154182,
harti [Tue, 10 Jan 2006 11:52:51 +0000 (11:52 +0000)]
This commit was generated by cvs2svn to compensate for changes in r154182,
which included commits to RCS files with non-trunk default branches.

18 years agoVendor fix: initialize the flag field of a newly created node to be 0.
harti [Tue, 10 Jan 2006 11:52:51 +0000 (11:52 +0000)]
Vendor fix: initialize the flag field of a newly created node to be 0.

Submitted by: jasone

18 years agoThis commit was generated by cvs2svn to compensate for changes in r154180,
harti [Tue, 10 Jan 2006 11:49:26 +0000 (11:49 +0000)]
This commit was generated by cvs2svn to compensate for changes in r154180,
which included commits to RCS files with non-trunk default branches.

18 years agoVendor fix: make the default read and write communities NULL. This
harti [Tue, 10 Jan 2006 11:49:26 +0000 (11:49 +0000)]
Vendor fix: make the default read and write communities NULL. This
basically disables any access unless other strings are set in the config
file. Note, that there is no way to set the communities back to NULL once
they're set to something not NULL.

18 years agoThis commit was generated by cvs2svn to compensate for changes in r154178,
harti [Tue, 10 Jan 2006 11:47:56 +0000 (11:47 +0000)]
This commit was generated by cvs2svn to compensate for changes in r154178,
which included commits to RCS files with non-trunk default branches.

18 years agoVendor patch: fix a bug when parsing the include path.
harti [Tue, 10 Jan 2006 11:47:56 +0000 (11:47 +0000)]
Vendor patch: fix a bug when parsing the include path.

18 years agoAdd a (disabled) configuration line to enable the HOST-RESOURCES MIB.
harti [Tue, 10 Jan 2006 11:43:25 +0000 (11:43 +0000)]
Add a (disabled) configuration line to enable the HOST-RESOURCES MIB.

18 years agoMove the old BSD4.3 tty compatibility from (!BURN_BRIDGES && COMPAT_43)
phk [Tue, 10 Jan 2006 09:19:10 +0000 (09:19 +0000)]
Move the old BSD4.3 tty compatibility from (!BURN_BRIDGES && COMPAT_43)
to COMPAT_43TTY.

Add COMPAT_43TTY to NOTES and */conf/GENERIC

Compile tty_compat.c only under the new option.

Spit out
#warning "Old BSD tty API used, please upgrade."
if ioctl_compat.h gets #included from userland.

18 years agoMore thorough fixes to enable inverted external amplifier sense flag.
ariff [Tue, 10 Jan 2006 06:52:59 +0000 (06:52 +0000)]
More thorough fixes to enable inverted external amplifier sense flag.
Instead of dragging the entire ICH4/82801DB into this mess, select
only few boards based on pci subdevice / subvendor.

Tested by: Daisuke Orikasa <luxury-acura-3.5rl at nifty.com>
MFC after: 3 days

18 years agoAdd functions and macros and refactor code to make it easier to manage
scottl [Tue, 10 Jan 2006 06:31:12 +0000 (06:31 +0000)]
Add functions and macros and refactor code to make it easier to manage
fast taskqueues.  The following have been added:

TASKQUEUE_FAST_DEFINE() - create a global task queue.
    an arbitrary execution context.
TASKQUEUE_FAST_DEFINE_THREAD() - create a global taskqueue that uses a
    dedicated kthread.
taskqueue_create_fast() - create a local/private taskqueue.

These are all complimentary of the standard taskqueue functions.  They are
primarily useful for fast interrupt handlers that can only use spinlock for
synchronization.

I personally think that the taskqueue API is starting to get too narrow and
hairy, but fixing it will require a major redesign on the API.  Such a
redesign would be good but would break compatibility with FreeBSD 6.x, so
it really isn't desirable at this time.

Submitted by: sam

18 years ago/etc/crontab is similar enough to parse as correct if you run
brooks [Tue, 10 Jan 2006 05:56:32 +0000 (05:56 +0000)]
/etc/crontab is similar enough to parse as correct if you run
"crontab /etc/crontab", but not the same format due to the who field.
Add some limited anti-foot-shooting support and refuse to load
/etc/crontab as someone's crontab.  Users wishing shoot their foot in
this manner may copy /etc/crontab elsewhere. :)

MFC After: 1 week

18 years agoMention the -b flag in the SYNOPSIS.
brooks [Tue, 10 Jan 2006 05:44:11 +0000 (05:44 +0000)]
Mention the -b flag in the SYNOPSIS.

MFC after: 1 week

18 years agoWhen we give up on an interface, use the arp(8) command to remove all
brooks [Tue, 10 Jan 2006 05:33:33 +0000 (05:33 +0000)]
When we give up on an interface, use the arp(8) command to remove all
entries from the interface rather than using ifconfig's delete command.
This preserves non-dhclient configured addresses (though they are wiped
out when dhclient is restarted).

MFC after: 1 week

18 years agoRemove code describing pre 5.x system
imp [Tue, 10 Jan 2006 05:21:01 +0000 (05:21 +0000)]
Remove code describing pre 5.x system

18 years agoAllow the -i <interface> option with -d -a to allow all arp entries for
brooks [Tue, 10 Jan 2006 05:17:16 +0000 (05:17 +0000)]
Allow the -i <interface> option with -d -a to allow all arp entries for
a given interface to be removed.

18 years agoAllow users to add aliases to the interface.
brooks [Tue, 10 Jan 2006 04:53:20 +0000 (04:53 +0000)]
Allow users to add aliases to the interface.

PR: bin/87465 (different solution used)
MFC after: 1 week

18 years agoUse macro STATIC_LIB_REQUIRE to declare a symbol should be linked into
davidxu [Tue, 10 Jan 2006 04:53:03 +0000 (04:53 +0000)]
Use macro STATIC_LIB_REQUIRE to declare a symbol should be linked into
static binary.

18 years agoDon't free the ap object if it was never created.
scottl [Tue, 10 Jan 2006 01:55:17 +0000 (01:55 +0000)]
Don't free the ap object if it was never created.

Submitted by: jkim

18 years agoHook ufoma module to build.
takawata [Tue, 10 Jan 2006 00:54:18 +0000 (00:54 +0000)]
Hook ufoma module to build.

Pointed out by:thompsa

18 years agoAdd marker vnodes to ensure that all vnodes associated with the mount point are
tegge [Mon, 9 Jan 2006 20:42:19 +0000 (20:42 +0000)]
Add marker vnodes to ensure that all vnodes associated with the mount point are
iterated over when using MNT_VNODE_FOREACH.

Reviewed by: truckman

18 years agoFix -r causing SIGSEGV due to parse_args() being called before font_current is set.
flz [Mon, 9 Jan 2006 19:54:28 +0000 (19:54 +0000)]
Fix -r causing SIGSEGV due to parse_args() being called before font_current is set.

Approved by: krion
MFC after: 3 days

18 years agoIf the lock passed to getdirtybuf() is the softdep lock then the background
tegge [Mon, 9 Jan 2006 19:32:21 +0000 (19:32 +0000)]
If the lock passed to getdirtybuf() is the softdep lock then the background
write completed wakeup could be missed.  Close the race by grabbing the lock
normally used for protection of bp->b_xflags.

Reviewed by: truckman

18 years agoBroaden scope of softdep_worklist_busy rwlock protection of softdep processing
tegge [Mon, 9 Jan 2006 19:16:56 +0000 (19:16 +0000)]
Broaden scope of softdep_worklist_busy rwlock protection of softdep processing
to avoid some dependencies being missed by softdep_flushworklist().

Reviewed by: truckman

18 years agoAdd documents URL.
takawata [Mon, 9 Jan 2006 19:07:04 +0000 (19:07 +0000)]
Add documents URL.

18 years agoObtain mount point lock before restarting sync loop if vget() failed.
tegge [Mon, 9 Jan 2006 18:57:35 +0000 (18:57 +0000)]
Obtain mount point lock before restarting sync loop if vget() failed.

Reviewed by: truckman

18 years agoAdd man page for ufoma(4) in poor English and formatting.
takawata [Mon, 9 Jan 2006 18:56:11 +0000 (18:56 +0000)]
Add man page for ufoma(4) in poor English and formatting.

18 years agoAdd -K option to pkg_add and pkg_info.
flz [Mon, 9 Jan 2006 18:27:21 +0000 (18:27 +0000)]
Add -K option to pkg_add and pkg_info.
This option saves packages to PKGDIR (if defined or current directory by default)
as they are downloaded.
Silent a warning when -n is used and package has a +DISPLAY file.

Approved by: krion
MFC after: 1 week

18 years agoo Fix typo in the define: s/MRAK_INT_GEN/MARK_INT_GEN/. The typo
maxim [Mon, 9 Jan 2006 18:07:06 +0000 (18:07 +0000)]
o Fix typo in the define: s/MRAK_INT_GEN/MARK_INT_GEN/.  The typo
was harmless because the define is not used in coda_vfsops.c.

Submitted by: Hugo Meiland

18 years agoAdd ufoma drivers in 'files', too.
takawata [Mon, 9 Jan 2006 17:49:21 +0000 (17:49 +0000)]
Add ufoma drivers in 'files', too.

18 years agoAdd FOMA (NTT DoCoMo 3G mobile phone system) driver.
takawata [Mon, 9 Jan 2006 17:46:36 +0000 (17:46 +0000)]
Add FOMA (NTT DoCoMo 3G mobile phone system) driver.
This is based on MCPC USB mobile phone guide line (MCPC-GL005)
Some other 3G system or so will work with this driver.
Kyocera PHS terminal (a.k.a. Kyopon) is known to work, which
is now supported by umodem(4) driver.

18 years agoUpdate monitoring support:
sam [Mon, 9 Jan 2006 17:13:20 +0000 (17:13 +0000)]
Update monitoring support:
o record tsf in tx+rx frames
o switch from raw rssi to dbm for signal data and record both
  signal and noise floor data (hacked for now to assume a fixed
  noise floor; is correct with new hal)
o add monpass sysctl to control which rx'd frames are passed
  up with errors; especially useful to see frames with CRC errors
o mark 'd packets w/ a CRC error with radiotap's BADFCS flag

Also add placeholder code for calibrating the noise floor when
using newer hals.

Reviewed by: avatar
MFC after: 1 week

18 years agoadd flag to tag frames w/ a known bad FCS
sam [Mon, 9 Jan 2006 17:04:56 +0000 (17:04 +0000)]
add flag to tag frames w/ a known bad FCS

Obtained from: netbsd
MFC after: 1 week

18 years agoForced commit because I lost the commit message in the previous commit:
harti [Mon, 9 Jan 2006 13:01:26 +0000 (13:01 +0000)]
Forced commit because I lost the commit message in the previous commit:

This is the implementation of the HOSTRES MIB that was developed by
Victor during SoC 2005 with some stylification by philip@ and harti@.

Submitted by: Victor Cruceru <soc-victor@freebsd.org>
Reviewed by: philip, harti

18 years agoKill empty line.
joel [Mon, 9 Jan 2006 12:51:45 +0000 (12:51 +0000)]
Kill empty line.

18 years agoConnect the HOSTRES MIB to the build.
harti [Mon, 9 Jan 2006 12:34:07 +0000 (12:34 +0000)]
Connect the HOSTRES MIB to the build.

18 years agomsg
harti [Mon, 9 Jan 2006 12:33:45 +0000 (12:33 +0000)]
msg

18 years agoTurn on inverted external amplifier sense flags for ICH4/82801DB.
ariff [Mon, 9 Jan 2006 11:20:37 +0000 (11:20 +0000)]
Turn on inverted external amplifier sense flags for ICH4/82801DB.

PR: kern/66422, kern/75687, kern/84471
MFC after: 2 days

18 years agoadded a note about the assumption for m->m_pkthdr.rcvif
suz [Mon, 9 Jan 2006 09:08:43 +0000 (09:08 +0000)]
added a note about the assumption for m->m_pkthdr.rcvif

Obtained from: KAME
MFC After: 1 day

18 years agoRescue pthread_set_name_np for compatible reason, remove unused code.
davidxu [Mon, 9 Jan 2006 08:07:22 +0000 (08:07 +0000)]
Rescue pthread_set_name_np for compatible reason, remove unused code.

18 years agoTweak macro THR_LOCK_RELEASE a bit for non-PTHREAD_INVARIANTS case.
davidxu [Mon, 9 Jan 2006 07:32:22 +0000 (07:32 +0000)]
Tweak macro THR_LOCK_RELEASE a bit for non-PTHREAD_INVARIANTS case.

18 years agoBy popular demand, move __HAVE_ACPI and __PCI_REROUTE_INTERRUPT into
imp [Mon, 9 Jan 2006 06:05:57 +0000 (06:05 +0000)]
By popular demand, move __HAVE_ACPI and __PCI_REROUTE_INTERRUPT into
param.h.  Per request, I've placed these just after the
_NO_NAMESPACE_POLLUTION ifndef.  I've not renamed anything yet, but
may since we don't need the __.

Submitted by: bde, jhb, scottl, many others.

18 years agoFix obvious capabilities (rate) violation. Should be 5500, not 4000.
ariff [Mon, 9 Jan 2006 06:05:25 +0000 (06:05 +0000)]
Fix obvious capabilities (rate) violation. Should be 5500, not 4000.

MFC after: 1 day

18 years agoReturn real detached state.
davidxu [Mon, 9 Jan 2006 03:59:51 +0000 (03:59 +0000)]
Return real detached state.

18 years agoEnable NO_GETMAXLUN quirk.
flz [Mon, 9 Jan 2006 01:33:53 +0000 (01:33 +0000)]
Enable NO_GETMAXLUN quirk.

PR: usb/90670
Submitted by: Wojciech A. Koszek <dunstan@freebsd.czest.pl>
Approved by: iedowse
MFC after: 1 week

18 years agoo DragonFly 1.4.0 added.
maxim [Sun, 8 Jan 2006 20:23:35 +0000 (20:23 +0000)]
o DragonFly 1.4.0 added.

18 years agoThere should be no need to retry when the CCB status code is
iedowse [Sun, 8 Jan 2006 20:04:55 +0000 (20:04 +0000)]
There should be no need to retry when the CCB status code is
CAM_LUN_INVALID or CAM_TID_INVALID. Retries were being triggered
here when a umass device was unplugged, and while the retries
themselves are probably harmless, they complicated finding the real
SIM removal problems.

18 years agoAdd support for Canon CanoScan D660U.
netchild [Sun, 8 Jan 2006 14:17:04 +0000 (14:17 +0000)]
Add support for Canon CanoScan D660U.

PR: 87395
Submitted by: Eirik Mikkelsen <eirik@bsdbox.org>

18 years agoLangauge fixes required to disambiguate some statements.
gnn [Sun, 8 Jan 2006 13:59:44 +0000 (13:59 +0000)]
Langauge fixes required to disambiguate some statements.

Explain the examples.

18 years agoBump .Dd date after latest changes.
flz [Sun, 8 Jan 2006 13:20:57 +0000 (13:20 +0000)]
Bump .Dd date after latest changes.

Approved by: simon

18 years ago- Add an entry for Acer Acerscan 1240U.
flz [Sun, 8 Jan 2006 13:14:38 +0000 (13:14 +0000)]
- Add an entry for Acer Acerscan 1240U.

Reminded by: simon
Approved by: simon
MFC after: 3 days

18 years agoAdd a mechanism to include files added by ports which contain
dougb [Sun, 8 Jan 2006 10:15:31 +0000 (10:15 +0000)]
Add a mechanism to include files added by ports which contain
the names of directories to include in the base ldconfig script.
This will eliminate the need for each port to install its own
boot script which does nothing but ldocnfig a given directory.

This code was developed by flz (ports committer), discussed on
freebsd-rc@, and modified slightly by me.

Submitted by: flz
Reviewed by: brooks

18 years agoFix a bug recently introduced, the _thread_active_count should be
davidxu [Sun, 8 Jan 2006 10:13:18 +0000 (10:13 +0000)]
Fix a bug recently introduced, the _thread_active_count should be
decreased if thread can not be created.

18 years agoIt was always intended that regular expression matching be case
imp [Sun, 8 Jan 2006 05:18:36 +0000 (05:18 +0000)]
It was always intended that regular expression matching be case
insensitive.  Make it so.

18 years agoRemove the UQ_NO_OPEN_CLEARSTALL quirk, as this is now the default
iedowse [Sun, 8 Jan 2006 03:34:29 +0000 (03:34 +0000)]
Remove the UQ_NO_OPEN_CLEARSTALL quirk, as this is now the default
behaviour for all devices.

18 years agoDon't perform an endpoint stall clear every time a pipe is opened.
iedowse [Sun, 8 Jan 2006 03:27:43 +0000 (03:27 +0000)]
Don't perform an endpoint stall clear every time a pipe is opened.
This should not be necessary, and it is known to confuse certain
devices.

Obtained from: NetBSD
Requested by: many

18 years agoAllow background threads to be suspended.
davidxu [Sun, 8 Jan 2006 01:49:31 +0000 (01:49 +0000)]
Allow background threads to be suspended.

18 years agoTry to reduce total time needed for suspending all threads,
davidxu [Sun, 8 Jan 2006 01:48:51 +0000 (01:48 +0000)]
Try to reduce total time needed for suspending all threads,
first broadcast signals to all threads, then enter a wait loop.

18 years agoAdd Product ID for Acerscan 1240u and the corresponding entry in uscanner.c.
flz [Sun, 8 Jan 2006 01:43:00 +0000 (01:43 +0000)]
Add Product ID for Acerscan 1240u and the corresponding entry in uscanner.c.

PR: usb/91466
Submitted by: Cameron Lerch <cam@zarya.org>
MFC after: 3 days
Approved by: ssouhlal

18 years agoIf destroying a spinlock, make sure that it is exited properly.
scottl [Sun, 8 Jan 2006 00:18:34 +0000 (00:18 +0000)]
If destroying a spinlock, make sure that it is exited properly.

Submitted by: jhb
MFC After: 3 days

18 years agoWhen using @cwd %%FOO%%, we must ensure to return in the original
krion [Sat, 7 Jan 2006 22:10:58 +0000 (22:10 +0000)]
When using @cwd %%FOO%%, we must ensure to return in the original
prefix later, but doing so with @cwd %%OLDPREFIX%% (having
PLIST_SUB+="OLDPREFIX=${PREFIX}") hardcodes the value in the packing
list. That's not really a problem when dealing with ports but that's
a problem with packages since pkg_add -p option only overrides the
first @cwd occurrence.

This patch allow us to use @cwd without any argument. If no
directory argument is given, it will set current working directory
to the first prefix given by the @cwd command.

PR: bin/77212
Submitted by: flz

18 years agoWhile reviewing if_sn in an attempt to understand network drivers
imp [Sat, 7 Jan 2006 19:29:25 +0000 (19:29 +0000)]
While reviewing if_sn in an attempt to understand network drivers
better, I discovered sn doing too many pointer dereferences.  This
driver would do silly things like:
sn_foo(struct ifnet *ifp)
{
struct sn_softc *sc = ifp->if_softc;

sc->ifp->mumble
/* Other stuff */
}

while /* other stuff */ usually needed sc, the extra deref isn't
needed.  Eliminate a few dozen of them.

18 years ago- Mention the size of the additional header
pav [Sat, 7 Jan 2006 19:17:13 +0000 (19:17 +0000)]
- Mention the size of the additional header

PR: docs/85867
Submitted by: dinoex
MFC after: 1 week

18 years agoRevert an untested local change that crept in with the lo_class changes
jhb [Sat, 7 Jan 2006 14:03:15 +0000 (14:03 +0000)]
Revert an untested local change that crept in with the lo_class changes
and subsequently broke the build.  This change is supposed to fix the
case where doing a mtx_destroy() off a spin mutex while you hold it fails.
If it had been tested I would just leave it in, but it hasn't been tested
yet, so it will have to wait until later.

18 years agoRemove functions i386_get_gsbase and i386_set_gsbase, they were already
davidxu [Sat, 7 Jan 2006 06:01:43 +0000 (06:01 +0000)]
Remove functions i386_get_gsbase and i386_set_gsbase, they were already
in libc.

18 years agoAdd codec id support for Analog Device AD1986 AC'97 codec.
ariff [Sat, 7 Jan 2006 05:20:46 +0000 (05:20 +0000)]
Add codec id support for Analog Device AD1986 AC'97 codec.

Submitted by: UMENO Takashi <umeno at rr.iij4u.or.jp>
PR: kern/80234
MFC after: 2 days

18 years agoAdd a new feature to thr_kill, if thread ID argument is -1, send
davidxu [Sat, 7 Jan 2006 03:15:21 +0000 (03:15 +0000)]
Add a new feature to thr_kill, if thread ID argument is -1, send
signals to all threads except current sender.

18 years agoTrying to fix compilation bustage introduced in rev1.160 by converting
avatar [Sat, 7 Jan 2006 02:07:08 +0000 (02:07 +0000)]
Trying to fix compilation bustage introduced in rev1.160 by converting
a missing lo_class to LO_CLASSINDEX().

18 years agoSet the siginfo si_addr field, and also the mysterious 3rd parameter
grehan [Sat, 7 Jan 2006 01:55:12 +0000 (01:55 +0000)]
Set the siginfo si_addr field, and also the mysterious 3rd parameter
to old-style signals, to be the DAR register for DSI miss exceptions.
This gives the address of the access rather than the instruction
address. The behaviour is now the same as on i386.

Found by:  libsigsegv tests

18 years agoFix FD_ISSET() on LP64 platforms. The FD_ISSET() function/macro is
marcel [Fri, 6 Jan 2006 22:12:46 +0000 (22:12 +0000)]
Fix FD_ISSET() on LP64 platforms. The FD_ISSET() function/macro is
defined to return an int, but on LP64 platforms the return value of
FD_ISSET() for file descriptors with a bit-index larger than 31 would
not fit an int (due to __fd_mask being defined as an unsigned long).
The fix is to explicitly test against 0.

PR: ia64/91421
Submitted by: Tanaka Akira (akr at m17n dot org)
MFC after: 1 week

18 years agothe geom_fox MLINK should not have been there.
wilko [Fri, 6 Jan 2006 20:55:28 +0000 (20:55 +0000)]
the geom_fox MLINK should not have been there.

Pointed out by: brueffer

18 years agoMake "portsnap extract" automatically create ${PORTSDIR} if necessary
cperciva [Fri, 6 Jan 2006 20:39:11 +0000 (20:39 +0000)]
Make "portsnap extract" automatically create ${PORTSDIR} if necessary
instead of complaining that "Directory does not exist or is not
writable".

Suggested by: {tlp, siep} via IRC
MFC after: 1 week

18 years ago- Update copyright years from the Specialix SDK.
jhb [Fri, 6 Jan 2006 20:17:48 +0000 (20:17 +0000)]
- Update copyright years from the Specialix SDK.
- Update comment as this firmware is not used for the SX cards, they use
  the si3_t225 firmware instead.

18 years agohookup geom_fox(4)
wilko [Fri, 6 Jan 2006 20:05:55 +0000 (20:05 +0000)]
hookup geom_fox(4)

18 years agoAdd manual page for the geom_fox multipath driver.
wilko [Fri, 6 Jan 2006 20:02:44 +0000 (20:02 +0000)]
Add manual page for the geom_fox multipath driver.

Review kindly provided by: phk
Abuse of mandoc bravely corrected by: ru

18 years agoUpdate the firmware image used for the SIJET cards to the latest available
jhb [Fri, 6 Jan 2006 19:58:08 +0000 (19:58 +0000)]
Update the firmware image used for the SIJET cards to the latest available
in the SDK from Specialix/Perle.  The prior version was
JET.BIN Version 3.0.6 Beta I and the new version is JET__.BIN Version 4.0.1.

MFC after: 1 week

18 years ago- Fix cards with multiple modules. Prior to this, the ports on the various
jhb [Fri, 6 Jan 2006 19:56:12 +0000 (19:56 +0000)]
- Fix cards with multiple modules.  Prior to this, the ports on the various
  modules would have overlapping names.
- Only create /dev/si_control for unit 0.

Tested by: Joerg Lehners Joerg dot Lehners at informatik dot
uni-oldenburg dot de (on 6.x)
MFC after: 1 week

18 years agoo Document the possibility of putting 'b' in the flag field.
ceri [Fri, 6 Jan 2006 19:39:16 +0000 (19:39 +0000)]
o Document the possibility of putting 'b' in the flag field.
  While we don't use the NC_BROADCAST value of nc_flag anywhere in the
  RPC code, it is parseable by getnetconfigent(3) from /etc/netconfig.

o Clean up some "see below"'s that were cut and pasted from netconfig.h.

18 years ago- Make pcib_devclass private to sys/dev/pci/pci_pci.c and change all the
jhb [Fri, 6 Jan 2006 19:22:19 +0000 (19:22 +0000)]
- Make pcib_devclass private to sys/dev/pci/pci_pci.c and change all the
  various pcib drivers to use their own private devclass_t variables for
  their modules.
- Use the DEFINE_CLASS_0() macro to declare drivers for the various pcib
  drivers while I'm here.

18 years agoNote shrinkage of lock_object and the subsequent widespread kernel ABI
jhb [Fri, 6 Jan 2006 19:04:39 +0000 (19:04 +0000)]
Note shrinkage of lock_object and the subsequent widespread kernel ABI
breakage.

18 years agoTrim another pointer from struct lock_object (and thus from struct mtx and
jhb [Fri, 6 Jan 2006 18:07:32 +0000 (18:07 +0000)]
Trim another pointer from struct lock_object (and thus from struct mtx and
struct sx).  Instead of storing a direct pointer to a our lock_class
struct in lock_object, reserve 4 bits in the lo_flags field to serve as an
index into a global lock_classes array that contains pointers to the lock
classes.  Only debugging code such as WITNESS or INVARIANTS checks and KTR
logging need to access the lock_class member, so this shouldn't add any
overhead to production kernels.  It might add some slight overhead to
kernels using those debug options however.

As with the previous set of changes to lock_object, this is going to
completely obliterate the kernel ABI, so be sure to recompile all your
modules.

18 years agoReduce the scope of one #ifdef to avoid duplicating a SYSCTL_INT() macro
jhb [Fri, 6 Jan 2006 18:03:45 +0000 (18:03 +0000)]
Reduce the scope of one #ifdef to avoid duplicating a SYSCTL_INT() macro
and trim another unneeded #ifdef (it was just around a macro that is
already conditionally defined).

18 years agoGet rid of the gv_bioq hack in most parts of the I/O path and
le [Fri, 6 Jan 2006 18:03:17 +0000 (18:03 +0000)]
Get rid of the gv_bioq hack in most parts of the I/O path and
use the standard bioq structures.

18 years agoFix various places that were testing td_critnest to see if interrupts
jhb [Fri, 6 Jan 2006 18:02:12 +0000 (18:02 +0000)]
Fix various places that were testing td_critnest to see if interrupts
should remain disabled during a trap or not to check
td_md.md_spinlock_count instead.

18 years agoReturn error from fget_write() rather than hardcoding EBADF now that
jhb [Fri, 6 Jan 2006 16:34:22 +0000 (16:34 +0000)]
Return error from fget_write() rather than hardcoding EBADF now that
fget_write() DTRT.

Requested by: bde

18 years agoReturn EBADF rather than EINVAL for FWRITE failure as per POSIX.
jhb [Fri, 6 Jan 2006 16:30:30 +0000 (16:30 +0000)]
Return EBADF rather than EINVAL for FWRITE failure as per POSIX.

MFC after: 1 week

18 years agoBe a little more forgiving of lame BIOS writers. If a link device that
jhb [Fri, 6 Jan 2006 16:14:32 +0000 (16:14 +0000)]
Be a little more forgiving of lame BIOS writers.  If a link device that
doesn't have any actual interrupts is listed in a _PRT entry, only print
a warning rather than panic'ing when we walk the _PRT's to build up count
of entries that reference a given link (the counts are used as weights so
that we can attempt to balance the load across IRQs used by link devices).
Instead, only panic if we attempt to use the _PRT entry to route an
interrupt for a device.

PR: i386/89545
Tested by: anders

18 years agoAdd missing ' and '
phk [Fri, 6 Jan 2006 11:31:59 +0000 (11:31 +0000)]
Add missing ' and '

Submitted by: simon

18 years agoMake this more readable and add more devices.
phk [Fri, 6 Jan 2006 11:11:03 +0000 (11:11 +0000)]
Make this more readable and add more devices.

Partially from: mich@FreeBSD.org

18 years agoFix locking violation, causing frantic diagnostic messages during boot.
ariff [Fri, 6 Jan 2006 10:36:55 +0000 (10:36 +0000)]
Fix locking violation, causing frantic diagnostic messages during boot.

Reported by: [1] julian
MFC after: 3 days

[1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003408.html

18 years agoAnother major fixes and enhancements:
ariff [Fri, 6 Jan 2006 05:04:18 +0000 (05:04 +0000)]
Another major fixes and enhancements:
    - MPSAFE
    - Fix / reorganize attach routine. Device specific initialization must
      be done after generic bus / DMA setup. At last, Virtual Channels
      (vchan) works as expected.

Note: Recent commit / fix against this driver proves that major enhancements
      on the generic sound layer does indeed help to expose flaw within
      device specific code. There are probably other drivers that need to
      be addressed as well.

Tested by: barner
MFC after: 1 week

18 years agoNew option: NO_FFS_SNAPSHOT. I did this in p4 about the same time
imp [Fri, 6 Jan 2006 04:44:09 +0000 (04:44 +0000)]
New option: NO_FFS_SNAPSHOT.  I did this in p4 about the same time
that NetBSD implemented it independently of them (don't know which one
was actually first).  This saves about 24k for those times you don't
need snapshot support (like when running off a ram disk, or in an
embedded environment where size matters).

18 years agoRemove XXX comments complaining that write(2) on a read-only descriptor
jhb [Thu, 5 Jan 2006 22:20:31 +0000 (22:20 +0000)]
Remove XXX comments complaining that write(2) on a read-only descriptor
returns EBADF.  That errno is correct and is mandated by POSIX.  It also
goes back to revision 1.1 of our CVS history (i.e. 4.4BSD).

The _fget() function should probably also be upated as it currently returns
EINVAL in that case rather than EBADF.  (It does return EBADF for reads
on a write-only descriptor without any XXX comments oddly enough.)

Discussed with: scottl, grog, mjacob, bde

18 years agoGet rid of the advertising clause in the copyright.
sos [Thu, 5 Jan 2006 21:27:19 +0000 (21:27 +0000)]
Get rid of the advertising clause in the copyright.

18 years agoDon't hold a reference to the disk vnode for each inode.
dumbbell [Thu, 5 Jan 2006 19:27:07 +0000 (19:27 +0000)]
Don't hold a reference to the disk vnode for each inode.

18 years agoFix a bug in Synaptics Touchapd support where psm(4) will enter an infinite
dumbbell [Thu, 5 Jan 2006 19:24:01 +0000 (19:24 +0000)]
Fix a bug in Synaptics Touchapd support where psm(4) will enter an infinite
loop if it receives an out of sync packet.

Reviewed by: mux (mentor)
MFC after: 4 days

18 years agoRefine thread suspension code, now thread suspension is a blockable
davidxu [Thu, 5 Jan 2006 13:51:22 +0000 (13:51 +0000)]
Refine thread suspension code, now thread suspension is a blockable
operation, the caller is blocked util target threads are really
suspended, also avoid suspending a thread when it is holding a
critical lock.
Fix a bug in _thr_ref_delete which tests a never set flag.

18 years agoo Typo in the debug message: s/skiped/skipped.
maxim [Thu, 5 Jan 2006 13:39:23 +0000 (13:39 +0000)]
o Typo in the debug message: s/skiped/skipped.

PR: kern/91346
Submitted by: Gavin Atkinson

18 years agoo Typo in the error message: s/invald/invalid.
maxim [Thu, 5 Jan 2006 13:37:07 +0000 (13:37 +0000)]
o Typo in the error message: s/invald/invalid.

PR: misc/91341
Submitted by: Guy Harris