Age | Commit message (Collapse) | Author |
|
when malloc'ing struct klist *.
Similar diff found upstream:
http://svnweb.freebsd.org/base?view=revision&revision=197575
Found by LLVM/Clang Static Analyzer.
ok tedu@ krw@ guenther@
|
|
anyway as we move toward a streamed implmentation)
|
|
aren't being passed to them. Fix UVM_WAIT() to not pass PNORELOCK to
tsleep(), as that flag only does something with msleep().
ok beck@ dlg@
|
|
the rx ring was last allowed to grow and then assigned to it. it
is erroneous to do this because mcl_grown is a u_int and ticks is an
int.
this makes mcl_grown an int, and follows the idiom in kern_timeout.c
of going "thing - ticks < diff", which better copes with ticks
wrapping around and being used to calculate relative intervals.
ok pirofti@ guenther@
|
|
is now possible to move the chunktable right after the chunks, not at
the end of the swap.
ok mlarkin
|
|
|
|
of absolute, so that we can add range checking.
ok mlarkin
|
|
|
|
|
|
|
|
easier to read now.
ok mlarkin
|
|
ok mlarkin
|
|
by passing a start/length in the HIB_INIT op. Then rebase all
hibernate-time block offsets to be relative to the start of that partition.
This simplifies things a lot.
ok mlarkin
|
|
|
|
|
|
hibernate can use place the data.
ok mlarkin
|
|
get and put, so they dont save us anything by caching constructed
objects. there were no real users of them, and this api was never
documented. removing conditionals in a hot path cant be a bad idea
either.
ok deraadt@ krw@ kettenis@
|
|
DL_[GET|SET]PSIZE(), DL_[GET|SET]POFFSET(), DL_[GET|SET]DSIZE() in
order to get|set correct value that includes the high bits of the
value.
|
|
whack the locking and task cancellation.
sensor updates tested locally, and by mpi@ on ugold(4). ok mpi@
|
|
variables. Some random whitespace/knf repairs encountered on the way.
ok miod@ on inspection, feedback & more suggestions from millert@
|
|
ok deraadt@
|
|
*const systq defined in task.h
this reduces the cost of using the system taskq and looks less ugly.
requested by and ok kettenis@
|
|
is safe to ask malloc to wait for memory.
pointed out by millert@
|
|
to do that again.
kern/kern_task.c doesnt use pools so we dont need sys/pool.h either.
|
|
might make jsg a little happier.
|
|
tasks are modelled on the timeout api, so users familiar with
timeout_set, timeout_add, and timeout_del will already know what
to expect from task_set, task_add, and task_del.
i wrote this because workq_add_task can fail in the place you
actually need it, and there arent any good ways of recovering at
that point. workq_queue_task was added to try and help, but required
external state to be stored for users of that api to know whether
something was already queued or not.
workqs also didnt provide a way to cancel or remove work.
this has been percolating with a bunch of people. putting it in as i
wrote it so i can apply their feedback to the code with the history kept
in cvs.
|
|
it's locked for changing the type (i.e., revoke()). We already unlock
it while calling the d_open, d_read, and d_write routines and this is
safe for the same reason: the device routines operate at a lower level
and don't need the protection of the vnode locks. This is important
as the device close routine may block indefinitely.
"don't see anything wrong" tedu@
|
|
|
|
to sys/*.h headers so that the compat/linux code can use them.
Change dowait4() to not copyout() the status value, but rather leave
that for its caller, as compat/linux has to translate it, with the
side benefit of simplifying the native code.
Originally written months ago as part of the time_t work; long
memory, prodding, and ok from pirofti@
|
|
- convert netstat from kvm_getfiles() to kvm_getfile2() using that
- delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major)
- rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file
and KERN_FILE2 to KERN_FILE.
ok deraadt@, millert@
ports scan sthen@
|
|
|
|
|
|
during hibernate resume.
requested by deraadt
|
|
HIB_DEBUG to see these)
|
|
Fixes resume time stream corruption seen on x230 with large (16GB)
unhibernation
|
|
(though unlikely) for the end of stream marker to overflow from one page.
This should fix a few (but not all) spurious failure-to-hibernate errors.
Also remove an unnecessary cache flush during deflate.
ok deraadt
|
|
readdoslabel(). Ditto all the MD variables whose addresses are passed
to readdoslabel() via partoffp.
Fix some 512-byte block vs disk sector confusion in hppa and sgi.
All the DL_GETxxxxx() defines return disk sector values. All
DL_SETxxxx() take disk sector values. These changes should be no-ops
until a drive using non-512-byte-sectors is encountered.
ok deraadt@
|
|
the safe version to traverse the TAILQ list.
ok deraadt@
|
|
|
|
ok miod
|
|
|
|
diskerr() messages by doing DL_SECTOBLK() dance repeatedly.
|
|
when events is set to POLLIN and POLLHUP when events is set to
POLLOUT. In the pty case we need to be careful to only treat the
pty as closed if carrier is on. This fixes a hang on close problem
seen with ssh and xterm.
|
|
hardclock() set a flag on the running thread and force AST processing,
and then have the thread signal itself from userret().
idea and flag names from FreeBSD
ok jsing@
|
|
take the signal by preference if it's eligible (unblocked or sigwaiting).
ok jsing@
|
|
values rather than daddr_t values. So use u_int64_t to store them
and %llu to print them in checkdisklabel().
|
|
|
|
ok deraadt@
|
|
that mlarkin@ can fix programs that report rates-over-uptime.
ok kettenis@
manpage corrections jmc@ (which I've probably broken again)
|
|
is fixed.
|