summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2005-01-012005Michael Shalayeff
2004-12-31sprinkle some more list macros in herePedro Martelletto
2004-12-31when releasing a vnode, make it inactive before sticking it to one ofPedro Martelletto
the free lists. should fix some races on filesystems that don't have locks, such as nfs. also, it allows for a more straightforward way of releasing vnodes (nodes that are going to be recycled don't have to be moved to the head of the list). tested by many, thanks. ok tedu@ deraadt@
2004-12-30Import M_CANFAIL support from NetBSD, removes a nasty panic during low-mem ↵Niklas Hallqvist
scenarios, instead generating an ENOMEM backfeed, ok tedu@, prodded by many
2004-12-28when panicing from timeout_add being < 0, print the value; ok miodTheo de Raadt
2004-12-28clean dirty accident by miodTheo de Raadt
2004-12-26Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no change in compiler assembly output.
2004-12-24Do not provide the KERN_EMUL, KERN_EVCOUNT, KERN_INTRCNT, KERN_PROC* andMiod Vallat
HW_SENSORS sysctl trees if option SMALL_KERNEL. ok deraadt@
2004-12-19Set atime and mtime when giving out a new pty. With help from tholo@Todd C. Miller
and OK tedu@
2004-12-12simplify slightly, kill lvalue weirdness that's not ANSI C.Marc Espie
okay nordin@
2004-12-11match comments with reality and use 'null' for pointers in incore()Pedro Martelletto
2004-12-09minor spacing/styling nitsPedro Martelletto
2004-12-08Have kthread_create_deferred() act immediately once kthread_run_deferred_queue()Miod Vallat
has been invoked; forgotten part of the ``create init earlier'' changes. From NetBSD as well. ok deraadt@ dlg@
2004-12-07* add a missing vput() if VOP_SETATTR() fails.Patrick Latifi
ok tedu pedro millert
2004-12-05less then -> less thanJonathan Gray
2004-11-30kill breada(), from Sven Dehmlow. ok tedu@ millert@Pedro Martelletto
2004-11-29Don't use seltrue() in poll ops since it requires v_rdev dereferencingAlexander Yurchenko
which is not possible here. Problem found and fixed by form@. ok millert@ fgsch@ pedro@
2004-11-28mountroothooks are called after the root filesystem is mounted.Theo de Raadt
2004-11-27introduce pffinddomain(), to find a domain by family.Patrick Latifi
while here, fix some spacing, ansi, de-register, etc. mostly from netbsd tested & ok otto millert
2004-11-26Kill __HAVE_EVCOUNT, now that all architectures provide them.Miod Vallat
2004-11-25remove special handling of PF_KEY in net_sysctl; ok deraadtMarkus Friedl
2004-11-23Create the init process earlier, before the root filesystem is mounted,Miod Vallat
and have it stall on a semaphore. This allows all kthread creations which could have been requested during autoconf to be processed before root is mounted as well. This causes umass devices attached to any usb with flags 1 (such as on macppc) to configure properly instead of panicing the kernel at mountroot time. From NetBSD; tested by various.
2004-11-23fix typo in commentHans-Joerg Hoexer
ok deraadt@ markus@
2004-11-22remove netiso since it doesn't exist anymorePatrick Latifi
ok otto henning
2004-11-18handle SONPROC; ok aaron, deraadt, krwMarkus Friedl
2004-11-18enable receive() accounting and use uio_procp for send() accounting, tooMarkus Friedl
ok deraadt, jared, djm
2004-11-10Diff from art@:Alexander Yurchenko
Update ticks in timeout_hardclock_update to avoid errors in hardclock (this is the third time we mess up here). ticks is only used for timeouts anyway. At the same protect updating ticks with timeout_mutex and be slightly more paranoid in timeout_hardclock_update. ok tdeval@ miod@
2004-11-01englishPedro Martelletto
2004-11-01additional DIAGNOSTIC, checking for proc in lockmgr when requiredmarius eriksen
ok pedro@ tedu@
2004-11-01check for malloc() in bufq_default_alloc(), ok tedu@Pedro Martelletto
2004-10-29silly typo...Pedro Martelletto
2004-10-26stylingPedro Martelletto
2004-10-25remove dead 'ifdef tahoe' code, ok millert@ deraadt@Pedro Martelletto
2004-10-14a more reasonable limit for the stackgap_random; found by openbsd@hunger.huMichael Shalayeff
2004-10-04cacheing -> cachingPedro Martelletto
2004-09-29ec_count32 was a bad idea; remove it for good.Miod Vallat
2004-09-23change KERN_INTRCNT_CNT to return a quad; ok teduTheo de Raadt
2004-09-20spl dance to protect buffer flags in a sensitive contextPedro Martelletto
ok millert@ tedu@
2004-09-19constify speedtabs and make ttspeedtab() take a const struct speedtab *Michael Shalayeff
2004-09-17Some cleanup:Alexander Yurchenko
- don't mix unsigned and u_int across the code - un'static some funcs ok art@
2004-09-16Don't put parens around the call to pool_put but do use parens toTodd C. Miller
protect expansion of the kn parameter. OK miod@
2004-09-16add hint for lower layer that a sosend() is in progress (SS_ISSENDING)Markus Friedl
inspired by a posting from David Borman and similar changes in net/freebsd ok mcbride
2004-09-16check for VBAD vnodes on getvnode(). ok andreas@, tedu@ and marius@Pedro Martelletto
2004-09-15Check for num < 0 in sysctl_sensors(); from Patrick Latifi.Alexander Yurchenko
ok millert@
2004-09-15Typo in #endif comment.Alexander Yurchenko
2004-09-15Kill more netiso ghosts.Alexander Yurchenko
ok millert@
2004-08-24back out the last change as it seems to produce problems found by brad@; ↵Michael Shalayeff
deraadt@ ok
2004-08-15protect code dealing with the vnode sync list with splbio(). fixes thePedro Martelletto
'fsync failed' panic on amd64. discussed with and ok'd by art@, tedu@ and deraadt@. tested by many (thanks).
2004-08-06provide md USPACE_ALIGN zero on all but mips; deradat@ pefo@ okMichael Shalayeff
2004-08-05Fix typos. Found by Dries SchellekensArtur Grabowski