summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2001-03-02Casting magic to avoid warnings on alpha.Artur Grabowski
2001-03-01syncNiels Provos
2001-03-01port kqueue changes from freebsd, plus all required openbsd glue.Niels Provos
okay deraadt@, millert@ from jlemon@freebsd.org: extend kqueue down to the device layer, backwards compatible approach suggested by peter@freebsd.org
2001-02-27Move buf_undirty and tbp flags manipulation back before calling theConstantine Sapuntzakis
soft updates code
2001-02-27art@ found a race in getnewbuf. bawrite can block so we need to restartConstantine Sapuntzakis
the whole buffer allocation process
2001-02-27Add wakeup_n and wakeup_one. wakeup_n will wakeup up to n sleeping processesConstantine Sapuntzakis
2001-02-27Instead of doing VOP_ISLOCKED, vn_lock(..LK_RETRY..) we can do ↵Artur Grabowski
vn_lock(..LK_NOWAIT..). Also, when we fail to get the lock on the vnode we want to sync, push it ahead one second in time. XXX - this could lead to some vnodes not being synced for a long time, but that is better than a panic.
2001-02-26regenArtur Grabowski
2001-02-26Since VLOCKSWORK is only set when LOCKDEBUG is defined,Artur Grabowski
ifdef the VOP_ISLOCKED code with LOCKDEBUG instead of DIAGNOSTIC.
2001-02-26regenArtur Grabowski
2001-02-26Indentation nit in the generated code.Artur Grabowski
2001-02-26Move v_writecount test back to it original placeConstantine Sapuntzakis
2001-02-26Make ref counts 32-bit unsigned ints as opposed to a potpourri of longs andConstantine Sapuntzakis
ints.
2001-02-24Move splbio's around so that they cover the data structures they need toConstantine Sapuntzakis
and don't cover the ones they don't
2001-02-24Cleanup of vnode interface continues. Get rid of VHOLD/HOLDRELE.Constantine Sapuntzakis
Change VM/UVM to use buf_replacevnode to change the vnode associated with a buffer. Addition v_bioflag for flags written in interrupt handlers (and read at splbio, though not strictly necessary) Add vwaitforio and use it instead of a while loop of v_numoutput. Fix race conditions when manipulation vnode free list
2001-02-23Try to avoid sleeping in the syncer waiting for vnode locks.Constantine Sapuntzakis
From FreeBSD
2001-02-23Change the B_DELWRI flag using buf_dirty and buf_undirty instead ofConstantine Sapuntzakis
manually twiddling it. This allows the buffer cache to more easily keep track of dirty buffers and decide when it is appropriate to speed up the syncer. Insipired by FreeBSD. Look over by art@
2001-02-23Remove the clustering fields from the vnodes and place them in theConstantine Sapuntzakis
file system inode instead
2001-02-22avoid sign extension for %bMichael Shalayeff
2001-02-22ELF uses more than 5 vmcmds by default, so grow the default vmcmd set sizeArtur Grabowski
to 8. At the same time it seemed like a good idea to avoid to always malloc a new vmcmd array, so put the default sized array into struct exec_vmcmd_set. We might want to make a linked list of vmcmd arrays or exec_vmcmd_sets instead of reallocating them some time in the future, but right now this seems like a waste of time.
2001-02-21Latest soft updates from FreeBSD/Kirk McKusickConstantine Sapuntzakis
Snapshot-related code has been commented out.
2001-02-20Add M_ZERO option to malloc. Causes malloc to return a zero'ed buffer.Constantine Sapuntzakis
Used by the new soft updates code
2001-02-20use void * consistently in vfs_mount and sys_mount. ok @artassar
2001-02-19Indentation nit.Artur Grabowski
2001-02-19When doing an assertion for phz, just do it once when we set phz,Artur Grabowski
not once per process.
2001-02-19Fix LOCKDEBUG compile.Artur Grabowski
2001-02-19Clean up spl handling.Artur Grabowski
2001-02-16typo (incidentally, removed a bogus -k in the cvs file, the updateMarc Espie
will trigger $OpenBSD$ fill-in)
2001-02-14make sure we do not pass shared M_EXT mbuf. will avoidJun-ichiro itojun Hagino
possible shared mbuf overwrite if we use bridge/multicast/loopback/whatever. sync with kame
2001-02-13More sane spl handling. Don't just assume that we're called at spl0.Artur Grabowski
2001-02-13No need to cast splx to (void).Artur Grabowski
2001-02-13Use MIN, not min when counting the pages we steal.Artur Grabowski
min is a function taking u_int arguments and we are counting signed longs here.
2001-02-13KNFTheo de Raadt
2001-02-12Check if softdep is enabled for this fs before calling softdep'sFederico G. Schwindt
fsync; art@ ok.
2001-02-10new symbol handling in ddb for ELF, there is still a problem with hangman on ↵Niklas Hallqvist
alpha though..
2001-02-09return error from soaccept() upwards. part of accept(2) fix against RSTJun-ichiro itojun Hagino
right after handshake.
2001-02-08do not print stuff when not verboseMichael Shalayeff
2001-02-07return ECONNABORTED, if the socket (tcp connection for example)Jun-ichiro itojun Hagino
is disconnected by RST right before accept(2). fixes NetBSD PR 10698/12027. checked with SUSv2, XNET 5.2, and Stevens (unix network programming vol 1 2nd ed) section 5.11.
2001-02-06spelling and KNF.Federico G. Schwindt
2001-02-05only attach pseudo-device if it's counter is above zero; deraadt@, maja@ okMichael Shalayeff
2001-02-05If kernel is compile with support for DDB add a ddb command to enterMats O Jansson
ddb from boot -c. -moj
2001-02-04Add support for pseudo devices. Based on the new code in config.Mats O Jansson
N.B. this change requires the kernel to be configured with a new config since it need new information from ioconf.c. -moj ok @deraadt
2001-02-03Do a check for the OpenBSD note before doing any emulation probes.Artur Grabowski
This way OpenBSD will be explicitly treated first and not handled as a fallback. This should speed archs with many emulations.
2001-01-31add kern.cp_time sysctl, to be used by various thingsTheo de Raadt
2001-01-29Allow syscall aliasing to allow for multiple linux syscalls to be mappedjasoni
to the same native syscall. To quote Jaromir's NetBSD commit if the third argument in syscall.conf matches [a-z0-9_], use it as a function alias instead of the function name in { ... } - from NetBSD, deraadt@ ok.
2001-01-25spellingTodd T. Fries
2001-01-24KGDB for i386 from NetBSD via niklas, with tweaks and accommodations.Hugh Graham
Tested by various, vetted by mickey & theo.
2001-01-23when the peer is disconnected before accept(2) is issued,Jun-ichiro itojun Hagino
do not return junk data in mbuf (= sockaddr on accept(2)'s 2nd arg). set the length to zero. behavior checked with bsdi and freebsd. partial solution to NetBSD PR 12027 and 10698 (need more investigation).
2001-01-22NATIVE_ELF -> NATIVE_EXEC_ELF (just some leftovers)Artur Grabowski
2001-01-17do not call extent_print() unless DDB || DIAGNOSTICTheo de Raadt