summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Collapse)Author
2010-07-03Fix the naming of interfaces and variables for rdomains and rtablesPhilip Guenthe
and make it possible to bind sockets (including listening sockets!) to rtables and not just rdomains. This changes the name of the system calls, socket option, and ioctl. After building with this you should remove the files /usr/share/man/cat2/[gs]etrdomain.0. Since this removes the existing [gs]etrdomain() system calls, the libc major is bumped. Written by claudio@, criticized^Wcritiqued by me
2010-07-03no need for syncdelay to be a time_t, make it it an int. unstatic variablesThordur I. Bjornsson
so I can twiddle them from ddb (not that I will mess with the hashmask, but static burns). ok tedu@
2010-07-03replace 0 with equivalent allocation flag. ok thibTed Unangst
2010-07-03explicitly specify flags to malloc and pool_get instead of relying on 0.Ted Unangst
This is more clear, and as thib pointed out, the default in softraid was wrong. ok thib.
2010-07-02remove support for compat_sunos (and m68k4k). ok deraadt guentherTed Unangst
2010-07-02Since fill_eproc() is no longer called from coredump(), it can be droppedPhilip Guenthe
from small kernels "yes" deraadt@
2010-07-02Move common code for waking up writers on a tty into a function.Nicholas Marriott
ok deraadt matthew millert
2010-07-02timeout_add -> timeout_add_msecBret Lambert
ok claudio@ krw@
2010-07-02m_copyback can fail to allocate memory, but is a void fucntion so gymnasticsBret Lambert
are required to detect that. Change the function to take a wait argument (used in nfs server, but M_NOWAIT everywhere else for now) and to return an error ok claudio@ henning@ krw@
2010-07-02add an align argument to uvm_km_kmemalloc_pla.Artur Grabowski
Use uvm_km_kmemalloc_pla with the dma constraint to allocate kernel stacks. Yes, that means DMA is possible to kernel stacks, but only until we've fixed all the scary drivers. deraadt@ ok
2010-07-02structure copy the unp_connid to the other socketTheo de Raadt
2010-07-01regenTed Unangst
2010-07-013.5 compat is old, but relied upon by other compats still in tree. theTed Unangst
fhstat syscall, however, isn't needed and can go away. ok deraadt
2010-07-01Oops. Lost the < 0 check on file position I had in the circulatedKenneth R Westerback
diff. A bit of paranoia suggested by beck@.
2010-07-01Implement vs{,un}lock_device and use it for physio.Artur Grabowski
Just like normal vs{,un}lock, but in case the pages we get are not dma accessible, we bounce them, if they are dma acessible, the functions behave exactly like normal vslock. The plan for the future is to have fault_wire allocate dma acessible pages so that we don't need to bounce (especially in cases where the same buffer is reused for physio over and over again), but for now, keep it as simple as possible.
2010-07-01constrain malloc to only grab pages from dma reachable memory.Thordur I. Bjornsson
Do this by calling uvm_km_kmemalloc_pla with the dma_constraint. ok art@ (ofcourse, he eats his cereal and okeys everything). OK beck@, deraadt@
2010-07-01pool setconstraints must be called immediately after pool_init, otherwiseBob Beck
if we allocate memory before applying constraints we get memory outside the constraints allocated in the pool. this is bad. ok claudio@
2010-07-01SO_PEERCRED should return ENOTCONN when the sockets are not connectedTheo de Raadt
2010-07-01Return EINVAL if the file position is greater than LONG_MAX, sinceKenneth R Westerback
otherwise truncation will occur on archs where LONG LONG and LONG are not the same. Noticed at n2k10. Error return suggested by deraadt@. ok beck@ millert@ deraadt@ guenther@
2010-07-01another day, another compat gets removed. today is ibcs2's turnTed Unangst
2010-07-01SO_PEERCRED should pass out the main pid, not the "pid" of the currentTheo de Raadt
thread. Discussion with guenther.
2010-07-01Call bufq_done at the top of biodone, so we don't call it onThordur I. Bjornsson
a freed buf as that causes problems...
2010-07-01Always identify threads with THREAD_PID_OFFSET, so that there's noPhilip Guenthe
way a kill() intended for a thread can result in a separate process getting the signal. ok tedu@ art@
2010-07-01syncTheo de Raadt
2010-07-01compat_o43 and compat_23 are no longer optionsTheo de Raadt
2010-07-01compat_o43 and compat_23 can dieTheo de Raadt
2010-06-30Disable/partially backout the bufq quiesce changes as thisThordur I. Bjornsson
is causing havoc with vnds and release must be buildable.
2010-06-30This comment is unnecessarily confusing.Artur Grabowski
2010-06-30Silence the activation debug reporting. We are starting to get worriedTheo de Raadt
that there are interactions when we print in the various (saved, post-saved, pre-restored, and restored) vga states, especially with how intel drm is getting involved. If your machine has issues, you may want to activate these messages again to help debug things better. ok mlarkin
2010-06-30style nitThordur I. Bjornsson
2010-06-30remove compat_osf1 support from the kernelTed Unangst
ok deraadt miod
2010-06-30Add getsockopt SOL_SOCKET SO_PEERCRED support. This behaves similar toTheo de Raadt
getpeereid(2), but also supplies the remote pid. This is supplied in a 'struct sockpeercred' (unlike Linux -- they showed how little they know about real unix by calling theirs 'struct ucred'). ok guenther ajacoutot
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