summaryrefslogtreecommitdiff
path: root/sys/kern/kern_subr.c
AgeCommit message (Collapse)Author
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