summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2006-04-21back out my last commit.David Gwynne
art pointed out that timeout_set is the initializer of timeout structs. this means that the ONQUEUE flag could be set when timeout_set is given freshly allocated memory. my commit suddenly introduced the requirement that you bzero a timeout before initialising it. without the bzero we could generate false positives about the timeout being already queued. art did produce a diff that would walk the queues when the flag was set to see if it really was in the lists, but deraadt considers this too much of a hit.
2006-04-20much -> mustPedro Martelletto
2006-04-19Remove unused mount list simple_lock() gooPedro Martelletto
2006-04-19wdog_init is only called from wdog_register, so fold them in together.David Gwynne
from mk. ok markus@
2006-04-18if you go timeout_set, timeout_add, and then timeout_set again you canDavid Gwynne
screw up the queues that tie all the timeouts together. this makes us panic if we detect that happening. its a lot easier to debug that the weird side effects of broken timeout queues. ok mickey@ kettenis@ deraadt@ pedro@
2006-04-18set the params that govern watchdog behaviour back to defaults when theDavid Gwynne
wdog is shut down. from mk. ok markus@
2006-04-15Repair FIOGETOWN operation; from Alexandre Ratchov.Miod Vallat
2006-04-06release kernel lock _after_ the emulation exit hook is called to protect ↵Michael Shalayeff
possible free()s; tedu@ deraadt@ ok
2006-03-27do not rush putting embrionic process on child/thread/sibling lists and set ↵Michael Shalayeff
timeouts earlier as we can sleep later and get signals and exit and cause all kinds of hell; pedro@ ok
2006-03-26do per file io accounting and show that in fstat as well; pedro@ marco@ okMichael Shalayeff
2006-03-17rev 1.77Brad Smith
m_cat() - if it is safe, copy data portion into 1st mbuf even if 1st mbuf is M_EXT mbuf. rev 1.72 clarify comment on m_cat(). From itojun NetBSD ok claudio@ mcbride@
2006-03-17In m_pulldown avoid a prepend to the next mbuf in the chain if the resultBrad Smith
would still not have all data we want continous. From martin NetBSD ok claudio@ mcbride@
2006-03-16Turn EXTENT_ALIGN into an inline function; shaves about 50 to 100 bytesMiod Vallat
on RISC arches, but m68k loses a few bytes; ok deraadt@
2006-03-15add sysctl_int_lower(). This can read, but can only write to a kernelTheo de Raadt
variable if the result is a lowering of the value; tested matthieu
2006-03-15copyout() the pollfds if poll() gets interrupted. This resets the reventsClaudio Jeker
bitmask and makes poll() behave like documented in the man page. OK deraadt@
2006-03-12sensors_head is only used in kern_sensors.c, so its unnecessay to declareDavid Gwynne
it in sensors.h. from Constantine A. Murenin
2006-03-05Use more queue macros rather than doing it by hand; ok otto@ krw@Miod Vallat
2006-03-05splimp -> splvmBrad Smith
2006-03-04With the exception of two other small uncommited diffs this movesBrad Smith
the remainder of the network stack from splimp to splnet. ok miod@
2006-03-04Typos grab bag of the month, eyeballed by jmc@Miod Vallat
2006-03-04Remove traditional coredump support since all our platforms have properMiod Vallat
cpu_coredump() behaviour.
2006-02-27Do not stupidly panic but return ENOTCONN when trying to pass fds on anMiod Vallat
unconnected socket; reported by Christian Biere <christianbiere at gmx dot de> ok claudio@ deraadt@
2006-02-27When checking syscall numbers, qualify the test with the emulation as well.Niklas Hallqvist
fixes potential panics on emulated binaries. ok deraadt@
2006-02-23Remove unused extent_find(). Then, we can keep the extent list only ifMiod Vallat
option DIAGNOSTIC || option DDB, saves some room on installation media.
2006-02-20Remove historical yet completely undocumented ``is this a tape'' ioctl forMiod Vallat
block devices where ioctl request is zero and data is B_TAPE, which no sane userland program uses those days. General disgust and ok deraadt@ millert@ weingart@
2006-02-20Compile out more rthreads stuff unless option RTHREADS;Miod Vallat
discussed with a few, ok tedu@
2006-01-28get rid of the sensors globals. theyre were only used by sysctl forDavid Gwynne
locating and finding the correct sensor to spit out. instead provide a a sensor_get function that wraps up the access to the vars. theyre now safe inside kern_sensors.c. theres also a touch of whitespace tweaking ok grange@
2006-01-21Remove now unused zeroref member in cfattach structures.Miod Vallat
2006-01-21Make sure cache_revlookup() doesn't return invalid cache entries.Pedro Martelletto
This function will be used in the future. Okay marius@.
2006-01-20revert auto-skew. some ntpd implementations interact poorly.Ted Unangst
2006-01-19redo (w/ proper changes everywhere ;):Michael Shalayeff
take interp[MAXPATHLEN] off the stack. from mickey, ok otto while here, switch above from malloc to pool, remove stupid casts tedu@ miod@ ok
2006-01-19Replace SENSOR_ADD() macro with a pair of functionsAlexander Yurchenko
sensor_add()/sensor_del() so that sensors can be attached and detached dynamicaly. ok kettenis@ deraadt@ dlg@
2006-01-18Fix logic botch when checking for COMPAT_SUNOS binary specifics; repairsMiod Vallat
some TIOCGPGRP result fallout. ok deraadt@
2006-01-13auto adjusting adjtime. be more responsive to large clock deltas,Ted Unangst
and attempt to compensate for incorrect clocks by adjusting ticks slowly. ok deraadt
2006-01-13In config_detach_children(), after detaching a device, restart the deviceMiod Vallat
list walk from its parent device, as the device which was following it may have been one of its children, and thus gone as well. Found the hard way using the strict queue macros. Feedback and help toby@, ok deraadt@
2006-01-09Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.Pedro Martelletto
Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
2006-01-07p_dupfd need only be -1, nothing else. but this is nothing like what aaron ↵Theo de Raadt
has coming...
2006-01-07Backout last revision, it's broken. Try pkg_add redhat_base-8.0p7 on i386Aaron Campbell
to see; page fault trap in linux_elf_probe (char *itp is being passed as NULL and then "if (itp[0])" attempts to dereference it). deraadt@ "trash it asap"
2006-01-06typo fix from ray lai;Jason McIntyre
ok deraadt
2006-01-06oring in PCATCH doesn't help if we don't pass the right prio to tsleepTed Unangst
2006-01-06check in of "rwlock.20051230" from art.Ted Unangst
mostly cleanup and simplification, though now also supporting upgrade and downgrade via the magic wand.
2006-01-06take interp[MAXPATHLEN] off the stack. from mickey, ok ottoTed Unangst
while here, switch above from malloc to pool, remove stupid casts
2006-01-05ansi/deregisterJonathan Gray
2006-01-05if a kthread fails to call kthread_exit() but instead returns,Ted Unangst
bad things happen. fix acct thread. from art
2006-01-03Make #undef match its temporary #define.Miod Vallat
2006-01-03remove duplicate comment;Jason McIntyre
from thordur i. bjornsson;
2006-01-02regenJonathan Gray
2006-01-02Make this generate code with ansi function declarations.Jonathan Gray
No binary change in compiled version of generated file.
2006-01-012006Miod Vallat
2005-12-31Split the d_type field of cdevsw entries into d_type and d_flags for clarity.Miod Vallat
Discussed with and ok deraadt@ millert@