Age | Commit message (Collapse) | Author |
|
Pointed out by Jung <moorang at gmail dot com>
|
|
declarations.
OK miod@, millert@
|
|
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@
|
|
|
|
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
|
|
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@
|
|
|
|
|
|
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
|
|
really should do this more automatically (ideas being discussed)
ok guenther
|
|
conversion to bufq work. Taken from n2k10 scsi buf queueing code.
ok thib@
|
|
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@
|
|
and incorrect. Kills an XXX comment.
ok syuu, thib, art, kettenis, millert, deraadt
|
|
hardcoded(!), over to an "indicator" sensor type, value depending
on whether the GPS has fix. ok deraadt@
|
|
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@
|
|
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.
|
|
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@
|
|
ok drahn oga
|
|
sync a few comments to reality (or remove them), remove the cn_hash member
from struct componentname, spacing.
ok beck@
|
|
|
|
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include
<sys/dkio.h> to the places that actually want and use the disk
ioctls.
this became an issue when krw@'s X build failed when he was testing
a change to dkio.h.
tested by krw@
help from and ok miod@
|
|
ok miod@, thib@, oga@, jsing@
|
|
From mickey.
OK thib, otto.
|
|
actual device. If successful, the real path is returned via mappath. Soon
to be used by several other diffs.
ok krw@
|
|
gcc4 from complaining about casting a pointer to an integer type of different
size.
ok guenther@, jsg@
|
|
places in the tree need to be touched to update the object
initialisation with respect to that.
So, make a function (uvm_initobj) that takes the refcount, object and
pager ops and does this initialisation for us. This should save on
maintainance in the future.
looked good to fgs@. Tedu complained about the British spelling but OKed
it anyway.
|
|
already have one.
ok krw@
|
|
where there is almost nothing left to them, so that we can continue getting
rid of them
ok oga
|
|
to pad-align the size of the structure; it grows, the disklabel ioctl's are
break ABI. Change the uid to a character array. this also simplifies some
other stuff
ok jsing
|
|
since it is time to start transitioning away from the no-op behaviour.
ok oga kettenis
|
|
identifier, allowing the disk to be identified without relying on the
device name.
ok deraadt@ krw@ beck@ marco@ todd@
|
|
|
|
Use SENSOR_FINVALID until we have good data, suggested by deraadt@
"i am happy" deraadt@
|
|
(because it pulls in so much of the world) so include it for now, but
mark it XXX
ok tedu
|
|
sysctl.h was reliant on this particular include, and many drivers included
sysctl.h unnecessarily. remove sysctl.h or add proc.h as needed.
ok deraadt
|
|
by returning ENXIO instead of ENOENT, to essentially indicate hotplug
sensor that has gone away. Accessing beyond the end of the sensordev
list still returns ENOENT, so that you can see there are no further devices.
ok kettenis oga
|
|
a process instead of using curproc. ok deraadt
|
|
properly aligned. Otherwise we lose on strict alignment architectures if
the compiler happens to give it a smaller alignment. Fixes another gcc4
problem on sparc64.
ok miod@
|
|
give them back again, effectively stopping and starting these CPUs. Use
the stop function in sys_reboot().
ok marco@, deraadt@
|
|
settimeofday() does, so move those bits into settime()
"I like it" deraadt@
|
|
of the output queue (that is, the data coming from the program on the
slave side) rather than falling through to ttioctl which returns the
size of the input queue (the amount written to the master).
ok deraadt
|
|
list walkers in sysctl that can block. As a reward, no more vslock.
With some feedback from art, guenther, phessler. ok guenther.
|
|
|
|
ok beck@ krw@
|
|
of a direct ancestor, closing a localhost DoS. As an exception,
do permit ptrace() of pid 1 and have inferiors() stop climbing if
it hits that.
ok tedu@ hpux_compat suggestion from miod@
|
|
as suggested by art@
|
|
ok miod@ art@
|
|
holding a mutex which won't be released. From Christian Ehrhardt.
While here, fix another buglet: no need to pass down PR_ZERO either, as noticed by blambert@.
|
|
from Brad Tilley <brad at 16systems dot com>;
ok oga@
|
|
configure(), since some upcoming changes will require it.
ok henning
|