summaryrefslogtreecommitdiffstats
path: root/sys/kern (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix pr4036, don't set p2->p_cpu to nulltedu2005-02-241-2/+2
| | | | ok deraadt miod markus
* When setting kern.tty.maxptys, store the old value in oldp, notmillert2005-01-281-17/+15
| | | | | | random stack garbage. Rename DEFAULT_NPTYS and DEFAULT_MAXPTYS to NPTY_MIN and NPTY_MAX to better match their function and don't allow setting kern.tty.maxptys > NPTY_MAX.
* First step in Bluetooth protocol stack support.grange2005-01-141-1/+5
| | | | | | | | | | The code is adopted from the FreeBSD netgraph-based Bluetooth implementation by Maksim Yevmenkin <m_evmenkin@yahoo.com> but all netgraph glue was replaced with usual BSD network stack hooks. This is a work in progress. Only HCI layer works for now, L2CAP and RFCOMM are on the way. Help in testing from many, ok markus@.
* change vget() to only put a vnode back on the free lists if it actuallypedro2005-01-101-6/+8
| | | | | was there. should fix a (rare) corner case introduced by my last commit. ok tedu@, testing by joris, moritz@, danh@, otto@ and krw@. many thanks.
* 2005mickey2005-01-011-2/+2
|
* sprinkle some more list macros in herepedro2004-12-311-5/+6
|
* when releasing a vnode, make it inactive before sticking it to one ofpedro2004-12-311-6/+20
| | | | | | | | | 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@
* Import M_CANFAIL support from NetBSD, removes a nasty panic during low-mem scenarios, instead generating an ENOMEM backfeed, ok tedu@, prodded by manyniklas2004-12-301-5/+6
|
* when panicing from timeout_add being < 0, print the value; ok miodderaadt2004-12-281-2/+2
|
* clean dirty accident by miodderaadt2004-12-281-2/+2
|
* Use list and queue macros where applicable to make the code easier to read;miod2004-12-2614-99/+93
| | | | no change in compiler assembly output.
* Do not provide the KERN_EMUL, KERN_EVCOUNT, KERN_INTRCNT, KERN_PROC* andmiod2004-12-242-4/+25
| | | | | HW_SENSORS sysctl trees if option SMALL_KERNEL. ok deraadt@
* Set atime and mtime when giving out a new pty. With help from tholo@millert2004-12-191-2/+11
| | | | and OK tedu@
* simplify slightly, kill lvalue weirdness that's not ANSI C.espie2004-12-121-8/+9
| | | | okay nordin@
* match comments with reality and use 'null' for pointers in incore()pedro2004-12-111-7/+4
|
* minor spacing/styling nitspedro2004-12-091-12/+8
|
* Have kthread_create_deferred() act immediately once kthread_run_deferred_queue()miod2004-12-081-2/+12
| | | | | | has been invoked; forgotten part of the ``create init earlier'' changes. From NetBSD as well. ok deraadt@ dlg@
* * add a missing vput() if VOP_SETATTR() fails.pat2004-12-071-2/+4
| | | | ok tedu pedro millert
* less then -> less thanjsg2004-12-051-2/+2
|
* kill breada(), from Sven Dehmlow. ok tedu@ millert@pedro2004-11-301-14/+1
|
* Don't use seltrue() in poll ops since it requires v_rdev dereferencinggrange2004-11-291-2/+3
| | | | | | which is not possible here. Problem found and fixed by form@. ok millert@ fgsch@ pedro@
* mountroothooks are called after the root filesystem is mounted.deraadt2004-11-282-2/+6
|
* introduce pffinddomain(), to find a domain by family.pat2004-11-271-48/+47
| | | | | | | | while here, fix some spacing, ansi, de-register, etc. mostly from netbsd tested & ok otto millert
* Kill __HAVE_EVCOUNT, now that all architectures provide them.miod2004-11-262-48/+2
|
* remove special handling of PF_KEY in net_sysctl; ok deraadtmarkus2004-11-251-18/+2
|
* Create the init process earlier, before the root filesystem is mounted,miod2004-11-234-36/+116
| | | | | | | | | | | 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.
* fix typo in commenthshoexer2004-11-231-2/+2
| | | | ok deraadt@ markus@
* remove netiso since it doesn't exist anymorepat2004-11-222-4/+3
| | | | ok otto henning
* handle SONPROC; ok aaron, deraadt, krwmarkus2004-11-182-4/+5
|
* enable receive() accounting and use uio_procp for send() accounting, toomarkus2004-11-181-5/+3
| | | | ok deraadt, jared, djm
* Diff from art@:grange2004-11-102-4/+10
| | | | | | | | | 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@
* englishpedro2004-11-011-2/+2
|
* additional DIAGNOSTIC, checking for proc in lockmgr when requiredmarius2004-11-011-1/+5
| | | | ok pedro@ tedu@
* check for malloc() in bufq_default_alloc(), ok tedu@pedro2004-11-011-1/+4
|
* silly typo...pedro2004-10-291-2/+2
|
* stylingpedro2004-10-261-4/+4
|
* remove dead 'ifdef tahoe' code, ok millert@ deraadt@pedro2004-10-251-4/+1
|
* a more reasonable limit for the stackgap_random; found by openbsd@hunger.humickey2004-10-141-2/+2
|
* cacheing -> cachingpedro2004-10-042-5/+5
|
* ec_count32 was a bad idea; remove it for good.miod2004-09-291-42/+1
|
* change KERN_INTRCNT_CNT to return a quad; ok teduderaadt2004-09-232-5/+4
|
* spl dance to protect buffer flags in a sensitive contextpedro2004-09-201-3/+3
| | | | ok millert@ tedu@
* constify speedtabs and make ttspeedtab() take a const struct speedtab *mickey2004-09-191-2/+2
|
* Some cleanup:grange2004-09-171-5/+7
| | | | | | | - don't mix unsigned and u_int across the code - un'static some funcs ok art@
* Don't put parens around the call to pool_put but do use parens tomillert2004-09-161-2/+2
| | | | protect expansion of the kn parameter. OK miod@
* add hint for lower layer that a sosend() is in progress (SS_ISSENDING)markus2004-09-161-1/+6
| | | | | inspired by a posting from David Borman and similar changes in net/freebsd ok mcbride
* check for VBAD vnodes on getvnode(). ok andreas@, tedu@ and marius@pedro2004-09-161-1/+8
|
* Check for num < 0 in sysctl_sensors(); from Patrick Latifi.grange2004-09-151-2/+2
| | | | ok millert@
* Typo in #endif comment.grange2004-09-151-2/+2
|
* Kill more netiso ghosts.grange2004-09-151-4/+1
| | | | ok millert@