| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Discussed with guenther and kettenis
|
| |
|
|
| |
after discussions with beck deraadt kettenis.
|
| |
|
|
|
|
| |
From Markus Mueller.
ok krw@ miod@ tedu@
|
| |
|
|
|
|
|
|
|
|
|
| |
that drivers can check for this flag to know they have to stop doing
any hardware access and release their reference.
While here makes the ca_activate() function optional and propagates
DVACT_DEACTIVATE to the children of a device that do not implement this
interface like it is done during suspend/resume.
ok uebayasi@, deraadt@
|
| |
|
|
|
|
| |
bluetooth support doesn't work and isn't going anywhere. the current
design is a dead end, and should not be the basis for any future support.
general consensus says to whack it so as to not mislead the unwary.
|
| |
|
|
|
|
|
|
| |
Now, for kernel to "reboot" (reboot, halt, or shutdown), MD boot(9) is called
in some places. This change introduces a new MI function reboot(9) which is
simply a wrapper to call MD boot(9).
OK kettenis@ deraadt@
|
| |
|
|
|
|
| |
atomic_setbits_int()
ok kettenis@
|
| |
|
|
|
|
| |
Remember initprocess instead of initproc.
ok matthew@ blambert@
|
| |
|
|
|
|
| |
size (kern.bufcachepercent) on resume, for better hibernate performance.
ok beck@
|
| |
|
|
| |
ok deraadt
|
| |
|
|
|
|
|
| |
While here, change malloc(9)'s size argument from "unsigned long" to
"size_t".
ok tedu
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the disciplines right after vfs_shutdown().
This change is required in order to be able to set `cold' to 1 before
traversing the device (mainbus) tree for DVACT_POWERDOWN when halting
a machine. Yes, this is ugly because sr_shutdown() needs to sleep. But
at least it is obvious and hopefully somebody will be ofended and fix
it.
In order to properly flush the cache of the disks under softraid0,
sr_shutdown() now propagates DVACT_POWERDOWN for this particular subtree
of devices which are not under mainbus. As a side effect sd(4) shutdown
hook should no longer be necessary.
Tested by stsp@ and Jean-Philippe Ouellet.
ok deraadt@, stsp@, jsing@
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
a message up into syslogd's /dev/log interface. This will be used to make
syslog_r work during file descriptor exhaustion, or inside sandboxes which
prohibit socket, connect, sendto, etc.
The system call is being added about a week before the library and daemon
changes.
ok guenther tedu miod matthew
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
dprintfs to help debugging in the field (disabled by default)
|
| |
|
|
|
|
|
|
|
|
| |
easier and much less error-prone to just identity map it in the resuming
kernel as we have more control over the VA space layout there (otherwise
we are at the mercy of the suspending kernel's placement of the piglet VA).
This diff also increases the size of the piglet to 4 chunks, to avoid an
overwrite issue seen in m2k14 where the start of the kernel text was
overwritten with a bounced chunk before unpack.
|
| |
|
|
|
|
| |
Chunks are now sorted by ascending PA and all chunks are bounced before
unpack. This fixes an issue where the trampoline chunks were being placed
at the end of the unpack ordering, causing overwrite during unpack.
|
| |
|
|
|
|
|
| |
locked by a different thread. Teach lockstatus() to return LK_EXCLUSIVE
if an exclusive lock is held by some other thread.
ok beck@ tedu@
|
| |
|
|
|
|
| |
MEXTADD will be fixed later.
ok henning@ deraadt@ mpi@
|
| |
|
|
| |
ok deraadt@
|
| |
|
|
|
|
|
|
|
|
| |
doesnt need to know which ifp an mbuf was allocated on so it can uncount
it on free.
while here, remove the ext_backend field which identifies the pool the
cluster came from and use ext_arg instead.
ok henning@ mpi@
|
| | |
|
| |
|
|
| |
not compile-time-known page size platforms.
|
| |
|
|
|
| |
don't need to be married.
ok guenther miod beck jsing kettenis
|
| |
|
|
|
|
|
|
|
|
| |
via if_rxring things. this effectively deprecates the third argument
for MCLGETI and m_clget and makes the mbuf layer no longer care about
interfaces and simplifies the allocation paths.
the timeout used to measure livelock has been moved to net/if.c.
ok mpi@
|
| |
|
|
|
|
|
|
|
|
| |
to using if_rxr.
cut the reporting systat did over to the rxr ioctl.
tested as much as i can on alpha, amd64, and sparc64.
mpi@ has run it on macppc.
ok mpi@
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
A little while back, guenther moved user credentials to a per-process
property, but also kept a per-thread cache that would remain stable
for the duration of a thread's system call. These system calls now
only access the thread's cached credentials, so they're safe to run
without the kernel lock.
ok kettenis, guenther
|
| |
|
|
|
|
|
|
| |
Now that file descriptor tables have moved from a per-thread resource
to per-process, it's impossible to fork a thread without sharing the
file descriptor table.
ok guenther
|
| | |
|
| |
|
|
| |
ok matthew@
|
| |
|
|
| |
http://mail-index.netbsd.org/source-changes/2009/10/18/msg002090.html
|
| |
|
|
|
|
|
|
|
|
|
| |
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's
thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the
"most active" scheduler state for the process's threads.
tweaks kettenis@
feedback and ok matthew@
|
| |
|
|
| |
used on some archs.
|
| |
|
|
| |
deraadt says go ahead
|
| |
|
|
| |
userland.
|
| |
|
|
| |
ok guenther
|
| | |
|
| |
|
|
|
|
|
| |
than walking the list and counting the elements as we go.
use sysctl_rdint, sysctl_rdstring, and sysctl_rdstruct instead of
handcrafted copyouts.
|
| |
|
|
| |
active without having to walk the global pool_list.
|
| |
|
|
| |
path so we are guaranteed a consistent snapshot.
|
| |
|
|
|
|
|
|
|
| |
number) rather than rely on implicit process exclusion, splhigh and splvm.
the only things touching the global state come from process context so we
can get away with an rwlock instead of a mutex. thankfully.
ok matthew@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pools struct out. however, struct pool in the kernel contains lots
of things that userland probably isnt interested in, like actual
mutexes, and probably shouldnt get easy access to, like pointers
to kernel memory via all the lists/trees.
this implements a kinfo_pool structure that has only the data that
userland needs to know about. it cuts the sysctl code over to
building it from struct pool as required and copying that out
instead, and cuts userland over to only handling kinfo_pool.
the only problem with this is vmstat, which can read kernel images
via kvm, which needs some understanding of struct pool. to cope,
the struct pool definition is guarded by if defined(_KERNEL) ||
defined(_LIBKVM) as inspired by sysctl which needs to do the same
thing sometimes. struct pool itself is generally not visible to
userland though, which is good.
matthew@ suggested struct kinfo_pool instead of struct pool_info.
the kinfo prefix has precedent.
lots of people liked this.
|
| |
|
|
|
| |
KASSERT it being > 0 before decrementing.
ok dlg@
|
| |
|
|
|
|
|
|
|
| |
an untraced process but finds it blocking or ignoring it, just kill
the process instead of looping. It's undefined behavor in POSIX but
quite annoying when encountered in practice.
improvements from kettenis@
ok matthew@
|