summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
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
2004-08-05don't attempt to put processes back in a directory after unmount.Ted Unangst
it could never always work, and worse, may cause other bugs/crashes.
2004-08-04hardclock detects if ITIMER_VIRTUAL and ITIMER_PROF have expired andArtur Grabowski
sends SIGVTALRM and SIGPROF to the process if they had. There is a big problem with calling psignal from hardclock on MULTIPROCESSOR machines though. It means we need to protect all signal state in the process with a lock because hardclock doesn't obtain KERNEL_LOCK. Trying to track down all the tentacles of this quickly becomes very messy. What saves us at the moment is that SCHED_LOCK (which is used to protect parts of the signal state, but not all) happens to be recursive and forgives small and big errors. That's about to change. So instead of trying to hunt down all the locking problems here, just make hardclock not send signals. Instead hardclock schedules a timeout that will send the signal later. There are many reasons why this works just as good as the previous code, all explained in a comment written in big, friendly letters in kern_clock. miod@ ok noone else dared to ok this, but noone screamed in agony either.
2004-08-04Uninline vputonfreelist.Artur Grabowski
2004-08-04Even when we have timecounters we still have to do the check for secondaryArtur Grabowski
cpus calling hardclock and the statclock emulation. Move some ifdef __HAVE_TIMECOUNTER code.
2004-08-04- Match time_second and time_uptime prototypes.Artur Grabowski
- Less chatty.
2004-08-04better commentsPedro Martelletto
2004-08-03Fix a minor bug where indirect config crashes the kernelPer Fogelstrom
when match verbose is turend on.
2004-08-03NFS commit coalescion: instead of sending a commit for each block, coalescemarius eriksen
these into larger ranges wherever possible. this should speed up NFS writes quite a bit. ok art@ millert@ pedro@ tedu@
2004-08-03Print more diagnostics on fsync failure in sched_sync.Artur Grabowski
2004-08-02- check for LK_NOWAIT on vget()Pedro Martelletto
- use ltsleep() instead of the unlock + sleep combo ok art@, inspiration from free/net
2004-08-01leave space for stackgap on growsuppersMichael Shalayeff
2004-07-29proper condition for freeing a page and fix a comment appropriately; art@ ↵Michael Shalayeff
tedu@ ok
2004-07-29put the scheduler in its own file. reduces clutter, and logically separatesTed Unangst
"put this process to sleep" and "find a process to run" operations. no functional change. ok art@
2004-07-28This touches only MI code, and adds new time keeping code. TheThorsten Lockert
code is all conditionalized on __HAVE_TIMECOUNTER, and not enabled on any platforms. adjtime(2) support exists, courtesy of nordin@, sysctl(2) support and a concept of quality for each time source attached exists. High quality time sources exists for PIIX4 ACPI timer as well as some AMD power management chips. This will have to be redone once we actually add ACPI support (at that time we need to use the ACPI interfaces to get at these clocks). ok art@ ken@ miod@ jmc@ and many more