summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2010-06-30Call msleep(9) with PNORELOCK rather than calling mtx_leave()Matthew Dempsky
immediately afterwards. ok thib@, tedu@
2010-06-30Switch bufq FIFO disclipline from using TAILQs to SIMPLEQs.Matthew Dempsky
ok thib@
2010-06-30lots of SCARG simplification. ok matthewTed Unangst
2010-06-30Move the plimit and pcred bits in fork1() into process_new() and makePhilip Guenthe
process_new() handle the new struct process like fork1() does struct proc, with a range of members zeroed and a range copied from the parent process. ok tedu@
2010-06-29Strip out ancient bits in struct user that were still used only byPhilip Guenthe
the now-removed HPUX compat code. ok and build testing deraadt@
2010-06-29Add a no_constraint uvm_constraint_range; use it in the pool code.Thordur I. Bjornsson
ok tedu@, beck@, oga@
2010-06-29Remove COMPAT_HPUX. No one wanted to support it and its fewmets werePhilip Guenthe
blocking other cleanups ok miod@
2010-06-29We always copy struct pcred when creating a new process, so the referencePhilip Guenthe
count was always one. That's pointless, so remove the member and the code. ok tedu@
2010-06-29Eliminate struct plimit's PL_SHAREMOD flag: it was for COMPAT_IRIXPhilip Guenthe
sproc() support, but we don't have COMPAT_IRIX. ok krw@ tedu@
2010-06-29remove the compat43 ifdef around some code. in effect, it's always beenTed Unangst
in compat mode and there's no harm continuing that way. ok dlg deraadt guenther miod thib
2010-06-29Introduce bufq_quiesce(), which will block I/O ifrom getting on the queues,Mark Kettenis
and waits until all I/O currently on the queues has been completed. To get I/O going again, call bufq_restart(). To be used for suspend/resume. Joint effort with thib@, tedu@; tested by mlarkin@, marco@
2010-06-29COMPAT_ULTRIX is not used, time to retire it. ok deraadt miodTed Unangst
2010-06-29Remove the "if the string address faulted, see if it looks like an int"Ted Unangst
4.3 compat code in mount. This is a flag day for those of you still running 4.3 BSD binaries on your vaxen. :) ok deraadt dlg guenther thib
2010-06-29Fail instead of lying if a process asks sysctl()'s KERN_PROC2 orPhilip Guenthe
KERN_FILE2 (or their libkvm wrappers) for more information than the running implementation knows how to provide. ok millert@ deraadt@
2010-06-29makefstype was only used in ported from freebsd filesystems. fix themTed Unangst
and remove the function. ok thib
2010-06-29eliminate some very redundant SCARG usage. ok artTed Unangst
2010-06-29correct some minor style violationsTed Unangst
2010-06-29less SCARG, more pretty. ok guentherTed Unangst
2010-06-29some late breaking style comments from guentherTed Unangst
2010-06-29regenTed Unangst
2010-06-29Eliminate RTHREADS kernel option in favor of a sysctl. The actual statusTed Unangst
(not done) hasn't changed, but now it's less work to test things. ok art deraadt
2010-06-28<sys/time.b> is for ftime(), which is just in libcompat and not the kernel,Philip Guenthe
so stop including it in kernel .c files. "sure" deraadt@
2010-06-28clock_gettime(CLOCK_PROF) didn't account for the time between the lastArtur Grabowski
context switch and the call to clock_gettime. oga@ ok
2010-06-28Add the rtable id as an argument to rn_walktree(). Functions likeClaudio Jeker
rt_if_remove_rtdelete() need to know the table id to be able to correctly remove nodes. Problem found by Andrea Parazzini and analyzed by Martin Pelikán. OK henning@
2010-06-28Allow tty drivers to request larger buffers at attach time using aTheo de Raadt
max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new situation. The larger buffers are required by the very high speed KDDI devices in Japan (CF com, or USB ucom) so those are the only two drivers which currently ask for a larger buffer size. ok yasuoka miod
2010-06-27garbage collect the debugging gooThordur I. Bjornsson
2010-06-27Add missing $OpenBSD$.Mark Kettenis
2010-06-27A process on the zombie list can have a NULL p_pgrp if it sleeps whenPhilip Guenthe
grabbing allproclk in proc_zap(); don't dereference the process's p_pgrp if that happens. ok art@ thib@
2010-06-27uvm constraints. Add two mandatory MD symbols, uvm_md_constraintsThordur I. Bjornsson
which contains the constraints for DMA/memory allocation for each architecture, and dma_constraints which contains the range of addresses that are dma accessable by the system. This is based on ariane@'s physcontig diff, with lots of bugfixes and additions the following additions by my self: Introduce a new function pool_set_constraints() which sets the address range for which we allocate pages for the pool from, this is now used for the mbuf/mbuf cluster pools to keep them dma accessible. The !direct archs no longer stuff pages into the kernel object in uvm_km_getpage_pla but rather do a pmap_extract() in uvm_km_putpages. Tested heavily by my self on i386, amd64 and sparc64. Some tests on alpha and SGI. "commit it" beck, art, oga, deraadt "i like the diff" deraadt
2010-06-27Factor out code used to read a disklabel. We'll be making use of this soon.Joel Sing
ok deraadt@
2010-06-26Don't #include <sys/user.h> into files that don't need the stuffPhilip Guenthe
it defines. In some cases, this means pulling in uvm.h or pcb.h instead, but most of the inclusions were just noise. Tested on alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax, mostly by krw and naddy. ok krw@
2010-06-23No need to do the splbio/splx dance around the pool_get inThordur I. Bjornsson
getphysbuf() as the bufpool is already protected. From Matthew Dempsky <matthew at dempsky dot org> OK blambert@
2010-06-21No need to include mutex.h twice.Thordur I. Bjornsson
Pointed out by Jung <moorang at gmail dot com>
2010-06-20Add some missing includes, so we do not have implicit functionPeter Hessler
declarations. OK miod@, millert@
2010-06-19Skip exiting procesess in sysctl_file2(). As processes in exit1()Thordur I. Bjornsson
do a pdfree() way before they remove themself from the allproc list. This prevents a null deref found by todd@. Joint work with mikeb OK millert@, tedu@
2010-06-17aligment -> alignmentMiod Vallat
2010-06-10Declare safepri at the MD level on each platform, so that the kern_synch.cTheo de Raadt
does not have to deal with it as a common. Some platforms may be missed by this commit... if you spot one, fix it the same way. ok miod
2010-06-07Replace some handrolled instances of m_getptr() with that function, whichBret Lambert
also gets a bit of a KNF scrubbing at claudio@'s insistence. Shaves some bytes from the kernel as well. tested by phessler@ and zinovnik@, thanks ok claudio@
2010-06-01add beagle, mentioned by drahnTheo de Raadt
2010-05-31This file never contained anything of value.Theo de Raadt
2010-05-31Completely rewrite the tags file creation process. use config(8) againstTheo de Raadt
a fat kernel (GERERIC or GENERIC.MP) into a temporary dir, then extract some variables using make -V, and after some more singing and dancing use this full and (more) correct list of files with ctags. Don't read this code. ok guenther
2010-05-31attempt to partially update the list of arch's and src dirs, though weTheo de Raadt
really should do this more automatically (ideas being discussed) ok guenther
2010-05-30Tweak bufq code to handle corner cases. Makes upcoming cd(4)Kenneth R Westerback
conversion to bufq work. Taken from n2k10 scsi buf queueing code. ok thib@
2010-05-29As noted by art, two processes with the same pid would be bad. GrabPhilip Guenthe
the allproclk before searching for a free pid so that we don't sleep between picking one and adding it to the list that is searched. Also, keep holding the lock until after the PIDHASH update. ok art@, tedu@
2010-05-28Delete a fallback definition for CPU_INFO_UNIT that's both unnecessaryPhilip Guenthe
and incorrect. Kills an XXX comment. ok syuu, thib, art, kettenis, millert, deraadt
2010-05-27Switch the signal status "percent" sensor, which is currentlyStuart Henderson
hardcoded(!), over to an "indicator" sensor type, value depending on whether the GPS has fix. ok deraadt@
2010-05-26Trying this again. Mixing anoncvs with cvs is _not_ a good idea.Thordur I. Bjornsson
Reintroduce bufqs. A few changes since it was backed out after some good comments from dlg@. No need for a separate bufq.h, keep all of in buf.h; As requested by kittens and deraadt. Only sd(4) and wd(4) for now. The rest of the drivers will be converted soon, also other goodies like heuristics for sd(4) for selecting the bufq type and the death of disksort() are forthcoming. Tested on: i386, amd64, sparc64, macppc, loongson and alpha by myself and phessler. OK art@, beck@, kettenis@, oga@
2010-05-26Bad tedu, no cookie.Owain Ainsworth
Don't set SDEAD on the process in exit1 untile we have grabbed the allproclk. allproclk is a rwlock and thus we may sleep to grab hold of it. This is a big of a bugger when we just set a flag that means we panic if we sleep. ok art@. turns Tom Murphy's fstat panic into a deadlock instead *sigh*, this is being looked into.
2010-05-25Actively remove processes from the runqueues of a CPU when we stop it.Mark Kettenis
Also make sure not to take the scheduler lock once we have stopped a CPU such that we can safely take it away without having to worry about deadlock because it happened to own the scheduler lock. Fixes issues with suspen on SMP machines. ok mlarkin@, marco@, art@, deraadt@
2010-05-20Don't dereference cp to shut gcc4 up (the intent anyway).Marco Peereboom
ok drahn oga