dragonfly.git
13 years agoTry to catch double-free bugs in the ACPI code. For now generate a warning
Matthew Dillon [Tue, 20 Mar 2007 00:56:30 +0000 (00:56 +0000)]
Try to catch double-free bugs in the ACPI code.  For now generate a warning
if a double-free is detected but do not panic.

13 years agoGenerate a warning if a wired page is encountered on a queue during a free
Matthew Dillon [Tue, 20 Mar 2007 00:55:10 +0000 (00:55 +0000)]
Generate a warning if a wired page is encountered on a queue during a free
to attempt to track down a later panic.

13 years agoMinor syntax cleanup
Matthew Dillon [Tue, 20 Mar 2007 00:54:26 +0000 (00:54 +0000)]
Minor syntax cleanup

13 years agoRename "short/long" retry counter to "data/rts" retry counter. The
Sepherosa Ziehau [Mon, 19 Mar 2007 13:38:43 +0000 (13:38 +0000)]
Rename "short/long" retry counter to "data/rts" retry counter.  The
original names are inherited from ath(4)'s rate control algorithms,
while ath(4) actually uses short retry counter as rts retry counter,
and long retry counter as data retry counter.  According to the short
retry counter usage in 802.11 standard, it can be used as data retry
counter too.  Using the "short/long" retry counter is confusing (yah,
I was confused) and most hardwares seem to provide "data/rts" retry
counter, so switch to the new name: "data/rts" retry counter.

This change does not affect ONOE/AMRR TX rate control algorithms
operation in netproto/802_11, but it paves the way for Sample TX rate
control algorithm.

13 years agoRevert rtw.c rev1.7, though it works well with my ral(4)/ath(4) based
Sepherosa Ziehau [Mon, 19 Mar 2007 12:38:47 +0000 (12:38 +0000)]
Revert rtw.c rev1.7, though it works well with my ral(4)/ath(4) based
hostap, it seems to have trouble with my Linksys WRT54G.

13 years agoGet rid of long rety counter; it is never adopted. And for NICs, which
Sepherosa Ziehau [Sun, 18 Mar 2007 11:49:32 +0000 (11:49 +0000)]
Get rid of long rety counter; it is never adopted.  And for NICs, which
can't provide per MPDU/RTS+MPDU retry counters, it is impossible to
differentiate MPDU retries and RTS retries, so use one retry counter at
least for now.

13 years agoRTL8180L is capable of short preamble.
Sepherosa Ziehau [Sun, 18 Mar 2007 05:44:23 +0000 (05:44 +0000)]
RTL8180L is capable of short preamble.

13 years agoSet Short Slot Time subfield in Capability field, if ieee80211com.ic_caps
Sepherosa Ziehau [Sun, 18 Mar 2007 05:35:54 +0000 (05:35 +0000)]
Set Short Slot Time subfield in Capability field, if ieee80211com.ic_caps
has IEEE80211_C_SHSLOT and the current channel is a 2GHz one, as according
to IEEE Std 802.11g-2003 subclause 7.3.1.4:

"STAs shall set the Short Slot Time subfield to 1 in transmitted Association
 Request and Reassociation Request MMPDUs when the MIB attribute
 dot11ShortSlotTimeOptionImplemented and dot11ShortSlotTimeOptionEnabled are
 true. ..."

For us "dot11ShortSlotTimeOptionImplemented" is IEEE80211_C_SHSLOT bit in
ieee80211com.ic_caps and dot11ShortSlotTimeOptionEnabled is always true.

In the original way, we will be counted as long slot time STA, if the BSS
that we are joining temporarily turns off short slot time, since some already
joined STAs are incapable of short slot time.  After our joining, even if all
long slot time STAs leave, BSS still can't use short slot time, because we
misinformed AP that we are incapable of short slot time in association request.

13 years agos/natapiraid/nataraid/
Sascha Wildner [Sat, 17 Mar 2007 21:24:11 +0000 (21:24 +0000)]
s/natapiraid/nataraid/

Spotted-by: Rumko <rumcic@gmail.com>
13 years agoReword a couple of sentences and do some minor mdoc cleanup.
Sascha Wildner [Fri, 16 Mar 2007 22:02:02 +0000 (22:02 +0000)]
Reword a couple of sentences and do some minor mdoc cleanup.

No-objection: corecode

13 years agoFix message.
Sascha Wildner [Fri, 16 Mar 2007 15:27:10 +0000 (15:27 +0000)]
Fix message.

13 years agoDocument the new behavior of -r.
Sascha Wildner [Fri, 16 Mar 2007 13:42:11 +0000 (13:42 +0000)]
Document the new behavior of -r.

13 years agoAdd code for creating multiple virtual disks. Multiple -r options
Sascha Wildner [Fri, 16 Mar 2007 13:41:40 +0000 (13:41 +0000)]
Add code for creating multiple virtual disks. Multiple -r options
can now be passed to the vkernel with the first one specifying the
root device.

Submitted-by: Chris Turner <c.turner@199technologies.org>
13 years agoDocument that the maximum number of vke interfaces is 16.
Sascha Wildner [Fri, 16 Mar 2007 13:34:13 +0000 (13:34 +0000)]
Document that the maximum number of vke interfaces is 16.

13 years agoOops, forgot to hook CVE-2007-1218 fix into building.
Sepherosa Ziehau [Fri, 16 Mar 2007 13:18:13 +0000 (13:18 +0000)]
Oops, forgot to hook CVE-2007-1218 fix into building.

13 years agoActivate -i and add some documentation for it.
Sascha Wildner [Fri, 16 Mar 2007 13:17:20 +0000 (13:17 +0000)]
Activate -i and add some documentation for it.

13 years agoAdd a fix for CVE-2007-1218
Sepherosa Ziehau [Fri, 16 Mar 2007 13:12:23 +0000 (13:12 +0000)]
Add a fix for CVE-2007-1218

Obtained-from: tcpdump.org

13 years agoMake libpcap parse following expressions, so tcpdump can filter 802.11 frames
Sepherosa Ziehau [Fri, 16 Mar 2007 12:59:10 +0000 (12:59 +0000)]
Make libpcap parse following expressions, so tcpdump can filter 802.11 frames
based on frame types and/or subtypes:
tcpdump -ni wifi_iface -y ieee802_11 wlan type TYPE
tcpdump -ni wifi_iface -y ieee802_11 wlan type TYPE subtype SUBTYPE
tcpdump -ni wifi_iface -y ieee802_11 wlan subtype SUBTYPE

Thank Sam Leffer to point out that libpcap supports dynamic link layer headers.

# This commit has been merged into main stream code, so local patches can
# be nuked upon next vendor release updating.

13 years agoUse .Dv for defined values.
Sascha Wildner [Fri, 16 Mar 2007 12:32:50 +0000 (12:32 +0000)]
Use .Dv for defined values.

13 years agoFix typo.
Sascha Wildner [Thu, 15 Mar 2007 21:41:11 +0000 (21:41 +0000)]
Fix typo.

Submitted-by: Hasso Tepper <hasso@@estpak.ee>
13 years agoUse .Dv for ioctls.
Sascha Wildner [Thu, 15 Mar 2007 21:26:05 +0000 (21:26 +0000)]
Use .Dv for ioctls.

13 years agoUse .Dv for defined values.
Sascha Wildner [Thu, 15 Mar 2007 21:17:45 +0000 (21:17 +0000)]
Use .Dv for defined values.

13 years ago* Use .Dv for ioctls.
Sascha Wildner [Thu, 15 Mar 2007 20:58:57 +0000 (20:58 +0000)]
* Use .Dv for ioctls.

* Fix two "typos":

  s/CDIOCREADTOCHEADER/CDIOREADTOCHEADER/
  s/CDIOCREADTOCENTRYS/CDIOREADTOCENTRYS/

  I think the real typo is in the header file but let's just document
  the status quo.

13 years agoInitial syslink system call documentation and overview.
Matthew Dillon [Wed, 14 Mar 2007 21:09:34 +0000 (21:09 +0000)]
Initial syslink system call documentation and overview.

13 years agoAdd a note that getopt_long_only(3) is deprecated.
Sascha Wildner [Wed, 14 Mar 2007 14:50:07 +0000 (14:50 +0000)]
Add a note that getopt_long_only(3) is deprecated.

Requested-by: joerg
13 years agoOops, really add the MLINK.
Sascha Wildner [Wed, 14 Mar 2007 10:37:42 +0000 (10:37 +0000)]
Oops, really add the MLINK.

13 years ago1) Fix typo in getopt_long's prototype.
Sascha Wildner [Wed, 14 Mar 2007 10:34:17 +0000 (10:34 +0000)]
1) Fix typo in getopt_long's prototype.

2) Document the index argument.

3) s/floride/fluoride/

4) Document getopt_long_only() and add an MLINK.

Taken-from:  NetBSD (1-3) and FreeBSD (4)
Reported-by: Slava Semushin <php-coder@altlinux.ru> (4)
13 years agoReword a couple of sentences and do some minor mdoc cleanup.
Sascha Wildner [Tue, 13 Mar 2007 10:16:56 +0000 (10:16 +0000)]
Reword a couple of sentences and do some minor mdoc cleanup.

OK'd-by: corecode

13 years agoAdd /dev/vkd0 to the list of devices to be searched when the
Sascha Wildner [Tue, 13 Mar 2007 09:42:20 +0000 (09:42 +0000)]
Add /dev/vkd0 to the list of devices to be searched when the
device name is omitted.

13 years agoAdapt libthread_xu to use the new lwp kernel functions.
Simon Schubert [Tue, 13 Mar 2007 00:19:29 +0000 (00:19 +0000)]
Adapt libthread_xu to use the new lwp kernel functions.

13 years agoDrop this strange start/endzero thing for procs and lwps.
Simon Schubert [Tue, 13 Mar 2007 00:18:59 +0000 (00:18 +0000)]
Drop this strange start/endzero thing for procs and lwps.

Instead, unconditionally bzero the new proc/lwp.  This also allows us
to remove now superfluous initializations.

13 years agoRegen.
Simon Schubert [Mon, 12 Mar 2007 23:45:04 +0000 (23:45 +0000)]
Regen.

13 years agoRework stopping of procs.
Simon Schubert [Mon, 12 Mar 2007 21:08:15 +0000 (21:08 +0000)]
Rework stopping of procs.

Before, proc_stop() would sleep until all running lwps stopped.  This
break when a stop signal is actually coming from the console and is
executed in the context of the idle thread.

Now we count all sleeping threads as stopped and also set LWP_WSTOP to
indicate so.  These threads will stop before return to userland.
Running threads (including the current one) will eventually stop when
returning to userland and will increase p_nstopped.  The last thread
stopping will then send a signal to the parent process.

Discussed-with:  Thomas E. Spanjaard <tgen@netphreax.net>

13 years ago1:1 Userland threading stage 4.8/4:
Simon Schubert [Mon, 12 Mar 2007 21:07:42 +0000 (21:07 +0000)]
1:1 Userland threading stage 4.8/4:

Add syscalls lwp_gettid() and lwp_kill().

13 years agoAdd man page for lwp_create().
Simon Schubert [Mon, 12 Mar 2007 21:06:18 +0000 (21:06 +0000)]
Add man page for lwp_create().

13 years agoAdd prototype for lwp_create().
Simon Schubert [Mon, 12 Mar 2007 21:06:00 +0000 (21:06 +0000)]
Add prototype for lwp_create().

13 years agoAdd precautions so that threads won't race to exit1() and get stuck there.
Simon Schubert [Mon, 12 Mar 2007 21:05:48 +0000 (21:05 +0000)]
Add precautions so that threads won't race to exit1() and get stuck there.

13 years agoRemove trailing whitespace.
Sascha Wildner [Mon, 12 Mar 2007 17:12:11 +0000 (17:12 +0000)]
Remove trailing whitespace.

13 years agoMake the vkernel disk (vkd) known to vinum.
Sascha Wildner [Mon, 12 Mar 2007 12:10:13 +0000 (12:10 +0000)]
Make the vkernel disk (vkd) known to vinum.

13 years ago* Add callout(9) MLINK.
Sascha Wildner [Sun, 11 Mar 2007 20:04:18 +0000 (20:04 +0000)]
* Add callout(9) MLINK.

* List all functions in the NAME section.

* Use .Fn

13 years agoConvert to mdoc.
Sascha Wildner [Sun, 11 Mar 2007 19:05:31 +0000 (19:05 +0000)]
Convert to mdoc.

Obtained from (except for bs(6)): NetBSD

13 years ago* Reduce differences to FreeBSD.
Sascha Wildner [Sun, 11 Mar 2007 11:57:27 +0000 (11:57 +0000)]
* Reduce differences to FreeBSD.

* s/fixit floppy/LiveCD/

13 years agoAdd stge(4) and vge(4).
Sascha Wildner [Sun, 11 Mar 2007 11:15:33 +0000 (11:15 +0000)]
Add stge(4) and vge(4).

13 years agoAdd missing config declaration.
Sascha Wildner [Sun, 11 Mar 2007 10:22:52 +0000 (10:22 +0000)]
Add missing config declaration.

13 years agomy(4) doesn't use miibus
Sascha Wildner [Sun, 11 Mar 2007 03:46:48 +0000 (03:46 +0000)]
my(4) doesn't use miibus

13 years agoAdd nfe(4) and vge(4).
Sascha Wildner [Sun, 11 Mar 2007 03:39:25 +0000 (03:39 +0000)]
Add nfe(4) and vge(4).

13 years agoUse correct parameter order for strcpy().
Sascha Wildner [Sat, 10 Mar 2007 09:47:29 +0000 (09:47 +0000)]
Use correct parameter order for strcpy().

13 years agoMake sure all string buffers passed from userland are terminated before
Matthew Dillon [Thu, 8 Mar 2007 16:42:34 +0000 (16:42 +0000)]
Make sure all string buffers passed from userland are terminated before
proceeding.

13 years agoAdd reference to em(4).
Sascha Wildner [Thu, 8 Mar 2007 12:27:07 +0000 (12:27 +0000)]
Add reference to em(4).

13 years agoAdd a little documentation for the hw.em.int_throttle_ceil tunable.
Sascha Wildner [Thu, 8 Mar 2007 11:20:56 +0000 (11:20 +0000)]
Add a little documentation for the hw.em.int_throttle_ceil tunable.

13 years agoAdd a better description for the hw.bge.fake_autoneg tunable.
Sascha Wildner [Thu, 8 Mar 2007 09:46:42 +0000 (09:46 +0000)]
Add a better description for the hw.bge.fake_autoneg tunable.

Submitted-by: sephe
13 years agoDon't try holding serializer in ti_rxeof(). This function is only called by
Sepherosa Ziehau [Wed, 7 Mar 2007 12:33:07 +0000 (12:33 +0000)]
Don't try holding serializer in ti_rxeof().  This function is only called by
intr routine which alrealy holds serializer.

Reported-by: "RusE39" <russiane39@gmail.com>
13 years agoUse random octet stream to create IBSS's BSSID as suggested by
Sepherosa Ziehau [Tue, 6 Mar 2007 14:51:22 +0000 (14:51 +0000)]
Use random octet stream to create IBSS's BSSID as suggested by
IEEE Std 802.11, 1999 Edition.

Obtained-from: Sam Leffler

13 years agoCorrect the unit of "powersavesleep" argument: it is in TU's, not in
Sepherosa Ziehau [Tue, 6 Mar 2007 12:22:39 +0000 (12:22 +0000)]
Correct the unit of "powersavesleep" argument: it is in TU's, not in
milliseconds.  The difference is marginal though, since 1TU~=1.024msec.

13 years agoCorrect the unit of assoc/reassoc req listen interval: it is in number
Sepherosa Ziehau [Tue, 6 Mar 2007 12:17:51 +0000 (12:17 +0000)]
Correct the unit of assoc/reassoc req listen interval: it is in number
of beacons, not in TU's.  It will probably affect how AP handles PS.

13 years agoCorrect TU <-> millisecond and TU -> ticks convertion.
Sepherosa Ziehau [Mon, 5 Mar 2007 14:17:36 +0000 (14:17 +0000)]
Correct TU <-> millisecond and TU -> ticks convertion.

13 years ago1 TU is 1024 usecs
Sepherosa Ziehau [Mon, 5 Mar 2007 12:25:05 +0000 (12:25 +0000)]
1 TU is 1024 usecs

13 years agoerr() and warn() print the strerror() message by themselves.
Sascha Wildner [Mon, 5 Mar 2007 02:41:45 +0000 (02:41 +0000)]
err() and warn() print the strerror() message by themselves.

13 years agoDocument some tunables:
Sascha Wildner [Sun, 4 Mar 2007 20:10:34 +0000 (20:10 +0000)]
Document some tunables:

hw.bge.fake_autoneg
hw.cardbus.cis_debug
hw.cardbus.debug
hw.cbb.debug
hw.em.rx_abs_int_delay
hw.em.rx_int_delay
hw.em.rxd
hw.em.tx_abs_int_delay
hw.em.tx_int_delay
hw.em.txd
hw.pccard.cis_debug
hw.pccard.debug
kern.dfldsiz
kern.dflssiz
kern.maxdsiz
kern.maxssiz
kern.maxtsiz
kern.sgrowsiz

Taken-from: FreeBSD

13 years agoRemove weird license clause which has expired.
Sascha Wildner [Sun, 4 Mar 2007 18:51:59 +0000 (18:51 +0000)]
Remove weird license clause which has expired.

13 years agoAdd wlandebug(8) tool for turning on/off debug flags in netproto/802_11
Sepherosa Ziehau [Sun, 4 Mar 2007 13:15:48 +0000 (13:15 +0000)]
Add wlandebug(8) tool for turning on/off debug flags in netproto/802_11
Thank swildner@ to help with the manpage.

Obtained-from: FreeBSD (sam@freebsd.org) w/ modification

13 years agoExpose IEEE80211_MSG_ for user space programs.
Sepherosa Ziehau [Sun, 4 Mar 2007 13:09:15 +0000 (13:09 +0000)]
Expose IEEE80211_MSG_ for user space programs.

13 years agoFix typo.
Sascha Wildner [Sun, 4 Mar 2007 12:18:05 +0000 (12:18 +0000)]
Fix typo.

13 years ago- Add additional parameter to ieee80211_mgmt_output(). Use this new
Sepherosa Ziehau [Sun, 4 Mar 2007 07:52:36 +0000 (07:52 +0000)]
- Add additional parameter to ieee80211_mgmt_output().  Use this new
  parameter instead of protocol specific mbuf flag M_LINK0 to inform
  ieee80211_mgmt_output() that the mgmt frame needs encryption.
- Revoke protocol specific mbuf flag M_LINK0

These changes save one protocol specific mbuf flag, which will be used
by TXCB mechanism for mgmt frames in the future.

13 years ago1) Fix prototype in vget(9).
Sascha Wildner [Sun, 4 Mar 2007 02:45:08 +0000 (02:45 +0000)]
1) Fix prototype in vget(9).

2) Add vhold/vdrop manual page.

3) Some mdoc cleanup.

[2] and some of [3] taken from: FreeBSD

13 years agoBring back in some previously commented out references to ifmedia(4).
Sascha Wildner [Sun, 4 Mar 2007 02:32:59 +0000 (02:32 +0000)]
Bring back in some previously commented out references to ifmedia(4).

13 years agoFix typo.
Sascha Wildner [Sat, 3 Mar 2007 23:19:25 +0000 (23:19 +0000)]
Fix typo.

13 years agoUse .Er for errno value and fix typo.
Sascha Wildner [Sat, 3 Mar 2007 23:16:54 +0000 (23:16 +0000)]
Use .Er for errno value and fix typo.

13 years agoFix prototype.
Sascha Wildner [Thu, 1 Mar 2007 16:18:11 +0000 (16:18 +0000)]
Fix prototype.

13 years agoNo . needed here.
Sascha Wildner [Thu, 1 Mar 2007 12:57:15 +0000 (12:57 +0000)]
No . needed here.

13 years agoSort by section.
Sascha Wildner [Thu, 1 Mar 2007 12:37:19 +0000 (12:37 +0000)]
Sort by section.

13 years agoRegen.
Simon Schubert [Thu, 1 Mar 2007 01:48:51 +0000 (01:48 +0000)]
Regen.

13 years ago1:1 Userland threading stage 4.7/4:
Simon Schubert [Thu, 1 Mar 2007 01:46:53 +0000 (01:46 +0000)]
1:1 Userland threading stage 4.7/4:

Add a new system call lwp_create() which spawns a new lwp with a
given thread function address and given stack pointer.  Rework
and add some associated functions to realize this goal.

In-collaboration-with: Thomas E. Spanjaard <tgen@netphreax.net>

13 years agoAdd sc_newstate_arg to ural_softc, so ieee80211_new_state() 'arg' can be
Sepherosa Ziehau [Wed, 28 Feb 2007 13:04:26 +0000 (13:04 +0000)]
Add sc_newstate_arg to ural_softc, so ieee80211_new_state() 'arg' can be
passed to ieee80211_newstate().  This makes 802_11 internal state machine
run correctly for certain state changes, e.g. RUN->AUTH

13 years agoRemove trailing space.
Sascha Wildner [Tue, 27 Feb 2007 17:33:32 +0000 (17:33 +0000)]
Remove trailing space.

13 years agoValidate msg_controllen, as per RFC2292.
Sascha Wildner [Tue, 27 Feb 2007 12:05:26 +0000 (12:05 +0000)]
Validate msg_controllen, as per RFC2292.

Submitted-by: Hasso Tepper <hasso@estpak.ee>
13 years ago1:1 Userland threading stage 4.6/4:
Simon Schubert [Mon, 26 Feb 2007 21:41:08 +0000 (21:41 +0000)]
1:1 Userland threading stage 4.6/4:

Factor out a new function `lwp_fork()' from fork1().  Rearrange various
fork helpers to operate exclusively on procs or lwps.  Collect some MI
code from MD sources into lwp_fork().

Reviewed-by: Thomas E. Spanjaard <tgen@netphreax.net>
13 years agoSync zoneinfo database with tzdata2007c from elsie.
Sascha Wildner [Mon, 26 Feb 2007 14:54:00 +0000 (14:54 +0000)]
Sync zoneinfo database with tzdata2007c from elsie.

europe:         8.7  -> 8.8
northamerica:   8.11 -> 8.12
southamerica:   8.8  -> 8.9
zone.tab:       8.8  -> 8.9

From Paul Eggert's comments:

* Turkey switches at 01:00 standard time, not at 01:00 UTC.  (Thanks to
  Amar Devegowda and Steffen Thorsen for this.)

* Pulaski County, Indiana, is switching from CST/CDT to EST/EDT next
  month (which means a 2-hour change on March 11).  This requires a
  new Zone, America/Indiana/Winamac.  (Thanks to Gwillim Law for the
  heads-up.)

* A slight correction to Easter Island Mean Time (1890-1932).

* Update comments for Canada.  (Thanks to Chris Walton.)

13 years agoAdd forgotten file.
Simon Schubert [Mon, 26 Feb 2007 13:14:04 +0000 (13:14 +0000)]
Add forgotten file.

13 years agoDiscard deauth/disassoc that are not for us. Reception of these frames
Sepherosa Ziehau [Mon, 26 Feb 2007 12:28:23 +0000 (12:28 +0000)]
Discard deauth/disassoc that are not for us.  Reception of these frames
can only happen when promisc mode is enabled.

Obtained-from: FreeBSD-p4/sam_wifi (sam@freebsd.org)

13 years agoFix suspend behavior by really stopping the process and setting its signal.
Simon Schubert [Mon, 26 Feb 2007 03:55:22 +0000 (03:55 +0000)]
Fix suspend behavior by really stopping the process and setting its signal.

13 years agoGet rid of struct user/UAREA.
Simon Schubert [Sun, 25 Feb 2007 23:17:13 +0000 (23:17 +0000)]
Get rid of struct user/UAREA.

Merge procsig with sigacts and replace usage of procsig with
sigacts, like it used to be in 4.4BSD.

Put signal-related inline functions in sys/signal2.h.

Reviewed-by: Thomas E. Spanjaard <tgen@netphreax.net>
13 years agoDrop a.out coredump support from gcore.
Simon Schubert [Sun, 25 Feb 2007 23:07:08 +0000 (23:07 +0000)]
Drop a.out coredump support from gcore.

13 years agoAdd missing .El
Sascha Wildner [Sun, 25 Feb 2007 19:12:28 +0000 (19:12 +0000)]
Add missing .El

13 years agoFix comments.
Sascha Wildner [Sun, 25 Feb 2007 19:09:15 +0000 (19:09 +0000)]
Fix comments.

13 years ago.ar -> .Ar
Sascha Wildner [Sun, 25 Feb 2007 19:08:40 +0000 (19:08 +0000)]
.ar -> .Ar

13 years agoRemove empty line (silence manlint).
Sascha Wildner [Sun, 25 Feb 2007 18:50:48 +0000 (18:50 +0000)]
Remove empty line (silence manlint).

13 years agoAdd missing .Nm
Sascha Wildner [Sun, 25 Feb 2007 18:35:05 +0000 (18:35 +0000)]
Add missing .Nm

13 years agoRegen
Simon Schubert [Sun, 25 Feb 2007 14:08:08 +0000 (14:08 +0000)]
Regen

13 years ago1:1 Userland threading stage 4.5/4:
Simon Schubert [Sun, 25 Feb 2007 14:07:13 +0000 (14:07 +0000)]
1:1 Userland threading stage 4.5/4:

Add a new syscall, extexit(), which follows approximately the semantics
discussed about two years ago.  This function will be used by userland
threading libraries to exit just a single lwp of a process.

13 years agoAdd an ifmedia(4) reference to the manpages of all drivers that support
Sascha Wildner [Sun, 25 Feb 2007 12:03:07 +0000 (12:03 +0000)]
Add an ifmedia(4) reference to the manpages of all drivers that support
the ifmedia interface.

13 years agoFix references.
Sascha Wildner [Sun, 25 Feb 2007 01:09:09 +0000 (01:09 +0000)]
Fix references.

13 years ago1:1 Userland threading stage 4.4/4:
Simon Schubert [Sat, 24 Feb 2007 14:25:07 +0000 (14:25 +0000)]
1:1 Userland threading stage 4.4/4:

Implement killlwps() and flesh out lwp_exit().  Lwps which have set the
LWP_WEXIT flag will terminate themselves by calling lwp_exit() from
userret().

Reap lwps in a per-CPU taskqueue.  NOTE: Even the last lwp of an exiting
proc will be reaped by the task queue, effectively leaving a BARE proc
to reap in wait4().

In-collaboration-with: Thomas E. Spanjaard <tgen@netphreax.net>

13 years ago1:1 Userland threading stage 4.3/4:
Simon Schubert [Sat, 24 Feb 2007 14:24:06 +0000 (14:24 +0000)]
1:1 Userland threading stage 4.3/4:

Add service functions for the handling of exiting/dead lwps.
Rework the exiting code to use these functions.  This moves MI code
back to MI land.

13 years agoRemove superfluous conditional.
Simon Schubert [Sat, 24 Feb 2007 14:23:18 +0000 (14:23 +0000)]
Remove superfluous conditional.

sig is always == 0 at this place, and even if a signal arrived in between,
we after all were woken up by the timeout and the signal didn't break
our sleep.

13 years agoFix wording.
Sascha Wildner [Sat, 24 Feb 2007 13:00:32 +0000 (13:00 +0000)]
Fix wording.

13 years agoFix config declaration.
Sascha Wildner [Sat, 24 Feb 2007 09:07:09 +0000 (09:07 +0000)]
Fix config declaration.

13 years ago* Sync the list of devices in the polling(4) manpage and the polling
Sascha Wildner [Sat, 24 Feb 2007 08:27:38 +0000 (08:27 +0000)]
* Sync the list of devices in the polling(4) manpage and the polling
  section in LINT with the current state of affairs.

* Add references to polling(4) to the manpages of the drivers that
  support it.

Reported-by: Rick De Bella (on IRC)
13 years agoFix taskqueues to truely work on SMP systems.
Simon Schubert [Sat, 24 Feb 2007 04:36:21 +0000 (04:36 +0000)]
Fix taskqueues to truely work on SMP systems.

The taskqueue_task_td threads were created with kthread_create(), which
defaults to creating the thread on the current CPU.  Achieve correct
operation by using lwkt_create(), which allows specification of the
CPU the thread should run on.

Add a comment about the suggested usage of task structures.

13 years agoUnbreak wrong offset calculations by using the correct functions.
Simon Schubert [Sat, 24 Feb 2007 04:36:10 +0000 (04:36 +0000)]
Unbreak wrong offset calculations by using the correct functions.