Samuel J. Greear [Mon, 5 Jul 2010 07:53:29 +0000 (07:53 +0000)]
dev - Add kq support to hotplug
Samuel J. Greear [Mon, 5 Jul 2010 07:39:27 +0000 (07:39 +0000)]
dev - Add kq support to spic
Samuel J. Greear [Mon, 5 Jul 2010 07:26:11 +0000 (07:26 +0000)]
dev - Add kq support to tw
Samuel J. Greear [Mon, 5 Jul 2010 07:13:20 +0000 (07:13 +0000)]
dev - Add kq support to cmx
Samuel J. Greear [Mon, 5 Jul 2010 06:45:51 +0000 (06:45 +0000)]
dev - Add kq support to bktr
Samuel J. Greear [Mon, 5 Jul 2010 06:18:31 +0000 (06:18 +0000)]
dev - Add kq support to cxm
Samuel J. Greear [Mon, 5 Jul 2010 04:17:09 +0000 (04:17 +0000)]
dev - Add kq support to aac
Samuel J. Greear [Mon, 5 Jul 2010 04:06:50 +0000 (04:06 +0000)]
vinum - Add kq support
Samuel J. Greear [Mon, 5 Jul 2010 03:39:35 +0000 (03:39 +0000)]
dev - Add kq support to snp
Samuel J. Greear [Mon, 5 Jul 2010 03:38:53 +0000 (03:38 +0000)]
dev - Add kq support to mse
Samuel J. Greear [Mon, 5 Jul 2010 03:38:10 +0000 (03:38 +0000)]
dev - Add kq support to asc
Samuel J. Greear [Mon, 5 Jul 2010 03:31:47 +0000 (03:31 +0000)]
linux - Finish bringing epoll in sync with kevent changes
* Description extraction now happens outside of kern_event()
Samuel J. Greear [Mon, 5 Jul 2010 02:25:58 +0000 (02:25 +0000)]
apm - Add kq support
Samuel J. Greear [Mon, 5 Jul 2010 02:25:09 +0000 (02:25 +0000)]
dev - Add kq support to kbd
Samuel J. Greear [Mon, 5 Jul 2010 01:46:29 +0000 (01:46 +0000)]
filters - Minor fixes
* Don't fall-through in psm kqfilter setup struct
* Assign correct address to kn_hook in tun setup function
Samuel J. Greear [Fri, 2 Jul 2010 21:20:21 +0000 (21:20 +0000)]
dev - Add kq support to psm
Samuel J. Greear [Fri, 2 Jul 2010 20:53:54 +0000 (20:53 +0000)]
dev - Add kq support to dsp
Samuel J. Greear [Fri, 2 Jul 2010 18:23:10 +0000 (18:23 +0000)]
kernel - Add kq support to devctl
Samuel J. Greear [Fri, 2 Jul 2010 18:01:57 +0000 (18:01 +0000)]
kernel - Add kq support to udev
Samuel J. Greear [Fri, 2 Jul 2010 17:22:26 +0000 (17:22 +0000)]
acpi - Add kqueue support to apm emulation device
Samuel J. Greear [Fri, 2 Jul 2010 16:12:03 +0000 (16:12 +0000)]
kernel - Add kq support to tty devices
* This is all of the remaining tty devices missing kq support.
* vcons, dcons, sysmouse, pts, rp
Samuel J. Greear [Tue, 29 Jun 2010 23:47:53 +0000 (23:47 +0000)]
kernel - Make returned pollfd's more conformant with legacy poll
* Do not set ready states in revents if an error condition is present
* Mask out file descriptors with a descriptor id equalling -1
Samuel J. Greear [Tue, 29 Jun 2010 21:53:59 +0000 (21:53 +0000)]
kernel - Introduce a local marker to kqueue_scan()
* The local marker in kqueue_scan() allows multiple threads to operate on a kq
at once by leap-frogging each others markers.
Samuel J. Greear [Mon, 28 Jun 2010 18:03:14 +0000 (18:03 +0000)]
kernel - refactor main kqueue event loop
* seperate the sleep and scan functionality into discrete functions
* pull all of the important logic (management of the list marker, the call
to kqueue_sleep()) directly into kern_event()
Samuel J. Greear [Mon, 28 Jun 2010 16:26:22 +0000 (16:26 +0000)]
net - Add kqueue read support to tun device
Samuel J. Greear [Sun, 27 Jun 2010 03:04:27 +0000 (03:04 +0000)]
net - Add kqueue read support to bpf device
Samuel J. Greear [Sun, 27 Jun 2010 01:32:48 +0000 (01:32 +0000)]
tests - select that returns many writers
* This is modeled after the main/many_events test found in libevent2.
Samuel J. Greear [Sat, 26 Jun 2010 21:18:41 +0000 (21:18 +0000)]
linux - Bring epoll in sync with kqueue changes
* Fix a bug related to the timeout calculation, it was calculating for
microseconds, not milliseconds + typo.
* Successfully handle the copyout success case in copyout handler
Matthew Dillon [Sat, 26 Jun 2010 21:02:36 +0000 (14:02 -0700)]
kernel - kqueue - Bug fixing pass
* We cannot terminate the loop when events are received if all the
events are spurious (none were collected by the copyout).
* Move the WOULDBLOCK -> 0 handling out of kqueue_scan() and into
kern_kevent().
* Preset (*errorp) to 0 so it is set definitively for all cases, including
degenerate cases.
* Allow an infinite number of events when doselect() calls kern_kevent()
to avoid premature termination on successive calls which could occur
due to spurious events.
* Fix a bug in dopoll() where the bytes variable was calculated prior to
the truncation of nfds.
* Fix copyin/copyout arguments.
* Add missing rel_mplock() in pipe_kqfilter()
Samuel J. Greear [Fri, 25 Jun 2010 01:03:22 +0000 (01:03 +0000)]
kernel - Implement poll(2) in terms of kevent
Samuel J. Greear [Thu, 24 Jun 2010 07:45:58 +0000 (07:45 +0000)]
kernel - KQueue: Create EVFILT_EXCEPT for exceptional conditions
* Move the handling of out-of-band data (NOTE_OOB) under EVFILT_EXCEPT. This
simplifies the select implementation and makes room for additional exceptional
conditions to be added in the future.
Matthew Dillon [Wed, 23 Jun 2010 04:59:29 +0000 (21:59 -0700)]
kernel - kqueue select support
* Fix bug in kevent timeout handling. Only go to non-blocking once
(*res) is non-zero.
* Use stack-declared kfd_set structures for select operations on
64 or fewer descriptors.
* Refactor the select_copyin() loop.
* Fix bug in serial number decoding in the select_copyout() loop.
* Do not use EV_CLEAR, this can cause temporary EOF conditions to
reset improperly. Do not use EV_ONESHOT either. Leave the event
in the kqueue, it will speed things up when select() is called in
a loop (the events will already exist).
* Implement ptckqfilter ... implement kqfilter functions for pty's and
ptc's instead of using the tty kqfilter functions which do not work
properly for ptc control terminals.
* Change getbits/putbits from macros to inline functions.
Samuel J. Greear [Tue, 15 Jun 2010 16:13:45 +0000 (16:13 +0000)]
kernel - Add kqueue read support to memio devices
memio devices: mem, kmem, null, random, urandom, zero, io
Samuel J. Greear [Tue, 15 Jun 2010 16:44:44 +0000 (16:44 +0000)]
kernel - Add kqueue to log device (/dev/klog)
Samuel J. Greear [Mon, 14 Jun 2010 13:26:04 +0000 (13:26 +0000)]
devfs - KQ filter ops are expected to return 0 or 1
Samuel J. Greear [Sun, 13 Jun 2010 13:48:20 +0000 (13:48 +0000)]
test - Add OOB tests for select and kqueue
Samuel J. Greear [Fri, 11 Jun 2010 08:13:53 +0000 (08:13 +0000)]
kernel - Add OOB support to kqueue
Adds the ability to be notified of out-of-band data on a socket to
kqueue by specifying NOTE_OOB in the fflags of a kevent.
Samuel J. Greear [Fri, 4 Jun 2010 23:13:25 +0000 (23:13 +0000)]
Implement select(2) in terms of kevent
Matthew Dillon [Tue, 29 Jun 2010 00:39:09 +0000 (17:39 -0700)]
kernel - remove pmap_interlock debugging
* Remove the pmap_interlock debugging kprintf()s
Sascha Wildner [Tue, 29 Jun 2010 00:22:20 +0000 (02:22 +0200)]
Log frequency changes via syslog(3) from powerd(8) instead from acpi(4).
This avoids cluttering of the console with 'set pstate' messages on
verbosely booted systems when powerd(8) runs.
Sascha Wildner [Mon, 28 Jun 2010 23:26:57 +0000 (01:26 +0200)]
powerd.8: Add missing .El
Sascha Wildner [Mon, 28 Jun 2010 23:18:27 +0000 (01:18 +0200)]
powerd.8: Clean up the manual page a bit.
Sascha Wildner [Mon, 28 Jun 2010 23:00:02 +0000 (01:00 +0200)]
powerd(8): Add an rc script etc.
Sascha Wildner [Mon, 28 Jun 2010 22:22:00 +0000 (00:22 +0200)]
Hook powerd(8) into the build.
Matthew Dillon [Mon, 28 Jun 2010 21:43:11 +0000 (14:43 -0700)]
powerd - Fixes for 64-bit
* Make slen size_t for 64-bit compatibility.
Matthew Dillon [Mon, 28 Jun 2010 21:36:24 +0000 (14:36 -0700)]
powerd - Initial load monitor and cpu frequency adjustment daemon
This daemon uses the hw.acpi.cpu.px_dom* sysctls to adjust the frequency
for all cpus based on the system cpu load.
For this initial implementation the daemon simply sets cpus to the maximum
frequency when the 1-second load exceeds 25% of one cpu and sets the cpus
to the minimum frequency when the 10-second load drops below 12%.
Sascha Wildner [Sun, 27 Jun 2010 08:54:13 +0000 (10:54 +0200)]
test/dsched*: Use standard Makefiles and fix an include path.
Alex Hornung [Wed, 2 Jun 2010 09:59:39 +0000 (09:59 +0000)]
vfs_bio - Implement nestiobuf support
* Implement nestiobuf support (as NetBSD does) to split up a bio/buf
into several smaller pieces that can be handled separately and only
biodone() the "master" buffer when all smaller bio/buf pieces have
completed.
Partially-Obtained-from: NetBSD
Alex Hornung [Sun, 13 Jun 2010 08:41:56 +0000 (09:41 +0100)]
subr_disk - Implement create_named & bounds_check
* Implement a disk_create_named to allow disks to be arbitrarily named,
not necessarily <driver name><unit>.
* Implement a bounds_check_with_mediasize, which bound-checks a bio
against a given media size and sector size.
Alex Hornung [Sat, 26 Jun 2010 21:34:28 +0000 (22:34 +0100)]
chroot_kernel() - new syscall to set rootnch/rootvn
* This new syscall can be used to override the default rootnch and
rootvnode which are used for path lookups outside of a process context
(i.e. in kernel-only context)
Alex Hornung [Sat, 26 Jun 2010 21:33:43 +0000 (22:33 +0100)]
kern_udev - remove unnecessary refs for devs
Alex Hornung [Sat, 26 Jun 2010 16:09:57 +0000 (17:09 +0100)]
vn - remove vn_softc from list on detach command
* Remove the vn_softc out of the vn list when a detach command is
issued, additionally to calling disk_destroy().
* This was causing a panic when a reboot was issued after detaching a vn
device, as disk_destroy was effectively called twice on the same dp.
Sascha Wildner [Fri, 25 Jun 2010 00:23:16 +0000 (02:23 +0200)]
bootparamd(8): Add missing function type.
Sascha Wildner [Fri, 25 Jun 2010 00:22:12 +0000 (02:22 +0200)]
libc/citrus: Add missing function type.
Sascha Wildner [Thu, 24 Jun 2010 08:53:10 +0000 (10:53 +0200)]
hangman(6): Ignore case in the word list.
Reported-by: Tim Darby <t+dfbsd@timdarby.net>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1787>
Sascha Wildner [Tue, 22 Jun 2010 10:28:56 +0000 (12:28 +0200)]
sysctl.9: Remove CTLFLAG_NOLOCK.
Removed from <sys/sysctl.h> in
2c8c434fa446d03382c8981b8039da8809759625.
Sascha Wildner [Tue, 22 Jun 2010 10:11:15 +0000 (12:11 +0200)]
getconf.1: The sysconf variable for _POSIX_VERSION is _SC_VERSION.
Joe Talbott [Mon, 21 Jun 2010 19:09:37 +0000 (15:09 -0400)]
ral - Use the correct pointer for ifp.
Joe Talbott [Mon, 21 Jun 2010 15:25:32 +0000 (11:25 -0400)]
netif - Change M_NOWAIT to MB_DONTWAIT in m_defrag() calls.
Discussed-With: aggelos
Sascha Wildner [Mon, 21 Jun 2010 05:10:50 +0000 (07:10 +0200)]
vesa(4): Fix check for DPMS support.
Return 0 (no states) in case function 0x4f10 returns an error.
Alex Hornung [Fri, 18 Jun 2010 16:24:30 +0000 (17:24 +0100)]
MPSAFE work - fix acquisition of vm_token
* vm_page_lookup needs to be called with the vm_token held, but
vm_page_alloc wasn't acquiring it early enough.
Joe Talbott [Thu, 17 Jun 2010 20:19:06 +0000 (16:19 -0400)]
wpi - Include struct arpcom as first entry in struct wpi_softc
As indicated by the comment preceeding the definition of struct ifnet
all ethernet drivers softc structures should start with a struct
arpcom.
Sascha Wildner [Thu, 17 Jun 2010 17:01:40 +0000 (19:01 +0200)]
i4b(4): Remove some dead code.
The interface was removed in
d013484ee03fa3b157747fe22ce523417deff1d6.
Sascha Wildner [Wed, 16 Jun 2010 15:30:12 +0000 (17:30 +0200)]
altq(4): Fix typo in a #define.
Sascha Wildner [Wed, 16 Jun 2010 15:27:02 +0000 (17:27 +0200)]
kern_shutdown.c: Add missing #include (for NGPIO).
Sascha Wildner [Wed, 16 Jun 2010 10:06:28 +0000 (12:06 +0200)]
ioprio_get.2: Remove < and > from an .In.
Sascha Wildner [Tue, 15 Jun 2010 10:05:34 +0000 (12:05 +0200)]
Remove obsolete MLINKS via 'make upgrade'.
Joe Talbott [Mon, 14 Jun 2010 15:11:25 +0000 (11:11 -0400)]
if_ral - Serialzer the interrupt handler.
Venkatesh Srinivas [Mon, 14 Jun 2010 13:34:17 +0000 (06:34 -0700)]
kernel - MPSAFE work - Remove unneeded token acquire/releases in vm_mmap.c
Many calls in vm_mmap did not need to hold the vm_token; the underlying
vm_map_* calls are self-synchronizing via a lockmgr lock on the map itself and
the rest of the calls were synchronized by taking tokens.
Comment the remaining token acquires/releases.
'Less Lock, More Rock'
Venkatesh Srinivas [Mon, 14 Jun 2010 12:59:51 +0000 (05:59 -0700)]
kernel - MPSAFE work - Remove token acquires/releases from vm_zeroidle.c
We do not need the vm_token to get or release pages to/from the free queues;
the vm_page calls are self-synchronizing.
Nicolas Thery [Mon, 14 Jun 2010 11:12:27 +0000 (13:12 +0200)]
kernel - init t_collisions in lwkt_token_init
Nicolas Thery [Sat, 12 Jun 2010 14:17:48 +0000 (16:17 +0200)]
kernel - token - update outdated comments
Nicolas Thery [Sat, 12 Jun 2010 14:02:27 +0000 (16:02 +0200)]
token.9 - bring up to date with token API change
Constantine A. Murenin [Mon, 14 Jun 2010 04:21:52 +0000 (00:21 -0400)]
aibs(4): if-statement spacing; from rpaulo
Sascha Wildner [Mon, 14 Jun 2010 01:25:11 +0000 (03:25 +0200)]
Fix x86_64 buildworld: Use correct type in udevd (size_t -> socklen_t).
Reported-by: Tyler W. Mills <tylermills@gmail.com>
Matthew Dillon [Sun, 13 Jun 2010 18:03:17 +0000 (11:03 -0700)]
kernel - MPSAFE work - fix bugs in recent MPSAFE work.
* pmap_incore() needed the vm_token.
Matthew Dillon [Sun, 13 Jun 2010 16:31:25 +0000 (09:31 -0700)]
kernel - MPSAFE work - fix bugs in recent MPSAFE work.
* Adjust comment for zpfind(), it does not PHOLD() the returned process,
in order to match pfind().
* Adjust two use-cases for zpfind() to hold proc_token across the call,
and to PHOLD/PRELE(p) if necessary, so (p) remains stable.
Reported-by: Venkatesh Srinivas <vsrinivas@crater.dragonflybsd.org>
Matthew Dillon [Sun, 13 Jun 2010 16:16:01 +0000 (09:16 -0700)]
kernel - MPSAFE work - fix bugs in recent MPSAFE work.
* pgfind() and zpfind() were failing to release a token they
had acquired under certain circumstances.
Reported-by: Alex Hornung <ahornung@gmail.com>:
Sascha Wildner [Sun, 13 Jun 2010 12:13:11 +0000 (14:13 +0200)]
kern_udev.c: Fix a -Wold-style-definition warning.
Alex Hornung [Sun, 13 Jun 2010 08:07:25 +0000 (09:07 +0100)]
linux emu - MPSAFE work - acquire token for mmap
Alex Hornung [Sun, 13 Jun 2010 05:48:58 +0000 (05:48 +0000)]
libdevattr - Fix buildworld
Alex Hornung [Sat, 12 Jun 2010 18:01:13 +0000 (18:01 +0000)]
conf.h - minor (accidental) whitespace cleanup
Alex Hornung [Sat, 12 Jun 2010 16:18:11 +0000 (16:18 +0000)]
udevd & libdevattr - Bind into build system
Alex Hornung [Sat, 12 Jun 2010 16:12:07 +0000 (16:12 +0000)]
Bring in udev & libdevattr
* Bring in kern_udev, libdevattr and udevd from my personal repo. This
is still WIP, but basic functionality is available and the API is
stabilizing.
* kern_udev allows the association of certain parameters in form of a
dictionary to each device in the system and provides notification of
attach and detach events.
* udevd is a userland daemon which keeps an up to date list of all
devices and their dictionaries and provides an interface for
libdevattr to acccess and manipulate these devices and related events.
* libdevattr provides a mostly Linux' libudev compatible API to access
device dictionaries and events. Beware that it is NOT a full drop-in
replacement!
Venkatesh Srinivas [Sun, 13 Jun 2010 04:06:13 +0000 (21:06 -0700)]
kernel - MPSAFE work - restore mplock to i386 lwbuf pmap_kremove_quick call.
Matthew Dillon [Sun, 13 Jun 2010 04:04:38 +0000 (21:04 -0700)]
kernel - MPSAFE work - tokenize vm_zone.c
* Tokenize vm/vm_zone.c
Matthew Dillon [Sun, 13 Jun 2010 03:09:50 +0000 (20:09 -0700)]
kernel - MPSAFE work - tokenize more vm stuff
* Tokenize the vkernel entry points. The module is fairly compact so
a per-vkernel token was used right off the bat instead of a global token.
* Also fix a couple of races in the vkernel implementation to make things
more robust.
Sascha Wildner [Sat, 12 Jun 2010 23:56:48 +0000 (01:56 +0200)]
evtranalyze.1: Oops, add back the '.' I removed by mistake.
Sascha Wildner [Sat, 12 Jun 2010 23:12:22 +0000 (01:12 +0200)]
evtranalyze.1: Fix some .El mixup.
Aggelos Economopoulos [Sat, 12 Jun 2010 21:33:21 +0000 (00:33 +0300)]
evtranalyze.1: update and expand manpage
- Update description of the stats command
- Add an EXAMPLES section
- Start sentences on a new line.
Mdoc-review-by: swildner@
Aggelos Economopoulos [Sat, 12 Jun 2010 21:27:21 +0000 (00:27 +0300)]
libevtr: make prototype-less function static
Aggelos Economopoulos [Sat, 12 Jun 2010 02:01:27 +0000 (05:01 +0300)]
evtranalyze: plotting capability
We can now generate histograms and (x, y) line plots
via ploticus (if available)
Aggelos Economopoulos [Sat, 12 Jun 2010 00:17:44 +0000 (03:17 +0300)]
libevtr: abort() on impossible case
Matthew Dillon [Sat, 12 Jun 2010 21:01:05 +0000 (14:01 -0700)]
kernel - MPSAFE work - tokenize more vm stuff
Sascha Wildner [Sat, 12 Jun 2010 20:09:38 +0000 (22:09 +0200)]
sleep.9: Use .Fn instead of .Nm
Sascha Wildner [Sat, 12 Jun 2010 18:13:52 +0000 (20:13 +0200)]
Fix typos in the licenses: withough -> without
Reported-by: vsrinivas
Venkatesh Srinivas [Sat, 12 Jun 2010 17:26:43 +0000 (10:26 -0700)]
Merge branch 'master' of /repository/git/dragonfly
Venkatesh Srinivas [Sat, 12 Jun 2010 17:25:37 +0000 (10:25 -0700)]
kernel - MPSAFE work - tokenize i386 lwbuf
Sascha Wildner [Sat, 12 Jun 2010 16:45:16 +0000 (18:45 +0200)]
network code: Convert if_multiaddrs from LIST to TAILQ.
It can then be traversed backwards in the three drivers which want
to do that.
Taken-from: FreeBSD
Matthew Dillon [Sat, 12 Jun 2010 16:53:22 +0000 (09:53 -0700)]
kernel - MPSAFE work - tokenize more vm stuff