]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoKill whitespace at EOL.
ru [Tue, 3 Apr 2007 18:57:09 +0000 (18:57 +0000)]
Kill whitespace at EOL.

17 years agoBreak out Version.map generation code from bsd.lib.mk into a
kan [Tue, 3 Apr 2007 18:56:05 +0000 (18:56 +0000)]
Break out Version.map generation code from bsd.lib.mk into a
separate bsd.symver.mk file. Include bsd.symver.mk in bsd.lib.mk
to maintain the status quo.

17 years agoAdd entry for dl_iterate_phdr.
kan [Tue, 3 Apr 2007 18:38:01 +0000 (18:38 +0000)]
Add entry for dl_iterate_phdr.

17 years agoskip call to _lock_profile_obtain_lock_success entirely if acquisition time is non...
kmacy [Tue, 3 Apr 2007 18:36:27 +0000 (18:36 +0000)]
skip call to _lock_profile_obtain_lock_success entirely if acquisition time is non-zero
(i.e. recursing or adding sharers)

17 years agoAdd stub for dl_iterate_phdr.
kan [Tue, 3 Apr 2007 18:35:20 +0000 (18:35 +0000)]
Add stub for dl_iterate_phdr.

17 years agoAdd dl_iterate_phdr function prototype and corresponding dl_phdr_info
kan [Tue, 3 Apr 2007 18:33:41 +0000 (18:33 +0000)]
Add dl_iterate_phdr function prototype and corresponding dl_phdr_info
structure definition.

17 years agoImplement dl_iterate_phdr function.
kan [Tue, 3 Apr 2007 18:31:20 +0000 (18:31 +0000)]
Implement dl_iterate_phdr function.
Convert boolean flags in internal Obj_Entry structure into bitfields.
Properly check for loaded segment alignment in map_object.

17 years agoUse u_int for variable manipulated by atomic ops to match atomic
kan [Tue, 3 Apr 2007 18:28:13 +0000 (18:28 +0000)]
Use u_int for variable manipulated by atomic ops to match atomic
ops function prototypes.

17 years agoRemove unneccessary LO_CONTESTED flag
kmacy [Tue, 3 Apr 2007 17:57:50 +0000 (17:57 +0000)]
Remove unneccessary LO_CONTESTED flag

17 years agoAdd entries for myself
brian [Tue, 3 Apr 2007 16:56:05 +0000 (16:56 +0000)]
Add entries for myself

17 years agoSort
brian [Tue, 3 Apr 2007 16:50:26 +0000 (16:50 +0000)]
Sort

17 years agoThis commit was generated by cvs2svn to compensate for changes in r168305,
mp [Tue, 3 Apr 2007 15:51:53 +0000 (15:51 +0000)]
This commit was generated by cvs2svn to compensate for changes in r168305,
which included commits to RCS files with non-trunk default branches.

17 years agoImport vendor patch to fix postcmd regression in tcsh-6.15.00.
mp [Tue, 3 Apr 2007 15:51:53 +0000 (15:51 +0000)]
Import vendor patch to fix postcmd regression in tcsh-6.15.00.

17 years ago- Protect against specifing journal less than 100MB and against journal
pjd [Tue, 3 Apr 2007 15:29:16 +0000 (15:29 +0000)]
- Protect against specifing journal less than 100MB and against journal
  which size is not multiple of sector size.

  Reported by: Eric Anderson <anderson@centtech.com>

- Improve wording in error message. I'm sorry, I don't remember who
  submitted this one.

17 years ago- Remove the deprecated ``/stand'' hierarchy.
chinsan [Tue, 3 Apr 2007 15:23:01 +0000 (15:23 +0000)]
- Remove the deprecated ``/stand'' hierarchy.

PR: docs/111137
Submitted by: Niclas Zeising
Approved by: delphij@ (mentor)

17 years agos/if_vlan/vlan/
rik [Tue, 3 Apr 2007 14:36:18 +0000 (14:36 +0000)]
s/if_vlan/vlan/

Noted by: brueffer

17 years agoFix use after free bug: use temporary variable to hold next entry in linked
rwatson [Tue, 3 Apr 2007 12:45:10 +0000 (12:45 +0000)]
Fix use after free bug: use temporary variable to hold next entry in linked
list while freeing current entry, rather than using the free'd entry's next
pointer.

Found with: Coverity Prevent(tm)
CID: 1333

17 years agoAdd root_mount_wait() function which can be used to wait until the root
pjd [Tue, 3 Apr 2007 11:45:28 +0000 (11:45 +0000)]
Add root_mount_wait() function which can be used to wait until the root
file system is mounted. This is useful for kernel modules loaded from
/boot/loader.conf, that have to access file system.

17 years ago- fixed several places where we did not release INP locks.
rrs [Tue, 3 Apr 2007 11:15:32 +0000 (11:15 +0000)]
- fixed several places where we did not release INP locks.
- fixed a refcount bug in the new ifa structures.
- use vrf's from default stcb or inp whenever possible.
- Address limits raised to account for a full IP fragmented
  packet (1000 addresses).
- flight size correcting updated to include one message only
  and to handle case where the peer does not cumack the
  next segment aka lists 1/1 in sack blocks..
- Various bad init/init-ack handling could cause a panic
  since we tried to unlock the destroyed mutex. Fixes
  so we properly exit when we need to destroy an assoc.
  (Found by Cisco DevTest team :D)
- name rename in src-addr-selection from pass to sifa.
- route structure typedef'd to allow different platforms
  and updated into sctp_os_bsd file.
- Max retransmissions a chunk can be made added.
Reviewed by: gnn

17 years ago- Fix a bug in the TSO transmit routine where frames which had
gallatin [Tue, 3 Apr 2007 10:41:33 +0000 (10:41 +0000)]
- Fix a bug in the TSO transmit routine where frames which had
been defragged and had their headers in the same cluster as their
payload would be fed to the NIC in header-sized chunks, and would
likely exceed the number of available transmit descriptors.

- If a TSO frame exceeds the number of available transmit descriptors,
don't leak busdmma resources when freeing it.

Sponsored by: Myricom Inc.

17 years agoMake the tunable names for Intel license agreement more obvious.
brueffer [Tue, 3 Apr 2007 10:04:54 +0000 (10:04 +0000)]
Make the tunable names for Intel license agreement more obvious.

17 years ago- add entries for me (leeym)
leeym [Tue, 3 Apr 2007 09:16:20 +0000 (09:16 +0000)]
- add entries for me (leeym)
- fix typo for lbr

17 years ago- Update for new tcl categories
pav [Tue, 3 Apr 2007 08:19:31 +0000 (08:19 +0000)]
- Update for new tcl categories

MFC after: 3 days

17 years ago- Recognize -g and -m in pstat(8) too.
ru [Tue, 3 Apr 2007 08:16:06 +0000 (08:16 +0000)]
- Recognize -g and -m in pstat(8) too.
- Document -g and -m support in swapinfo(8).

Reviewed by: markm

17 years agoFix a type in a second name
sem [Tue, 3 Apr 2007 06:34:58 +0000 (06:34 +0000)]
Fix a type in a second name

Reported by: ru (Sharp-sighted Eye)

17 years ago- Add myself.
chinsan [Tue, 3 Apr 2007 06:02:49 +0000 (06:02 +0000)]
- Add myself.

Approved by: delphij@ (mentor)

17 years agoSince the driver uses mutexes, remove splusb() and splx().
kevlo [Tue, 3 Apr 2007 05:59:17 +0000 (05:59 +0000)]
Since the driver uses mutexes, remove splusb() and splx().

17 years ago'ar' format support for libarchive, contributed by Kai Wang.
kientzle [Tue, 3 Apr 2007 05:34:36 +0000 (05:34 +0000)]
'ar' format support for libarchive, contributed by Kai Wang.

17 years agoCorrect PT_GNU_EH_FRAME definition.
kan [Tue, 3 Apr 2007 01:47:07 +0000 (01:47 +0000)]
Correct PT_GNU_EH_FRAME definition.

17 years agoDon't use a time-limiting loop that's defined in terms of the baudrate
marcel [Tue, 3 Apr 2007 01:21:10 +0000 (01:21 +0000)]
Don't use a time-limiting loop that's defined in terms of the baudrate
in the putc() method.  Likewise, in the getc() method, don't check for
received characters with an interval defined in terms of the baudrate.
In both cases it works equally well to implement a fixed delay.  More
importantly, it avoids calculating a delay that's roughly 1/10th the
time it takes to send/receive a character. The calculation is costly
and happens for every character sent or received, affecting low-level
console or debug port performance significantly. Secondly, when the
RCLK is not available or unreliable, the delays could disrupt normal
operation.

The fixed delay is 1/10th the time it takes to send a character at
230400 bps.

17 years agoAdd a dummy script, FILESYSTEMS, which depends on root and mountcritlocal
des [Mon, 2 Apr 2007 22:53:07 +0000 (22:53 +0000)]
Add a dummy script, FILESYSTEMS, which depends on root and mountcritlocal
and takes over mountcritlocal's role as the early / late divider.  This
makes it far easier to add rc scripts which need to run early, such as a
startup script for zfs, which is right around the corner.

This change should be a no-op; I have verified that the only change in
rcorder's output is the insertion of FILESYSTEMS immediately after
mountcritlocal.

MFC after: 3 weeks

17 years agoAdd description how the filter works in case of multiple interfaces
rik [Mon, 2 Apr 2007 22:04:21 +0000 (22:04 +0000)]
Add description how the filter works in case of multiple interfaces
with the same MAC.

PR:     kern/109815
MFC after: 7 days
Submitted by: Eygene Ryabinkin
Glanced by: rik (all pointy hats are mine)
Discussed with: julian@, rik@

17 years agoDon't expose the uart_ops structure directly, but instead have
marcel [Mon, 2 Apr 2007 22:00:22 +0000 (22:00 +0000)]
Don't expose the uart_ops structure directly, but instead have
it obtained through the uart_class structure. This allows us
to declare the uart_class structure as weak and as such allows
us to reference it even when it's not compiled-in.
It also allows is to get the uart_ops structure by name, which
makes it possible to implement the dt tag handling in uart_getenv().
The side-effect of all this is that we're using the uart_class
structure more consistently which means that we now also have
access to the size of the bus space block needed by the hardware
when we map the bus space, eliminating any hardcoding.

17 years agoIntroduce a variable TARGETS that can be set on the make command line
marcel [Mon, 2 Apr 2007 21:32:44 +0000 (21:32 +0000)]
Introduce a variable TARGETS that can be set on the make command line
and that controls which platforms are being built as part of a "make
universe". By default TARGETS is set to the 8 platforms currently
being built. This variable is useful for running or re-running a
"make universe" with only a selected set of platforms. This makes the
universe target slightly more useful in cases the universe is limited
to a developer's scope or objectives. For example, when a universe
failed for a particular platform and fixes need to be tested for that
particular platform then a developer can restart the universe for
only that platform, even if the initial universe is still building
other platforms.

17 years agoLoop on sdcard init. This helps if one hasn't plugged in the card
imp [Mon, 2 Apr 2007 20:26:04 +0000 (20:26 +0000)]
Loop on sdcard init.  This helps if one hasn't plugged in the card
fast enough, or there's other issues that cause the first try to fail.

17 years agoFix a fd leak in socketpair():
jhb [Mon, 2 Apr 2007 19:15:47 +0000 (19:15 +0000)]
Fix a fd leak in socketpair():
- Close the new file objects created during socketpair() if the copyout of
  the new file descriptors fails.
- Add a test to the socketpair regression test for this edge case.

17 years agoEnable MSI support on RELENG_6.
jkim [Mon, 2 Apr 2007 19:09:06 +0000 (19:09 +0000)]
Enable MSI support on RELENG_6.

MFC after: 3 days

17 years agoMake rpc.statd INET* indipendent by converting sockaddr_in structures
matteo [Mon, 2 Apr 2007 18:59:48 +0000 (18:59 +0000)]
Make rpc.statd INET* indipendent by converting sockaddr_in structures
to sockaddr ones and using svc_getrpccaller instead of svc_getcaller.
A similar patch was committed to rpc.lockd back in 2002 .

PR: bin/42004
MFC after: 1 week

17 years agoMFP4: Turn emul_lock into a mutex.
jkim [Mon, 2 Apr 2007 18:38:13 +0000 (18:38 +0000)]
MFP4: Turn emul_lock into a mutex.

Submitted by: rdivacky

17 years agoadd my mentees and comentor relation
sem [Mon, 2 Apr 2007 18:16:34 +0000 (18:16 +0000)]
add my mentees and comentor relation

17 years agoAdd another fd leak test for accept() I used to test the fix in 1.234 of
jhb [Mon, 2 Apr 2007 16:02:50 +0000 (16:02 +0000)]
Add another fd leak test for accept() I used to test the fix in 1.234 of
sys/kern/uipc_syscall.c.

17 years agoInstead of directly sourcing the firewall script, run it in a separate shell.
mtm [Mon, 2 Apr 2007 15:38:53 +0000 (15:38 +0000)]
Instead of directly sourcing the firewall script, run it in a separate shell.
If the firewall script is sourced directly from the script, then any
exit statements in it will also terminate the rc.d script prematurely.

PR: conf/78762
MFC-After: 2 weeks

17 years agoAdd myself to the tree of life^WFreeBSD
wes [Mon, 2 Apr 2007 15:36:07 +0000 (15:36 +0000)]
Add myself to the tree of life^WFreeBSD

17 years agojlemon was my mentor and I got my commit bit in 2001.
brooks [Mon, 2 Apr 2007 14:09:08 +0000 (14:09 +0000)]
jlemon was my mentor and I got my commit bit in 2001.

17 years agoIn rc.firewall, make it clear that this is the setup for IPFW(4), and not
rwatson [Mon, 2 Apr 2007 14:02:06 +0000 (14:02 +0000)]
In rc.firewall, make it clear that this is the setup for IPFW(4), and not
for the sundry other firewalls in the system.

MFC after: 3 days
Submitted by: Richard dot Clayton at cl dot cam dot ac dot uk

17 years ago- Split out the part of SYSCALL_MODULE_HELPER() that builds a 'struct
jhb [Mon, 2 Apr 2007 13:53:26 +0000 (13:53 +0000)]
- Split out the part of SYSCALL_MODULE_HELPER() that builds a 'struct
  sysent' for a new system call into a new MAKE_SYSENT() macro.
- Use MAKE_SYSENT() to build a full sysent for the nfssvc system call in
  the NFS server and use syscall_register() and syscall_deregister() to
  manage the nfssvc system call entry instead of manually frobbing the
  sysent[] array.

17 years agoDon't go to a whole lot of extra work to handle the race where the new
jhb [Mon, 2 Apr 2007 13:40:38 +0000 (13:40 +0000)]
Don't go to a whole lot of extra work to handle the race where the new
file descriptor is closed out from under us in kern_open().  This race
is already handled and the file will be closed when kern_open() does an
fdrop just before returning.

17 years ago- Add some comments what these files are for and how one can generate the
gabor [Mon, 2 Apr 2007 11:31:18 +0000 (11:31 +0000)]
- Add some comments what these files are for and how one can generate the
  graphical output

Reviewed by: flz

17 years agoOops, sort properly.
ru [Mon, 2 Apr 2007 10:38:51 +0000 (10:38 +0000)]
Oops, sort properly.

17 years agoRevert busy refcount back to int. As a side note, multiple open
ariff [Mon, 2 Apr 2007 10:24:15 +0000 (10:24 +0000)]
Revert busy refcount back to int. As a side note, multiple open
is still (and always) possible and does not change previous behaviour.

Requested by: netchild

17 years agoAdd my relashionships.
ru [Mon, 2 Apr 2007 10:23:27 +0000 (10:23 +0000)]
Add my relashionships.

17 years agoAdd myself
ache [Mon, 2 Apr 2007 09:59:55 +0000 (09:59 +0000)]
Add myself

17 years agoAdd myself
ache [Mon, 2 Apr 2007 09:40:02 +0000 (09:40 +0000)]
Add myself

17 years agoLogically separate the complex `hanoi' and `math' tests from basic tests.
yar [Mon, 2 Apr 2007 08:20:43 +0000 (08:20 +0000)]
Logically separate the complex `hanoi' and `math' tests from basic tests.

17 years agoDon't forget to close the range if we branched over its end
yar [Mon, 2 Apr 2007 08:14:46 +0000 (08:14 +0000)]
Don't forget to close the range if we branched over its end
and had no chance to match it by the 2nd address precisely.
Otherwise the unclosed range would bogusly extend to the end
of stream.

Add a basic regression test for the bug fixed.  (This change
also fixes the more complex case 5.3 from `multitest.t'.)

Compared with: SUN and GNU seds
Tested by: regression tests
MFC after: 1 week

17 years agoToday SUN and GNU seds fully agree on test 5.3 and behave
yar [Mon, 2 Apr 2007 07:50:10 +0000 (07:50 +0000)]
Today SUN and GNU seds fully agree on test 5.3 and behave
in a more reasonable way than BSD sed does: they properly
close the range even if we branched over its end.  No doubt,
the range `1,5' should not match lines from 9 through 14.

17 years agoadd myself
ijliao [Mon, 2 Apr 2007 07:09:03 +0000 (07:09 +0000)]
add myself

17 years agoPrevent foot-shooting in advance: Put the MATCH() macro's value
yar [Mon, 2 Apr 2007 06:47:48 +0000 (06:47 +0000)]
Prevent foot-shooting in advance:  Put the MATCH() macro's value
in parentheses.  The ?: operator has a remarkably low precedence, so
expressions like (MATCH(foo) && bar) would have an unexpected meaning
w/o the parentheses around MATCH().

Tested with: md5(1)

17 years agoDisable seq_modevent(). The implementation is incomplete, and causing
ariff [Mon, 2 Apr 2007 06:03:47 +0000 (06:03 +0000)]
Disable seq_modevent(). The implementation is incomplete, and causing
memory leak during unload.

17 years agoUse our own timer for watchdog instead of if_watchdog/if_timer
yongari [Mon, 2 Apr 2007 04:43:41 +0000 (04:43 +0000)]
Use our own timer for watchdog instead of if_watchdog/if_timer
interface.

17 years agoNow that there is always a compression-layer skip function available,
cperciva [Mon, 2 Apr 2007 04:21:22 +0000 (04:21 +0000)]
Now that there is always a compression-layer skip function available,
skip over the end-of-entry padding instead of reading and discarding
it.

Considering that tar files normally have a block size of 10kB, this
isn't likely to avoid reading any data, but at least it makes the code
simpler and clearer.

17 years ago- Fix typo in ntpd(8).
chinsan [Mon, 2 Apr 2007 04:18:49 +0000 (04:18 +0000)]
- Fix typo in ntpd(8).

Noticed by: Ben Kaduk (minimarmot _at_ gmail.com)
Approved by: delphij@ (mentor)

17 years agoNo need to track every closing instance, and put busy counter to rest
ariff [Mon, 2 Apr 2007 03:46:25 +0000 (03:46 +0000)]
No need to track every closing instance, and put busy counter to rest
in its single bit coffin.

17 years agoFreeze the simq, not the devq, if we run out of command slots. This fixes
scottl [Mon, 2 Apr 2007 03:31:37 +0000 (03:31 +0000)]
Freeze the simq, not the devq, if we run out of command slots.  This fixes
the last round of reported instability in the rev 13/14 driver.

Approved by: Erich Chen

17 years agoProvide hint / tunable for possible asynchronous USB execution. Async
ariff [Mon, 2 Apr 2007 03:25:39 +0000 (03:25 +0000)]
Provide hint / tunable for possible asynchronous USB execution. Async
execution should help us avoiding potential deadlock and illegal locking
while sleeping in various mixer -> usb calls. To enable it, use
hint.uaudio.%d.async="1" or sysctl dev.uaudio.%d.async=1. Default is
disable, to remain compatible with old behaviour (with slight risk of
potential deadlock).

17 years ago- Don't wakeup() unnecessarily, so the behavior of dead interrupt or
ariff [Mon, 2 Apr 2007 03:03:06 +0000 (03:03 +0000)]
- Don't wakeup() unnecessarily, so the behavior of dead interrupt or
  stalled DMA engine can be observed and predicted.
- Minor sysctl/tunable cleanup.

17 years agoTemporarily desupport simultaneous target and initiator mode.
mjacob [Mon, 2 Apr 2007 01:04:20 +0000 (01:04 +0000)]
Temporarily desupport simultaneous target and initiator mode.

When the linux port changes were imported which split the
target command list to be separate from the initiator command
list and the handle format changed to encode a type in the handle
the implications to the function isp_handle_index (which only
the NetBSD/OpenBSD/FreeBSD ports use) were overlooked.

The fault is twofold: first, the index into the DMA maps
in  isp_pci is wrong because a target command handle with
the type bit left in place caused a bad index (and panic)
into dma map. Secondly, the assumption of the array
of DMA maps in either PCS or SBUS attachment structures is
that there is a linear mapping between handle index and
DMA map index. This can no longer be true if there are
overlapping index spaces for initiator mode and target
mode commands.

These changes bandaid around the problem by forcing us
to not have simultaneous dual roles and doing the appropriate
masking to make sure things are indexed correctly. A longer
term fix is being devloped.

17 years agoFix type-punned pointer, minor style fixes.
kientzle [Mon, 2 Apr 2007 00:41:37 +0000 (00:41 +0000)]
Fix type-punned pointer, minor style fixes.
Thanks to: Joerg Sonnenberger

17 years agoAdd myself
yongari [Mon, 2 Apr 2007 00:39:29 +0000 (00:39 +0000)]
Add myself

17 years agoRemove unused variable; use consistent types.
kientzle [Mon, 2 Apr 2007 00:34:36 +0000 (00:34 +0000)]
Remove unused variable; use consistent types.
Thanks to: Joerg Sonnenberger

17 years agoBe consistent: file flags are unsigned bitmaps.
kientzle [Mon, 2 Apr 2007 00:32:03 +0000 (00:32 +0000)]
Be consistent: file flags are unsigned bitmaps.
Thanks to: Joerg Sonnenberger

17 years agoDon't compare a signed char to 0xFF.
kientzle [Mon, 2 Apr 2007 00:29:52 +0000 (00:29 +0000)]
Don't compare a signed char to 0xFF.
Thanks to: Joerg Sonnenberger

17 years agoAvoid a potential overflow when 'skip' is larger than a pointer.
kientzle [Mon, 2 Apr 2007 00:25:11 +0000 (00:25 +0000)]
Avoid a potential overflow when 'skip' is larger than a pointer.
Thanks to: Joerg Sonnenberger

17 years agoStyle fix: Use the correct type for 'bytes_to_write'.
kientzle [Mon, 2 Apr 2007 00:21:46 +0000 (00:21 +0000)]
Style fix:  Use the correct type for 'bytes_to_write'.

Thanks to: Joerg Sonnenberger

17 years agoStyle: bare "unsigned" is deprecated, use "unsigned int" instead.
kientzle [Mon, 2 Apr 2007 00:15:45 +0000 (00:15 +0000)]
Style:  bare "unsigned" is deprecated, use "unsigned int" instead.

Thanks to: Joerg Sonnenberger

17 years agoRemove some unused fields from archive_read internal structure.
kientzle [Mon, 2 Apr 2007 00:11:54 +0000 (00:11 +0000)]
Remove some unused fields from archive_read internal structure.
(Left over from when read and write used to share this structure.)

17 years agoAdd -m (megabytes) and -g (gigabytes) options. I'm tired of being told
markm [Sun, 1 Apr 2007 20:28:37 +0000 (20:28 +0000)]
Add -m (megabytes) and -g (gigabytes) options. I'm tired of being told
I can't do this.

MFC: 1 month

17 years agoFill in what's left about myself. Noted eik, jesusr, jcamou.
trhodes [Sun, 1 Apr 2007 18:40:26 +0000 (18:40 +0000)]
Fill in what's left about myself.  Noted eik, jesusr, jcamou.

17 years agoNote that the old firmware modules need to be removed.
mlaier [Sun, 1 Apr 2007 17:49:27 +0000 (17:49 +0000)]
Note that the old firmware modules need to be removed.

Reported by: Jeremie Le Hen
Suggested by: Stefan Ehmann

17 years agoHandle errors from bus_setup_intr().
netchild [Sun, 1 Apr 2007 16:55:31 +0000 (16:55 +0000)]
Handle errors from bus_setup_intr().

Found by: Coverity Prevent (tm)
CID: 1066

17 years agoTell the user when the setup of the interrupt handler failed and return
netchild [Sun, 1 Apr 2007 16:52:54 +0000 (16:52 +0000)]
Tell the user when the setup of the interrupt handler failed and return
an error.

Found by: Coverity Prevent (tm)
CID: 71-78

17 years agong_node and ng_worklist locks both migrated from being spinning locks to
wkoszek [Sun, 1 Apr 2007 15:48:10 +0000 (15:48 +0000)]
ng_node and ng_worklist locks both migrated from being spinning locks to
adaptive mutexes. Let witness(4) calm down and bring proper types of those
locks to the lock order database.

Glanced at by: rwatson

17 years agoMore style nits.
pjd [Sun, 1 Apr 2007 15:40:56 +0000 (15:40 +0000)]
More style nits.

17 years agoAdd myself
ache [Sun, 1 Apr 2007 14:52:51 +0000 (14:52 +0000)]
Add myself

17 years agoTell a statistic checker that not checking the return value of the probing
netchild [Sun, 1 Apr 2007 14:15:26 +0000 (14:15 +0000)]
Tell a statistic checker that not checking the return value of the probing
of the mii phy is intended for this chip.

Found by: Coverity Prevent (tm)
CID: 43

17 years agoMake it obvious that we don't care about the return value of
netchild [Sun, 1 Apr 2007 13:46:39 +0000 (13:46 +0000)]
Make it obvious that we don't care about the return value of
usbd_endpoint_count(), the failure case is handled implicit in the
following code.

Found by: Coverity Prevent (tm)
CID: 56

17 years agoStyle nit.
pjd [Sun, 1 Apr 2007 13:41:10 +0000 (13:41 +0000)]
Style nit.

17 years agoThis trivial change should fix at least 3 similar bugs. All of
yar [Sun, 1 Apr 2007 13:25:03 +0000 (13:25 +0000)]
This trivial change should fix at least 3 similar bugs.  All of
them are related to the `c' function's need to know if we are at
the actual end of the address range.  (It must print the text not
earlier than the whole pattern space was deleted.)  It appears the
only sed function with this requirement.

There is `lastaddr' set by applies(), which is to notify the `c'
function, but it can't always help because it's false when we are
hitting the end of file early.  There is also a bug in applies()
due to which `lastaddr' isn't set to true on degenerate ranges such
as `$,$' or `N,$' if N appears the last line number.

Handling early EOF condition in applies() could look more logical,
but it would effectively revert sed to the unreasonable behaviour
rev. 1.26 of main.c fought against, as it would require lastline()
be called for each line within each address range.  So it's better
to call lastline() only if needed by the `c' function.

Together with this change to sed go regression tests for the bugs
fixed (c1-c3).  A basic test of `c' (c0) is also added as it helped
me to spot my own error.

Discussed with: dds
Tested by: the regression tests
MFC after: 1 week

17 years agoAdd my first (and only until now) mentee Dryice Dong Liu (dryice).
itetcu [Sun, 1 Apr 2007 13:14:38 +0000 (13:14 +0000)]
Add my first (and only until now) mentee Dryice Dong Liu (dryice).

17 years agoAdd myself.
itetcu [Sun, 1 Apr 2007 13:11:50 +0000 (13:11 +0000)]
Add myself.

17 years agoAdd my mentor Sam Lawrance (my other mentor Tom McLaughlin is already in the
itetcu [Sun, 1 Apr 2007 13:08:57 +0000 (13:08 +0000)]
Add my mentor Sam Lawrance (my other mentor Tom McLaughlin is already in the
file).

17 years agoI think the code I'm removing here is completely bogus.
pjd [Sun, 1 Apr 2007 13:08:05 +0000 (13:08 +0000)]
I think the code I'm removing here is completely bogus.
vfs_flags field is used for VFCF_* flags which are given at file system
driver creation time (via VFS_SET(9)) macro.

What this code did was bascially this:

If file system registers itself with VFCF_UNICODE flag (stores file names
as Unicode), it will gain MNT_SOFTDEP flag (UFS soft-updates).

If file system registers itself with VFCF_LOOPBACK flag (aliases some other
mounted FS), it will gain MNT_SUIDDIR flag (special handling of SUID on
dirs).

The latter will be quite dangerous, but those flags are reset later in
vfs_domount().

MFC after: 1 month

17 years agoChange #include <machine/pcpu.h> to #include <sys/pcpu.h>
rodrigc [Sun, 1 Apr 2007 12:48:10 +0000 (12:48 +0000)]
Change #include <machine/pcpu.h> to #include <sys/pcpu.h>
to get definition of curthread, required by <sys/sx.h>.

17 years agoIf nooption SMP on powerpc, also nooption ADAPTIVE_SX, which depends on
rwatson [Sun, 1 Apr 2007 11:10:16 +0000 (11:10 +0000)]
If nooption SMP on powerpc, also nooption ADAPTIVE_SX, which depends on
SMP and is now in the global NOTES.

17 years agoNow that the vdropl() function is public, assert that the vnode interlock
pjd [Sun, 1 Apr 2007 10:45:32 +0000 (10:45 +0000)]
Now that the vdropl() function is public, assert that the vnode interlock
is held.

17 years agoo Document vdropl(9) [1].
maxim [Sun, 1 Apr 2007 09:48:59 +0000 (09:48 +0000)]
o Document vdropl(9) [1].
o Add an MLINK for vdropl().

Reviewed by: des [1]
Obtained from: wording from vgone(9)

17 years agoAdd Inoue-san and Shiozaki-san.
ume [Sun, 1 Apr 2007 08:48:00 +0000 (08:48 +0000)]
Add Inoue-san and Shiozaki-san.

17 years agoAdd bge(4).
marcel [Sun, 1 Apr 2007 06:24:19 +0000 (06:24 +0000)]
Add bge(4).
Fix a white-space nit while I'm here.

17 years agoWhen writing to PCI configuration registers, don't immediately
marcel [Sun, 1 Apr 2007 06:15:53 +0000 (06:15 +0000)]
When writing to PCI configuration registers, don't immediately
read the same register back. It can cause hangs or machine
checks in certain cases. One particular case is with bge(4)
when a reset is initiated for the controller.

MFC after: 1 month

17 years agoAdd Suzuki-san and myself.
ume [Sun, 1 Apr 2007 05:53:52 +0000 (05:53 +0000)]
Add Suzuki-san and myself.