summaryrefslogtreecommitdiff
path: root/sys/kern/kern_subr.c
AgeCommit message (Collapse)Author
2001-06-23Since malloc in hashinit can get M_NOWAIT flags, we shouldArtur Grabowski
check the return value.
2000-09-07On resume run the powerhook in installation order.Artur Grabowski
(the powerhooks were always run in reverse order).
2000-09-07Put powerhooks on a CIRCLEQ instead of LIST.Artur Grabowski
Use FOREACH macros instead of walking the list manually.
2000-09-07Run powerhooks at splhigh.Artur Grabowski
2000-09-05Wrap power hooks in splimp(), fixes WaveLAN suspend problem; thanks art@Aaron Campbell
2000-04-19Remove the roundrobin_attempts hack and replace it with per-process schedulingArtur Grabowski
flags (much nicer for future smp work). Add two generic functions yield() and preempt(). Use preepmt() in uio when we are told to yield. Based on my idea, code written by Jason Thorpe from NetBSD.
2000-03-03If we attempted reschedule two times without suceeding, uiomove will yield,Artur Grabowski
giving other processes a chance to run. A process feeding a huge buffer to {read,write}{,v} on a file that doesn't need to wait for I/O, could have hogged a lot of cpu in the kernel, blocking all userland activity. Based on a similiar fix in FreeBSD.
1999-11-07add APM powerhooks.Niels Provos
from NetBSD, Sat Jun 26 08:25:25 1999 UTC by augustss: Add powerhooks, i.e., the ability to register a function that will be called when the machine does a suspend or resume. XXX Will go away when Jason's kevents come to life.
1999-04-28zap the newhashinit hack.Artur Grabowski
Add an extra flag to hashinit telling if it should wait in malloc. update all calls to hashinit.
1999-02-26uvm uses kcopy when uiomoving from sysspaceArtur Grabowski
1999-02-26Add newhashinit(), which is identical to hashinit() except it takes a flagsTodd C. Miller
arg for passing to malloc() (hashinit always uses M_WAITOK which is not always what you want). Everything that uses hashinit should really get converted to newhashinit and then newhashinit can be renamed.
1998-07-28Return EINVAL when msg_iovlen or iovcnt <= 0; Make uio_resid unsigned ↵Todd C. Miller
(size_t) and don't return EINVAL if it is < 0 in sys_{read,write}. Remove check for uio_resid < 0 uiomove() now that uio_resid is unsigned and brack remaining panics with #ifdef DIAGNOSTIC. vn_rdwr() must now take a size_t * as its 9th argument so change that and clean up uses of vn_rdwr(). Fixes 549 + more
1998-05-11compile if iov_base is void *Theo de Raadt
1997-02-24OpenBSD tagsNiklas Hallqvist
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-04-17Removed vax ifdefed function from kern_subr.c (from NetBSD).Michael Shalayeff
Do sync in the order of umount (vfs_syscals.c), as it was pointed by someone in NetBSD's lists.
1995-10-18initial import of NetBSD treeTheo de Raadt