CVS log for src/sys/kern/sys_pipe.c
Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.167.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:27:50 2026 UTC (11 days, 11 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.167.2.1: preferred, colored; branchpoint 1.167: preferred, colored; next MAIN 1.168: preferred, colored
Changes since revision 1.167.2.1: +284 -167
lines
Sync with HEAD
Revision 1.186: download - view: text, markup, annotated - select for diffs
Tue Oct 6 02:02:32 2026 UTC (5 weeks, 6 days ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102,
HEAD
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +4 -3
lines
pipe(2): Fix possible null pointer deref if pipe_create fails.
Spotted by kre.
Followup for:
PR kern/59056: poll POLLHUP bugs
Revision 1.185: download - view: text, markup, annotated - select for diffs
Mon Oct 5 22:59:15 2026 UTC (5 weeks, 6 days ago) by kre
Branches: MAIN
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +3 -3
lines
Pull up our braces.
Revision 1.184: download - view: text, markup, annotated - select for diffs
Mon Oct 5 22:15:56 2026 UTC (5 weeks, 6 days ago) by riastradh
Branches: MAIN
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +29 -7
lines
pipe(2): Fix possible use-after-free if both ends are closed at once.
Followup for:
PR kern/59056: poll POLLHUP bugs
Revision 1.183: download - view: text, markup, annotated - select for diffs
Mon Oct 5 21:14:15 2026 UTC (5 weeks, 6 days ago) by riastradh
Branches: MAIN
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +9 -2
lines
pipe(2): Restore kevent EVFILT_READ/WRITE success on wrong pipe end.
Missed a spot when gathering the hunks in the previous change for
this.
PR kern/60851: change in pipe kevent EVFILT_READ/WRITE on wrong end
Revision 1.182: download - view: text, markup, annotated - select for diffs
Mon Oct 5 21:01:22 2026 UTC (5 weeks, 6 days ago) by riastradh
Branches: MAIN
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +5 -104
lines
Revert "pipe(2): Add memory safety diagnostics."
This was rather sloppily done (from my local tree, not cleaned up
before committing in haste in an attempt to help diagnose the spate
of crashes that have been seen today). Will redo this a little more
tidily.
PR kern/59056: poll POLLHUP bugs
Revision 1.181: download - view: text, markup, annotated - select for diffs
Mon Oct 5 20:49:28 2026 UTC (5 weeks, 6 days ago) by riastradh
Branches: MAIN
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +3 -3
lines
pipe(2): Plug mutex_obj leak.
This was introduced in what was supposed to be mere refactoring in
rev. 1.170 (pipe(2): Split new function pipefree out of pipeclose.) as
part of
PR kern/59056: poll POLLHUP bugs
I missed a spot, the mutex_obj_free in pipeclose, which should have
been moved into pipefree.
Noticed by mlelstv@.
Revision 1.180: download - view: text, markup, annotated - select for diffs
Mon Oct 5 20:49:13 2026 UTC (5 weeks, 6 days ago) by riastradh
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +20 -4
lines
pipe(2): Restore kevent EVFILT_READ/WRITE success on wrong pipe end.
In rev. 1.174, while cleaning up various issues in select/poll/kqueue
logic for pipes, I changed the behaviour of kevent when adding an
EVFILT_READ event for the write side of a pipe, or an EVFILT_WRITE
event for the read side of a pipe, to fail with EINVAL; previously it
would quietly be accepted and do nothing, which struck me, without much
thought, as uncontroversially wrong and unhelpful. But apparently
that's what FreeBSD and OpenBSD do too, and it seems that applications
such as mail/dovecot2 rely on it. So put it back.
PR kern/60851: change in pipe kevent EVFILT_READ/WRITE on wrong end
Revision 1.179: download - view: text, markup, annotated - select for diffs
Mon Oct 5 14:01:05 2026 UTC (5 weeks, 6 days ago) by riastradh
Branches: MAIN
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +104 -5
lines
pipe(2): Add memory safety diagnostics.
Might help to diagnose the source of:
https://mail-index.netbsd.org/current-users/2026/10/05/msg047946.html
Revision 1.178: download - view: text, markup, annotated - select for diffs
Mon Oct 5 10:40:09 2026 UTC (6 weeks ago) by kre
Branches: MAIN
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +6 -4
lines
Avoid attempting to wakeup dead writers.
Revision 1.177: download - view: text, markup, annotated - select for diffs
Sat Oct 3 16:28:30 2026 UTC (6 weeks, 1 day ago) by riastradh
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +33 -32
lines
pipe(2): Sprinkle SET_ERROR dtrace probes.
PR kern/58378: Kernel error code origination lacks dtrace probes
Revision 1.176: download - view: text, markup, annotated - select for diffs
Sat Oct 3 16:28:17 2026 UTC (6 weeks, 1 day ago) by riastradh
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +15 -13
lines
pipe(2): Sort includes.
No functional change intended.
Preparation for:
PR kern/58378: Kernel error code origination lacks dtrace probes
Revision 1.175: download - view: text, markup, annotated - select for diffs
Sat Oct 3 16:28:04 2026 UTC (6 weeks, 1 day ago) by riastradh
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +3 -3
lines
pipe(2): Don't cv_wait_sig in a loop without breaking on signal.
If a signal does arrive, it will turn into a busy wait! Not helpful.
But this wait should be limited to scheduling delays for other
threads anyway, not for general I/O, so there's no need to be
interruptible by a signal.
Prompted by:
PR kern/59056: poll POLLHUP bugs
Revision 1.174: download - view: text, markup, annotated - select for diffs
Sat Oct 3 16:26:50 2026 UTC (6 weeks, 1 day ago) by riastradh
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +125 -85
lines
pipe(2): Restructure select/poll/kqueue records.
1. When a thread is waiting on an endpoint of a pipe, have it wait on
_that endpoint_ (i.e., cv_wait or selrecord), not on the other
endpoint sometimes depending on the direction of the I/O.
2. Make poll(2) on the writer side of a pipe wake with POLLERR when
the reader side is closed, because write would return immediately,
and fail with EPIPE/SIGPIPE. See also:
https://mail-index.NetBSD.org/tech-kern/2026/09/21/msg031255.html
(In contrast, for the other way around, when the writer side of a
pipe is closed, poll(2) on the reader is already defined to wake
with POLLHUP, and while read would return immediately, it will not
_fail_; it will simply report EOF, so there is no justification
for POLLERR in that direction.)
3. For EVFILT_READ, require the reader side of a pipe; likewise, for
EVFILT_WRITE, require the writer side of a pipe. That this wasn't
enforced before was an accident, as far as I can tell, and made
the kevent paths very confusing about which side of the pipe is
which.
PR kern/59056: poll POLLHUP bugs
Revision 1.173: download - view: text, markup, annotated - select for diffs
Sat Oct 3 16:24:04 2026 UTC (6 weeks, 1 day ago) by riastradh
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +2 -5
lines
pipe(2): Simplify PIPE_RESTART handling.
Now that it applies to each side independently, we can just make it
final, because new I/O operations are not allowed on an file that has
had its .fo_restart called. Makes reasoning about all this easier.
XXX Consider renaming PIPE_RESTART to PIPE_CLOSING: the .fo_restart
operation means the file is irreversibly destined to be closed soon
and just needs any pending I/O on it to be interrupted and fail
promptly so we can finally close the file.
Preparation for:
PR kern/59056: poll POLLHUP bugs
Revision 1.172: download - view: text, markup, annotated - select for diffs
Sat Oct 3 16:23:46 2026 UTC (6 weeks, 1 day ago) by riastradh
Branches: MAIN
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +58 -35
lines
pipe(2): Make pipe sides a little more symmetric.
1. When reading from or writing to a pipe, busy _this side_ of the
pipe, not the other side.
2. In pipeclose, all operations on _this side_ of the pipe have already
quiesced. But operations on the other side may not have. So wait
for the _other side_ to be unbusied before disconnecting the peer
(changing ppipe->pipe_peer from pipe to NULL).
With (1) and (2) we can prove a simple property that makes reasoning
about this code easier: If a pipe is busy, its peer pointer is stable
even across cv_wait on the pipe lock. Without these changes I'm not
sure I could prove that property (though I haven't exhibited a
reproducer for any issues arising from its failure).
3. Make write wait on wpipe->pipe_wcv, and make read wait on
rpipe->pipe_rcv, consistently, so that any waiters on one side of a
pipe will always be waiting on one of _that side's_ condvars.
This makes the logic in pipe_restart to wake any pending operations
on _this side_ simpler -- it doesn't have to reach over to the peer,
and it doesn't have to inadvertently wake the peer for no reason.
In fact this brings the text of the code in pipe_restart back to
what it was before I renamed the variables to reflect their actual
content, suggesting there has been some confusion from the variable
naming over the years...
(In a future change, I would like to merge pipe_rcv and pipe_wcv
into a single condvar per side -- no need to initialize two extra
condvars per pipe that will never be used!)
Preparation for:
PR kern/59056: poll POLLHUP bugs
Revision 1.171: download - view: text, markup, annotated - select for diffs
Sat Oct 3 16:23:18 2026 UTC (6 weeks, 1 day ago) by riastradh
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +9 -7
lines
pipe(2): Fix wakeup of pending writers on close of write side.
The job of pipe_restart is to wake any pending I/O operations on the
file when it is about to be closed. New references cannot be taken
for new I/O operations; once all existing references are drained, the
system calls pipe_close.
What pipe_restart did was to wake pipe->pipe_rcv and pipe->pipe_wcv.
But the condvars of _which pipe_?
After renaming the variables to match reality, it becomes clear that
wpipe->pipe_wcv and wpipe->pipe_rcv are never used -- instead,
pipe_read waits for rpipe->pipe_rcv, and pipe_write waits for
rpipe->pipe_wcv. So pipe_restart on the write side of a pipe woke
wpipe->pipe_rcv and wpipe->pipe_wcv, which nothing was waiting for,
and failed to wake rpipe->pipe_rcv or rpipe->pipe_wcv.
(Perhaps we should just have a single struct pipe::pipe_cv member,
and have pipe_read use rpipe->pipe_cv and pipe_write use
wpipe->pipe_cv. But that will be left for future cleanup.)
PR kern/57659: closing pipe writefd fails to wake concurrent write on
same writefd
Revision 1.170: download - view: text, markup, annotated - select for diffs
Sat Oct 3 16:22:55 2026 UTC (6 weeks, 1 day ago) by riastradh
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +15 -11
lines
pipe(2): Split new function pipefree out of pipeclose.
Makes it easier to reason about pipeclose this way.
Prompted by:
PR kern/59056: poll POLLHUP bugs
Revision 1.169: download - view: text, markup, annotated - select for diffs
Sat Oct 3 16:22:22 2026 UTC (6 weeks, 1 day ago) by riastradh
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +60 -60
lines
pipe(2): Rename pipe variables to make more sense.
- wpipe for the writer side of a pipe, associated with a file open
for FWRITE.
- rpipe for the writer side of a pipe, associated with a file open
for FREAD.
- pipe for either side of the pipe.
- ppipe for the peer corresponding to pipe.
No functional change intended.
Prompted by trying to wrap my head around this pipe(2) code in order
to address:
PR kern/59056: poll POLLHUP bugs
Revision 1.167.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:57:42 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +5 -3
lines
Sync with HEAD
Revision 1.168: download - view: text, markup, annotated - select for diffs
Wed Jul 16 19:14:13 2025 UTC (16 months ago) by kre
Branches: MAIN
CVS tags: perseant-exfatfs-base-20250801,
netbsd-11-base,
netbsd-11-1-RELEASE,
netbsd-11-0-RELEASE,
netbsd-11-0-RC7,
netbsd-11-0-RC6,
netbsd-11-0-RC5,
netbsd-11-0-RC4,
netbsd-11-0-RC3,
netbsd-11-0-RC2,
netbsd-11-0-RC1,
netbsd-11
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +5 -3
lines
Kernel part of O_CLOFORK implementation (plus kernel revbump)
This is Ricardo Branco's implementation of O_CLOFORK (and
associated fcntl, etc) for NetBSD (with a few minor changes
by me).
For now, the header file symbols that should be exposed to
userland are hidden inside temporary #ifdef _KERNEL blocks,
just to avoid random userland apps, or config scripts, from
seeing any of this before it is better tested.
Userland parts of this will follow soon.
This also bumps the kernel version to 10.99.15 (changes to
data structs, and the signature of fd_dup()).
Revision 1.167: download - view: text, markup, annotated - select for diffs
Sat Feb 10 09:21:54 2024 UTC (2 years, 9 months ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base
Branch point for: perseant-exfatfs
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +3 -3
lines
fix various typos in comments and log messages.
Revision 1.166: download - view: text, markup, annotated - select for diffs
Thu Nov 2 10:31:55 2023 UTC (3 years ago) by martin
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +562 -390
lines
Back out the following revisions on behalf of core:
sys/sys/lwp.h: revision 1.228
sys/sys/pipe.h: revision 1.40
sys/kern/uipc_socket.c: revision 1.306
sys/kern/kern_sleepq.c: revision 1.84
sys/rump/librump/rumpkern/locks_up.c: revision 1.13
sys/kern/sys_pipe.c: revision 1.165
usr.bin/fstat/fstat.c: revision 1.119
sys/rump/librump/rumpkern/locks.c: revision 1.87
sys/ddb/db_xxx.c: revision 1.78
sys/ddb/db_command.c: revision 1.187
sys/sys/condvar.h: revision 1.18
sys/ddb/db_interface.h: revision 1.42
sys/sys/socketvar.h: revision 1.166
sys/kern/uipc_syscalls.c: revision 1.209
sys/kern/kern_condvar.c: revision 1.60
Add cv_fdrestart() [...]
Use cv_fdrestart() to implement fo_restart.
Simplify/streamline pipes a little bit [...]
This changes have caused regressions and need to be debugged.
The cv_fdrestart() addition needs more discussion.
Revision 1.165: download - view: text, markup, annotated - select for diffs
Fri Oct 13 19:07:08 2023 UTC (3 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +390 -562
lines
Simplify/streamline pipes a little bit:
- Allocate only one struct pipe not two (no need to be bidirectional here).
- Then use f_flag (FREAD/FWRITE) to figure out what to do in the fileops.
- Never wake the other side or acquire long-term (I/O) lock unless needed.
- Whenever possible, defer wakeups until after locks have been released.
- Do some things locklessly in pipe_ioctl() and pipe_poll().
Some notable results:
- -30% latency on a 486DX2/66 doing 1 byte ping-pong within a single process.
- 2.5x less lock contention during "make cleandir" of src on a 48 CPU machine.
- 1.5x bandwith with 1kB messages on the same 48 CPU machine (8kB: same b/w).
Revision 1.164: download - view: text, markup, annotated - select for diffs
Thu Oct 5 19:44:26 2023 UTC (3 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +2 -17
lines
Update comments to match reality
Revision 1.163: download - view: text, markup, annotated - select for diffs
Wed Oct 4 22:41:56 2023 UTC (3 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +11 -10
lines
pipe1(): call getnanotime() once not twice.
Revision 1.162: download - view: text, markup, annotated - select for diffs
Wed Oct 4 22:19:58 2023 UTC (3 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +3 -11
lines
pipe->pipe_waiters isn't needed on NetBSD, kernel condvars do this for free.
Revision 1.161: download - view: text, markup, annotated - select for diffs
Wed Oct 4 22:12:23 2023 UTC (3 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +19 -2
lines
pipe_read(): try to skip locking the pipe if a non-blocking fd is used, as
is very often the case with BSD make (from FreeBSD/mjg@).
Revision 1.160: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:53:02 2023 UTC (3 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +11 -2
lines
file(9): New fo_posix_fadvise operation.
XXX kernel revbump -- changes struct fileops API and ABI
Revision 1.159: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:52:54 2023 UTC (3 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +17 -2
lines
file(9): New fo_fpathconf operation.
XXX kernel revbump -- struct fileops API and ABI change
Revision 1.158: download - view: text, markup, annotated - select for diffs
Mon Oct 11 01:07:36 2021 UTC (5 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-2-RELEASE,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +4 -4
lines
Setting EV_EOF requires modifying kn->kn_flags. However, that relies on
holding the kq_lock of that note's kq. Rather than exposing this directly,
add new knote_set_eof() and knote_clear_eof() functions that handle the
necessary locking and don't leak as many implementation details to modules.
NetBSD 9.99.91
Revision 1.140.12.2: download - view: text, markup, annotated - select for diffs
Fri Oct 8 14:59:59 2021 UTC (5 years, 1 month ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.140.12.1: preferred, colored; branchpoint 1.140: preferred, colored; next MAIN 1.141: preferred, colored
Changes since revision 1.140.12.1: +8 -7
lines
Pull up following revision(s) (requested by hannken in ticket #1698):
sys/kern/sys_pipe.c: revision 1.157
Fix a deadlock where one thread writes to a pipe, has more data
and no space in the pipe and waits on "pipe_wcv" while the reader
is closing the pipe and waits on "pipe_draincv".
Swap the test for "PIPE_EOF" and the "cv_wait_sig()" in "pipe_write()".
PR bin/56422 "zgrep -l sometimes hangs"
Revision 1.148.2.1: download - view: text, markup, annotated - select for diffs
Fri Oct 8 14:58:08 2021 UTC (5 years, 1 month ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE
Diff to: previous 1.148: preferred, colored; next MAIN 1.149: preferred, colored
Changes since revision 1.148: +8 -7
lines
Pull up following revision(s) (requested by hannken in ticket #1357):
sys/kern/sys_pipe.c: revision 1.157
Fix a deadlock where one thread writes to a pipe, has more data
and no space in the pipe and waits on "pipe_wcv" while the reader
is closing the pipe and waits on "pipe_draincv".
Swap the test for "PIPE_EOF" and the "cv_wait_sig()" in "pipe_write()".
PR bin/56422 "zgrep -l sometimes hangs"
Revision 1.157: download - view: text, markup, annotated - select for diffs
Sat Oct 2 07:35:40 2021 UTC (5 years, 1 month ago) by hannken
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +8 -7
lines
Fix a deadlock where one thread writes to a pipe, has more data
and no space in the pipe and waits on "pipe_wcv" while the reader
is closing the pipe and waits on "pipe_draincv".
Swap the test for "PIPE_EOF" and the "cv_wait_sig()" in "pipe_write()".
PR bin/56422 "zgrep -l sometimes hangs"
Revision 1.156: download - view: text, markup, annotated - select for diffs
Mon Sep 27 00:51:10 2021 UTC (5 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +13 -13
lines
Tweak filt_piperead() and filt_pipewrite() so that:
- There is only a single return from the function (and thus a single
place where the pipe lock must be released).
- kn->kn_data is referenced only inside the lock perimeter.
Revision 1.155: download - view: text, markup, annotated - select for diffs
Sun Sep 26 15:48:54 2021 UTC (5 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +4 -4
lines
The pipe kq filter ops are MPSAFE.
Revision 1.154: download - view: text, markup, annotated - select for diffs
Sun Sep 26 01:16:10 2021 UTC (5 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +4 -4
lines
Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.
This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.
NetBSD 9.99.89
Revision 1.153: download - view: text, markup, annotated - select for diffs
Tue Sep 7 13:24:46 2021 UTC (5 years, 2 months ago) by andvar
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +3 -3
lines
s/aquire/acquire/ in comments, also one typo fix acqure->acquire.
Revision 1.150.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:29:00 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.150.2.1: preferred, colored; next MAIN 1.151: preferred, colored
Changes since revision 1.150.2.1: +12 -7
lines
Sync with HEAD.
Revision 1.152: download - view: text, markup, annotated - select for diffs
Mon Jan 25 19:21:11 2021 UTC (5 years, 9 months ago) by dholland
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +12 -7
lines
Fix a thundering herd problem in pipes.
Wake only one waiter when data becomes available, not all of them.
Waking them all is not a usual case, but turns up with make's job
token pipes. (Probably make's job signalling scheme should also be
revised, assuming rillig hasn't already done that, but that's a
separate issue.)
This change will not do us much good for the moment because we don't
distinguish cv_signal from cv_broadcast for interruptible sleeps, but
that's also a separate problem.
Seen on FreeBSD; from mjg at freebsd a couple months ago. Patch was
mine (iirc) but the real work in this sort of thing is discovering the
problem.
Revision 1.150.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:14 2020 UTC (5 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +6 -4
lines
Sync w/ HEAD.
Revision 1.151: download - view: text, markup, annotated - select for diffs
Fri Dec 11 03:00:09 2020 UTC (5 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +6 -4
lines
Use sel{record,remove}_knote().
Revision 1.150: download - view: text, markup, annotated - select for diffs
Thu Jun 25 16:19:07 2020 UTC (6 years, 4 months ago) by maxv
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +4 -3
lines
Fix NULL deref. The original code before Jaromir's cleanup had an #ifndef
block that wrongly contained the 'else' statement, causing the NULL check
to have no effect.
Reported-by: syzbot+c41bbfe5a7ff07bf0f99@syzkaller.appspotmail.com
Revision 1.149: download - view: text, markup, annotated - select for diffs
Thu Jun 25 14:22:18 2020 UTC (6 years, 4 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +4 -356
lines
remove experimental direct pipe code (using uvm_loan()) I added in 2001 - it's
slower than the non-direct variant on MP systems, if anybody wants
to hack on this further it's available in Attic
Revision 1.146.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:03 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.146: preferred, colored; next MAIN 1.147: preferred, colored
Changes since revision 1.146: +12 -5
lines
Sync with HEAD
Revision 1.140.12.1: download - view: text, markup, annotated - select for diffs
Wed May 1 14:51:17 2019 UTC (7 years, 6 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +12 -5
lines
Pull up following revision(s) (requested by mlelstv in ticket #1253):
sys/kern/sys_pipe.c: revision 1.147
sys/kern/sys_pipe.c: revision 1.148
Clean up pipe structure before recycling it.
Handle half-closed pipes in FIONWRITE and FIONSPACE.
Revision 1.138.4.1: download - view: text, markup, annotated - select for diffs
Wed May 1 09:48:56 2019 UTC (7 years, 6 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.138: preferred, colored; next MAIN 1.139: preferred, colored
Changes since revision 1.138: +12 -5
lines
Pull up following revision(s) (requested by mlelstv in ticket #1692):
sys/kern/sys_pipe.c: revision 1.147
sys/kern/sys_pipe.c: revision 1.148
Clean up pipe structure before recycling it.
Handle half-closed pipes in FIONWRITE and FIONSPACE.
Revision 1.148: download - view: text, markup, annotated - select for diffs
Fri Apr 26 17:24:23 2019 UTC (7 years, 6 months ago) by mlelstv
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Branch point for: netbsd-9
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +10 -5
lines
Handle half-closed pipes in FIONWRITE and FIONSPACE.
Revision 1.147: download - view: text, markup, annotated - select for diffs
Fri Apr 26 17:20:49 2019 UTC (7 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +4 -2
lines
Clean up pipe structure before recycling it.
Revision 1.143.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:26:04 2018 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.143.2.2: preferred, colored; branchpoint 1.143: preferred, colored; next MAIN 1.144: preferred, colored
Changes since revision 1.143.2.2: +76 -102
lines
Sync with HEAD
Revision 1.146: download - view: text, markup, annotated - select for diffs
Sun Jun 10 17:54:51 2018 UTC (8 years, 5 months ago) by jdolecek
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
isaki-audio2-base,
isaki-audio2
Branch point for: phil-wifi
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +76 -102
lines
convert the (still disabled) 'direct write' for pipes to use the
experimental PMAP_DIRECT if available; the direct code paths now survive
longer than the pmap_enter() variant, but still triggers panic during
build.sh tools run; remove some obsolete sysctls
add some XXXs to mark places which need attention to make this more stable
Note: the loan case is now actually significantly slower than the
non-loan case on MP systems, due to synchronous IPIs triggered by
marking the page read-only by uvm_loan(); this is being discussed
in the email thread
https://mail-index.netbsd.org/tech-kern/2018/05/21/msg023441.html
that is basically the same issue due to which loaning was disabled
for sosend()
Revision 1.143.2.2: download - view: text, markup, annotated - select for diffs
Mon May 21 04:36:15 2018 UTC (8 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.143.2.1: preferred, colored; branchpoint 1.143: preferred, colored
Changes since revision 1.143.2.1: +16 -20
lines
Sync with HEAD
Revision 1.145: download - view: text, markup, annotated - select for diffs
Sat May 19 11:39:37 2018 UTC (8 years, 6 months ago) by jdolecek
Branches: MAIN
CVS tags: pgoyette-compat-0521
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +16 -20
lines
Remove emap support. Unfortunately it never got to state where it would be
used and usable, due to reliability and limited & complicated MD support.
Going forward, we need to concentrate on interface which do not map anything
into kernel in first place (such as direct map or KVA-less I/O), rather
than making those mappings cheaper to do.
Revision 1.143.2.1: download - view: text, markup, annotated - select for diffs
Sun Apr 22 07:20:27 2018 UTC (8 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +4 -3
lines
Sync with HEAD
Revision 1.144: download - view: text, markup, annotated - select for diffs
Fri Apr 20 19:02:18 2018 UTC (8 years, 6 months ago) by jdolecek
Branches: MAIN
CVS tags: pgoyette-compat-0502,
pgoyette-compat-0422
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +4 -3
lines
add prot parameter for uvm_emap_enter(), so that it's possible to
enter also read/write mappings
Revision 1.143: download - view: text, markup, annotated - select for diffs
Tue Dec 26 08:30:58 2017 UTC (8 years, 10 months ago) by kamil
Branches: MAIN
CVS tags: pgoyette-compat-base,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +10 -10
lines
Refactor pipe1() and correct a bug in sys_pipe2() (SYS_pipe2)
sys_pipe2() returns two integers (values), the 2nd one is a copy of the 2nd
file descriptor that lands in fildes[2]. This is a side effect of reusing
the code for sys_pipe() (SYS_pipe) and not cleaning it up.
The first returned value is (on success) 0.
Introduced a small refactoring in pipe1() that it does not operate over
retval[], but on an array int[2]. A user sets retval[] for pipe() when
desired and needed.
This refactoring touches compat code: netbsd32, linux, linux32.
Before the changes on NetBSD/amd64:
$ ktruss -i ./a.out
[...]
15131 1 a.out pipe2(0x7f7fff2e62b8, 0) = 0, 4
[...]
After the changes:
$ ktruss -i ./a.out
[...]
782 1 a.out pipe2(0x7f7fff97e850, 0) = 0
[...]
There should not be a visible change for current users.
Sponsored by <The NetBSD Foundation>
Revision 1.136.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:45 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.136.2.1: preferred, colored; branchpoint 1.136: preferred, colored; next MAIN 1.137: preferred, colored
Changes since revision 1.136.2.1: +36 -26
lines
update from HEAD
Revision 1.142: download - view: text, markup, annotated - select for diffs
Thu Nov 30 20:25:55 2017 UTC (8 years, 11 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +3 -2
lines
add fo_name so we can identify the fileops in a simple way.
Revision 1.141: download - view: text, markup, annotated - select for diffs
Wed Oct 25 08:12:39 2017 UTC (9 years ago) by maya
Branches: MAIN
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +15 -6
lines
Use C99 initializer for filterops
Mostly done with spatch with touchups for indentation
@@
expression a;
identifier b,c,d;
identifier p;
@@
const struct filterops p =
- { a, b, c, d
+ {
+ .f_isfd = a,
+ .f_attach = b,
+ .f_detach = c,
+ .f_event = d,
};
Revision 1.140: download - view: text, markup, annotated - select for diffs
Fri Sep 5 09:20:59 2014 UTC (12 years, 2 months ago) by matt
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base,
nick-nhusb,
netbsd-8-base,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +16 -16
lines
Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get
a correctly typed pointer.
Revision 1.139: download - view: text, markup, annotated - select for diffs
Fri Sep 5 05:57:21 2014 UTC (12 years, 2 months ago) by matt
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +10 -10
lines
Don't next structure and enum definitions.
Don't use C++ keywords new, try, class, private, etc.
Revision 1.136.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:29 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +48 -47
lines
Rebase to HEAD as of a few days ago.
Revision 1.134.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:03 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.134.2.2: preferred, colored; branchpoint 1.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134.2.2: +48 -47
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.137.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:07 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.137: preferred, colored; next MAIN 1.138: preferred, colored
Changes since revision 1.137: +2 -7
lines
sync with head
Revision 1.138: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:11 2014 UTC (12 years, 8 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0
Branch point for: netbsd-7
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +2 -7
lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.
Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
Revision 1.137: download - view: text, markup, annotated - select for diffs
Fri Jun 28 01:21:06 2013 UTC (13 years, 4 months ago) by matt
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +48 -42
lines
Make page loaning in pipes color aware.
Revision 1.134.6.2: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:34 2012 UTC (14 years, 5 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.134.6.1: preferred, colored; branchpoint 1.134: preferred, colored; next MAIN 1.135: preferred, colored
Changes since revision 1.134.6.1: +10 -8
lines
sync to latest -current.
Revision 1.134.2.2: download - view: text, markup, annotated - select for diffs
Wed May 23 10:08:12 2012 UTC (14 years, 5 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.134.2.1: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.1: +10 -8
lines
sync with head.
Revision 1.135.2.1: download - view: text, markup, annotated - select for diffs
Sat May 19 15:34:32 2012 UTC (14 years, 6 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Diff to: previous 1.135: preferred, colored; next MAIN 1.136: preferred, colored
Changes since revision 1.135: +10 -8
lines
Pull up following revision(s) (requested by martin in ticket #270):
sys/kern/sys_pipe.c: revision 1.136
tests/lib/libc/sys/t_pipe2.c: revision 1.4
tests/lib/libc/sys/t_pipe2.c: revision 1.5
tests/lib/libc/sys/t_pipe2.c: revision 1.6
tests/lib/libc/sys/t_pipe2.c: revision 1.7
Make sure we can deliver two file descriptors for pipe2() before we set
up anything special (like close on exec).
Fixes PR kern/46457.
Add a case for PR kern/46457. This is skipped for the time being, as it
reproduces the panic described in the PR.
Enable the test for PR kern/46457 now that it does not crash the
kernel any more.
Fix typo in comment.
Simplify the test for PR kern/4645 and make it independend of resource
settings.
Revision 1.136: download - view: text, markup, annotated - select for diffs
Wed May 16 09:41:11 2012 UTC (14 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
khorben-n900,
jmcneill-usbmp-base10,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +10 -8
lines
Make sure we can deliver two file descriptors for pipe2() before we set
up anything special (like close on exec).
Fixes PR kern/46457.
Revision 1.134.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:29 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3
lines
sync with head
Revision 1.134.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:33 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3
lines
merge to -current.
Revision 1.135: download - view: text, markup, annotated - select for diffs
Wed Jan 25 00:28:36 2012 UTC (14 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base4,
netbsd-6-base,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3
lines
As discussed in tech-kern, provide the means to prevent delivery of SIGPIPE
on EPIPE for all file descriptor types:
- provide O_NOSIGPIPE for open,kqueue1,pipe2,dup3,fcntl(F_{G,S}ETFL) [NetBSD]
- provide SOCK_NOSIGPIPE for socket,socketpair [NetBSD]
- provide SO_NOSIGPIPE for {g,s}seckopt [NetBSD/FreeBSD/MacOSX]
- provide F_{G,S}ETNOSIGPIPE for fcntl [MacOSX]
Revision 1.134: download - view: text, markup, annotated - select for diffs
Thu Oct 20 18:18:21 2011 UTC (15 years, 1 month ago) by njoly
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
jmcneill-usbmp
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +4 -2
lines
Do call fd_set_exclose() on both file descriptors, to set the
close-on-exec flag.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Wed Oct 5 13:30:24 2011 UTC (15 years, 1 month ago) by apb
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +4 -5
lines
When pipe1() calls pipe_create() and it fails, use the error
result from pipe_create(), don't assume it will always be ENOMEM.
From PR 45423 by Greg Woods.
Revision 1.132: download - view: text, markup, annotated - select for diffs
Fri Jul 15 14:50:19 2011 UTC (15 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +4 -2
lines
fail with EINVAL if flags not are not O_CLOEXEC|O_NONBLOCK in pipe2(2) and
dup3(2)
Revision 1.131: download - view: text, markup, annotated - select for diffs
Sun Jun 26 16:42:42 2011 UTC (15 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +2 -8
lines
* Arrange for interfaces that create new file descriptors to be able to
set close-on-exec on creation (http://udrepper.livejournal.com/20407.html).
- Add F_DUPFD_CLOEXEC to fcntl(2).
- Add MSG_CMSG_CLOEXEC to recvmsg(2) for unix file descriptor passing.
- Add dup3(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
- Add pipe2(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
- Add flags SOCK_CLOEXEC, SOCK_NONBLOCK to the socket type parameter
for socket(2) and socketpair(2).
- Add new paccept(2) syscall that takes an additional sigset_t to alter
the sigmask temporarily and a flags argument to set SOCK_CLOEXEC,
SOCK_NONBLOCK.
- Add new mode character 'e' to fopen(3) and popen(3) to open pipes
and file descriptors for close on exec.
- Add new kqueue1(2) syscall with a new flags argument to open the
kqueue file descriptor with O_CLOEXEC, O_NONBLOCK.
* Fix the system calls that take socklen_t arguments to actually do so.
* Don't include userland header files (signal.h) from system header files
(rump_syscallargs.h).
* Bump libc version for the new syscalls.
Revision 1.128.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:36 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.128: preferred, colored; next MAIN 1.129: preferred, colored
Changes since revision 1.128: +12 -6
lines
Sync with HEAD.
Revision 1.103.4.5.4.1: download - view: text, markup, annotated - select for diffs
Wed May 25 23:58:48 2011 UTC (15 years, 5 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.103.4.5: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103.4.5: +44 -38
lines
Make uvm_map recognize UVM_FLAG_COLORMATCH which tells uvm_map that the
'align' argument specifies the starting color of the KVA range to be returned.
When calling uvm_km_alloc with UVM_KMF_VAONLY, also specify the starting
color of the kva range returned (UMV_KMF_COLORMATCH) and pass those to
uvm_map.
In uvm_pglistalloc, make sure the pages being returned have sequentially
advancing colors (so they can be mapped in a contiguous address range).
Add a few missing UVM_FLAG_COLORMATCH flags to uvm_pagealloc calls.
Make the socket and pipe loan color-safe.
Make the mips pmap enforce strict page color (color(VA) == color(PA)).
Revision 1.127.4.2: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:42:09 2011 UTC (15 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.127.4.1: preferred, colored; branchpoint 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127.4.1: +9 -3
lines
sync with head
Revision 1.130: download - view: text, markup, annotated - select for diffs
Sun Apr 10 15:45:33 2011 UTC (15 years, 7 months ago) by christos
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +11 -5
lines
- Add O_CLOEXEC to open(2)
- Add fd_set_exclose() to encapsulate uses of FIO{,N}CLEX, O_CLOEXEC, F{G,S}ETFD
- Add a pipe1() function to allow passing flags to the fd's that pipe(2)
opens to ease implementation of linux pipe2(2)
- Factor out fp handling code from open(2) and fhopen(2)
Revision 1.127.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:22 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +7 -7
lines
sync with head
Revision 1.129: download - view: text, markup, annotated - select for diffs
Mon Jan 17 07:13:32 2011 UTC (15 years, 10 months ago) by uebayasi
Branches: MAIN
CVS tags: bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -3
lines
Include internal definitions (uvm/uvm.h) only where necessary.
Revision 1.100.4.6: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:31 2010 UTC (16 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.100.4.5: preferred, colored; branchpoint 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100.4.5: +6 -6
lines
sync with head
Revision 1.127.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:47:31 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127: +6 -6
lines
Sync with HEAD.
Revision 1.128: download - view: text, markup, annotated - select for diffs
Wed Aug 11 11:46:32 2010 UTC (16 years, 3 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +6 -6
lines
Keep condvar wmesg within 8-char limit
Revision 1.100.4.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:19 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.100.4.4: preferred, colored; branchpoint 1.100: preferred, colored
Changes since revision 1.100.4.4: +64 -23
lines
sync with head
Revision 1.127: download - view: text, markup, annotated - select for diffs
Sun Dec 20 09:36:06 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
yamt-nfs-mp-base10,
uebayasi-xip-base1,
uebayasi-xip-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +20 -17
lines
If a multithreaded app closes an fd while another thread is blocked in
read/write/accept, then the expectation is that the blocked thread will
exit and the close complete.
Since only one fd is affected, but many fd can refer to the same file,
the close code can only request the fs code unblock with ERESTART.
Fixed for pipes and sockets, ERESTART will only be generated after such
a close - so there should be no change for other programs.
Also rename fo_abort() to fo_restart() (this used to be fo_drain()).
Fixes PR/26567
Revision 1.126: download - view: text, markup, annotated - select for diffs
Tue Dec 15 18:35:18 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +4 -2
lines
Don't ERESTART write() calls for now.
I suspect some programs don't allow for the partial transfer.
Revision 1.125: download - view: text, markup, annotated - select for diffs
Sun Dec 13 20:02:23 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +18 -2
lines
Another, better, fix for PR/26567.
Only sleep once within each pipe_read/pipe_write call.
If there is no data/space available after we wakeup return ERESTART so
then the 'fd' number is validated again.
A simple broadcast of the cvs is then enough to evict the correct threads
when close() is called from an active thread.
Revision 1.124: download - view: text, markup, annotated - select for diffs
Sun Dec 13 18:27:02 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +10 -16
lines
Revert most of the previous change.
Only one fd needs clobbering, not all fds that reference the pipe.
This may be what ad@ realised when he tried to add the same code to
sockets. Unfixes part of PR/26567.
Revision 1.123: download - view: text, markup, annotated - select for diffs
Sat Dec 12 21:28:04 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +29 -4
lines
Add support for unblocking read/write when close called.
Fixes PR/26567 for pipes.
(NB ad backed out the fix for sockets)
Revision 1.122: download - view: text, markup, annotated - select for diffs
Thu Dec 10 20:55:17 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +23 -21
lines
Avoid leaking a mutex_obj when pipe_create() fails for the read pipe.
Remove the unused argument from pipeclose().
Revision 1.121: download - view: text, markup, annotated - select for diffs
Wed Dec 9 21:32:59 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +3 -3
lines
Rename fo_drain() to fo_abort(), 'drain' is used to mean 'wait for output
do drain' in many places, whereas fo_drain() was called in order to force
blocking read()/write() etc calls to return to userspace so that a close()
call from a different thread can complete.
In the sockets code comment out the broken code in the inner function,
it was being called from compat code.
Revision 1.120: download - view: text, markup, annotated - select for diffs
Sun Dec 6 20:26:55 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +2 -3
lines
Correct comment, pipelock() no longer releases the mutex.
Revision 1.100.4.4: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:38:01 2009 UTC (17 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.100.4.3: preferred, colored; branchpoint 1.100: preferred, colored
Changes since revision 1.100.4.3: +3 -3
lines
sync with head
Revision 1.119: download - view: text, markup, annotated - select for diffs
Mon Aug 31 20:48:14 2009 UTC (17 years, 2 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
jym-xensuspend-nbase
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +5 -2
lines
Turn off pipe's direct I/O again, it corrupts the data (although build and
various activity survived while testing this). Corruptions also happen on
sparc64 where emap is not in effect, therefore bugs are in direct I/O code.
Revision 1.118: download - view: text, markup, annotated - select for diffs
Sat Aug 29 00:06:43 2009 UTC (17 years, 2 months ago) by rmind
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +2 -5
lines
- Re-enable direct I/O with emap for pipe.
- While not used, #ifdef KVA allocation in emap (so it wont burn the space).
Revision 1.107.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:35 2009 UTC (17 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.107.2.1: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107.2.1: +81 -99
lines
Sync with HEAD.
Revision 1.100.4.3: download - view: text, markup, annotated - select for diffs
Sat Jul 18 14:53:23 2009 UTC (17 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.100.4.2: preferred, colored; branchpoint 1.100: preferred, colored
Changes since revision 1.100.4.2: +81 -99
lines
sync with head.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Wed Jul 15 21:09:41 2009 UTC (17 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
jymxensuspend-base
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +5 -2
lines
Revert previous: disable direct I/O on pipe, it cought a problem with emap.
Revision 1.116: download - view: text, markup, annotated - select for diffs
Mon Jul 13 02:49:08 2009 UTC (17 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +2 -5
lines
Re-enable direct I/O for pipe:
- Larger writes (2 or more pages) will use emap.
- Might help to catch rare hang (some very old bug).
Revision 1.115: download - view: text, markup, annotated - select for diffs
Sun Jun 28 15:18:50 2009 UTC (17 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +22 -13
lines
Ephemeral mapping (emap) implementation. Concept is based on the idea that
activity of other threads will perform the TLB flush for the processes using
emap as a side effect. To track that, global and per-CPU generation numbers
are used. This idea was suggested by Andrew Doran; various improvements to
it by me. Notes:
- For now, zero-copy on pipe is not yet enabled.
- TCP socket code would likely need more work.
- Additional UVM loaning improvements are needed.
Proposed on <tech-kern>, silence there.
Quickly reviewed by <ad>.
Revision 1.114: download - view: text, markup, annotated - select for diffs
Sun Jun 28 14:34:48 2009 UTC (17 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +3 -3
lines
Amend previous.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Sun Jun 28 14:22:11 2009 UTC (17 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +61 -88
lines
- Convert some #ifdefs to KASSERT()s.
- KNF, style, no parameters in function declarations.
- No functional changes.
Revision 1.107.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:57 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +29 -14
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.100.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:48 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.100.4.1: preferred, colored; branchpoint 1.100: preferred, colored
Changes since revision 1.100.4.1: +138 -120
lines
sync with head.
Revision 1.103.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:00 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.103.2.1: preferred, colored; branchpoint 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103.2.1: +22 -14
lines
Sync with HEAD.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Sat Apr 11 23:05:26 2009 UTC (17 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jym-xensuspend-base
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +5 -3
lines
Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Sat Apr 11 15:46:18 2009 UTC (17 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +6 -7
lines
rename ctime to btime for consistency.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Sat Apr 11 14:42:28 2009 UTC (17 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +9 -9
lines
- maintain timespec internally.
- set birthtime too.
Revision 1.103.4.5: download - view: text, markup, annotated - select for diffs
Sat Apr 4 23:36:27 2009 UTC (17 years, 7 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.103.4.4: preferred, colored; branchpoint 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103.4.4: +11 -4
lines
Pull up following revision(s) (requested by ad in ticket #661):
sys/arch/xen/xen/xenevt.c: revision 1.32
sys/compat/svr4/svr4_net.c: revision 1.56
sys/compat/svr4_32/svr4_32_net.c: revision 1.19
sys/dev/dmover/dmover_io.c: revision 1.32
sys/dev/putter/putter.c: revision 1.21
sys/kern/kern_descrip.c: revision 1.190
sys/kern/kern_drvctl.c: revision 1.23
sys/kern/kern_event.c: revision 1.64
sys/kern/sys_mqueue.c: revision 1.14
sys/kern/sys_pipe.c: revision 1.109
sys/kern/sys_socket.c: revision 1.59
sys/kern/uipc_syscalls.c: revision 1.136
sys/kern/vfs_vnops.c: revision 1.164
sys/kern/uipc_socket.c: revision 1.188
sys/net/bpf.c: revision 1.144
sys/net/if_tap.c: revision 1.55
sys/opencrypto/cryptodev.c: revision 1.47
sys/sys/file.h: revision 1.67
sys/sys/param.h: patch
sys/sys/socketvar.h: revision 1.119
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.
Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.
thr0 accept(fd, ...)
thr1 close(fd)
Revision 1.109: download - view: text, markup, annotated - select for diffs
Sat Apr 4 10:12:51 2009 UTC (17 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +11 -4
lines
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.
Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.
thr0 accept(fd, ...)
thr1 close(fd)
Revision 1.103.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:32:56 2009 UTC (17 years, 8 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +114 -102
lines
Sync with HEAD.
Revision 1.103.4.4: download - view: text, markup, annotated - select for diffs
Tue Feb 24 02:37:49 2009 UTC (17 years, 8 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC3
Diff to: previous 1.103.4.3: preferred, colored; branchpoint 1.103: preferred, colored
Changes since revision 1.103.4.3: +9 -2
lines
Pull up following revision(s) (requested by enami/joerg in ticket #468):
sys/kern/sys_pipe.c: revision 1.108
The knote objects attached by peer will still be linked in our list
if we are closed before the peer. So, remove them. It didn't matter
when pipe objects are directly returned to pool, but nowadays they
are cached.
Revision 1.103.4.3: download - view: text, markup, annotated - select for diffs
Tue Feb 24 02:36:34 2009 UTC (17 years, 8 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.103.4.2: preferred, colored; branchpoint 1.103: preferred, colored
Changes since revision 1.103.4.2: +6 -6
lines
Pull up following revision(s) (requested by enami/joerg in ticket #468):
sys/kern/sys_pipe.c: revision 1.107
Instead of missing NULL check in pipe_create, let the pipe_ctor to wait
on buffer allocation. The other allocation is simply an optimization,
so leave it as is.
Revision 1.103.4.2: download - view: text, markup, annotated - select for diffs
Tue Feb 24 02:34:47 2009 UTC (17 years, 8 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.103.4.1: preferred, colored; branchpoint 1.103: preferred, colored
Changes since revision 1.103.4.1: +104 -97
lines
Pull up following revision(s) (requested by enami/joerg in ticket #468):
sys/kern/sys_pipe.c: revision 1.106
sys/sys/pipe.h: revision 1.25
Apply pipe patch posted to tech-kern, slightly updated:
- Cache kva.
- Convert to use mutex_obj_alloc().
- Make better use of pool_cache.
Also:
Disable direct transfers for the moment. I believe there may be a bug that
can cause transfers to stall when switching between direct/buffered access.
I think this has most recently been run into on 'denver' but I have seen it
as far back as 3.1.
(As an aside, direct is a not a clear win on modern systems with large cache
and high TLB invalidation overhead. Particularly so on MP systems, although
micro benchmarks may report otherwise because they typically do not tax the
system. Anyone want to write a decent benchmark?)
Revision 1.108: download - view: text, markup, annotated - select for diffs
Sun Feb 15 00:07:54 2009 UTC (17 years, 9 months ago) by enami
Branches: MAIN
CVS tags: nick-hppapmap-base2
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +9 -2
lines
The knote objects attached by peer will still be linked in our list
if we are closed before the peer. So, remove them. It didn't matter
when pipe objects are directly returned to pool, but nowadays they
are cached.
Revision 1.107: download - view: text, markup, annotated - select for diffs
Fri Feb 6 23:04:57 2009 UTC (17 years, 9 months ago) by enami
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +6 -6
lines
Instead of missing NULL check in pipe_create, let the pipe_ctor to wait
on buffer allocation. The other allocation is simply an optimization,
so leave it as is.
Revision 1.103.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 2 21:08:15 2009 UTC (17 years, 9 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC2
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +5 -5
lines
Pull up following revision(s) (requested by yamt in ticket #394):
sys/kern/sys_pipe.c: revision 1.105
fix inverted POLL_ directions.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Sun Feb 1 18:23:04 2009 UTC (17 years, 9 months ago) by ad
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +104 -97
lines
Apply pipe patch posted to tech-kern, slightly updated:
- Cache kva.
- Convert to use mutex_obj_alloc().
- Make better use of pool_cache.
Also:
Disable direct transfers for the moment. I believe there may be a bug that
can cause transfers to stall when switching between direct/buffered access.
I think this has most recently been run into on 'denver' but I have seen it
as far back as 3.1.
(As an aside, direct is a not a clear win on modern systems with large cache
and high TLB invalidation overhead. Particularly so on MP systems, although
micro benchmarks may report otherwise because they typically do not tax the
system. Anyone want to write a decent benchmark?)
Revision 1.105: download - view: text, markup, annotated - select for diffs
Tue Jan 20 14:51:43 2009 UTC (17 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +5 -5
lines
fix inverted POLL_ directions.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Tue Jan 20 14:50:22 2009 UTC (17 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +2 -4
lines
pipeselwakeup: now POLL_HUP != POLL_ERR. remove unnecessary #if.
Revision 1.101.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:28 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101: +6 -8
lines
Sync with HEAD.
Revision 1.95.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:53 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.95.6.2: preferred, colored; branchpoint 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95.6.2: +4 -6
lines
Sync with HEAD.
Revision 1.101.2.4: download - view: text, markup, annotated - select for diffs
Wed Sep 24 16:38:57 2008 UTC (18 years, 1 month ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.101.2.3: preferred, colored; branchpoint 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101.2.3: +2 -4
lines
Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
Revision 1.101.2.3: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:31:43 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.101.2.2: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.2.2: +6 -6
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Wed Sep 17 14:00:41 2008 UTC (18 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
netbsd-5-base,
netbsd-5-0-RC1,
mjf-devfs2-base,
matt-mips64-base2,
haad-nbase2,
haad-dm-base2,
haad-dm-base1,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap,
netbsd-5
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +2 -4
lines
remove M_PIPE (hi rmind!)
Revision 1.102: download - view: text, markup, annotated - select for diffs
Sat Sep 6 23:05:52 2008 UTC (18 years, 2 months ago) by rmind
Branches: MAIN
CVS tags: wrstuden-revivesa-base-2
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +6 -6
lines
Replace malloc with kmem.
Revision 1.95.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:12 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.95.6.1: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.6.1: +0 -7
lines
Sync with HEAD.
Revision 1.100.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:10 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100: +2 -9
lines
sync with head.
Revision 1.100.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:27 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +2 -9
lines
sync with head.
Revision 1.101.2.2: download - view: text, markup, annotated - select for diffs
Wed May 14 01:35:13 2008 UTC (18 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.101.2.1: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.2.1: +2 -3
lines
Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.
Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)
Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.
This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.
I think this reduction is very good thing.
Revision 1.101.2.1: download - view: text, markup, annotated - select for diffs
Sat May 10 23:49:05 2008 UTC (18 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -2
lines
Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.
Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:04 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
haad-dm
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.95.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:04 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +75 -73
lines
Sync with HEAD.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Thu Mar 27 18:30:15 2008 UTC (18 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +4 -7
lines
Replace use of CACHE_LINE_SIZE in some obvious places.
Revision 1.65.2.12: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:39:02 2008 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.65.2.11: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.2.11: +35 -41
lines
sync with head.
Revision 1.95.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:14 2008 UTC (18 years, 7 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95: +40 -29
lines
sync with head.
Revision 1.85.8.4: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:00 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.85.8.3: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.8.3: +84 -69
lines
sync with HEAD
Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:55:00 2008 UTC (18 years, 8 months ago) by ad
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
ad-socklock-base1
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +35 -41
lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.
Revision 1.65.2.11: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:34 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.65.2.10: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.10: +39 -29
lines
sync with head.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Sat Mar 1 14:16:51 2008 UTC (18 years, 8 months ago) by rmind
Branches: MAIN
CVS tags: matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +7 -7
lines
Welcome to 4.99.55:
- Add a lot of missing selinit() and seldestroy() calls.
- Merge selwakeup() and selnotify() calls into a single selnotify().
- Add an additional 'events' argument to selnotify() call. It will
indicate which event (POLL_IN, POLL_OUT, etc) happen. If unknown,
zero may be used.
Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
Revision 1.97: download - view: text, markup, annotated - select for diffs
Fri Feb 29 12:04:48 2008 UTC (18 years, 8 months ago) by yamt
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +34 -24
lines
fix a livelock with multiple readers by separating condvar.
Revision 1.65.2.10: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:56 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.65.2.9: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.9: +3 -2
lines
sync with head.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Sat Feb 23 16:05:17 2008 UTC (18 years, 8 months ago) by chris
Branches: MAIN
CVS tags: hpcarm-cleanup-base
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +3 -2
lines
Add missing pmap_update(pmap_kernel()); calls after pmap_kenter_pa and
pmap_remove.
Revision 1.86.4.4: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:47 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.86.4.3: preferred, colored; branchpoint 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86.4.3: +163 -213
lines
Sync with HEAD.
Revision 1.65.2.9: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:24:17 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.65.2.8: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.8: +52 -48
lines
sync with head.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Mon Jan 28 20:01:50 2008 UTC (18 years, 9 months ago) by ad
Branches: MAIN
CVS tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +52 -48
lines
- Update global counters using atomics before allocating. When freeing,
update the couters afterwards.
- Cosmetic / code generation changes.
Revision 1.65.2.8: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:46:24 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.65.2.7: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.7: +154 -208
lines
sync with head
Revision 1.85.8.3: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:56:22 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.85.8.2: preferred, colored; branchpoint 1.85: preferred, colored
Changes since revision 1.85.8.2: +155 -209
lines
sync with HEAD
Revision 1.88.4.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:42 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.88.4.1: preferred, colored; branchpoint 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88.4.1: +0 -1
lines
Sync with HEAD
Revision 1.94: download - view: text, markup, annotated - select for diffs
Fri Jan 4 21:18:14 2008 UTC (18 years, 10 months ago) by ad
Branches: MAIN
CVS tags: matt-armv6-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +2 -3
lines
Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
Revision 1.88.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:56:13 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +154 -207
lines
Sync with HEAD
Revision 1.93: download - view: text, markup, annotated - select for diffs
Wed Jan 2 19:16:01 2008 UTC (18 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +10 -55
lines
remove PIPE_WANTW, PIPE_WANTR and PIPE_WANTCLOSE. cv_waiters is enough.
this fixes a deadlock between pipe_direct_write and pipeclose.
XXX this code should be simplified.
it's mostly pointless to have two struct pipes linked together,
esp. when we don't support bi-directional pipes.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Fri Dec 28 13:11:16 2007 UTC (18 years, 10 months ago) by ad
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +17 -10
lines
Pull up 1.87.2.8.
Revision 1.87.2.8: download - view: text, markup, annotated - select for diffs
Fri Dec 28 13:10:41 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.87.2.7: preferred, colored; branchpoint 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87.2.7: +17 -10
lines
pipe_kqfilter, filt_pipedetach: fix a NULL deref.
Revision 1.87.2.7: download - view: text, markup, annotated - select for diffs
Thu Dec 27 15:26:01 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.87.2.6: preferred, colored; branchpoint 1.87: preferred, colored
Changes since revision 1.87.2.6: +2 -3
lines
Pull up 1.91.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Thu Dec 27 15:25:22 2007 UTC (18 years, 10 months ago) by ad
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +2 -3
lines
pipe_direct_write: kill a mutex_exit() that escaped.
Revision 1.86.4.3: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:46:11 2007 UTC (18 years, 10 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.86.4.2: preferred, colored; branchpoint 1.86: preferred, colored
Changes since revision 1.86.4.2: +3 -3
lines
Sync with HEAD.
Revision 1.87.2.6: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:44 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.87.2.5: preferred, colored; branchpoint 1.87: preferred, colored
Changes since revision 1.87.2.5: +3 -3
lines
Sync with head.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Wed Dec 26 16:01:37 2007 UTC (18 years, 10 months ago) by ad
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +138 -152
lines
Merge more changes from vmlocking2, mainly:
- Locking improvements.
- Use pool_cache for more items.
Revision 1.87.2.5: download - view: text, markup, annotated - select for diffs
Fri Dec 21 10:46:37 2007 UTC (18 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.87.2.4: preferred, colored; branchpoint 1.87: preferred, colored
Changes since revision 1.87.2.4: +6 -3
lines
A couple of missing calls to mutex_enter().
Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Dec 20 23:03:11 2007 UTC (18 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +3 -3
lines
Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
Revision 1.87.2.4: download - view: text, markup, annotated - select for diffs
Tue Dec 18 15:23:03 2007 UTC (18 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.87.2.3: preferred, colored; branchpoint 1.87: preferred, colored
Changes since revision 1.87.2.3: +16 -24
lines
Fix problems with the locking and simplify a bit.
Revision 1.87.2.3: download - view: text, markup, annotated - select for diffs
Sat Dec 15 04:37:18 2007 UTC (18 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.87.2.2: preferred, colored; branchpoint 1.87: preferred, colored
Changes since revision 1.87.2.2: +16 -15
lines
Use atomic ops to maintain global counters.
Revision 1.87.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 15 01:42:43 2007 UTC (18 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.87.2.1: preferred, colored; branchpoint 1.87: preferred, colored
Changes since revision 1.87.2.1: +120 -130
lines
Share a single mutex between both ends of the pipe and remove all the
crappy code that deals with locking in the wrong direction.
Revision 1.85.6.3: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:38:25 2007 UTC (18 years, 11 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.85.6.2: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.6.2: +3 -3
lines
Sync with HEAD.
Revision 1.86.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:20:39 2007 UTC (18 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.86.4.1: preferred, colored; branchpoint 1.86: preferred, colored
Changes since revision 1.86.4.1: +3 -3
lines
Sync with HEAD.
Revision 1.87.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:48 2007 UTC (18 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3
lines
Sync with head.
Revision 1.65.2.7: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:33:12 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.65.2.6: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.6: +3 -3
lines
sync with head
Revision 1.88: download - view: text, markup, annotated - select for diffs
Wed Dec 5 17:19:58 2007 UTC (18 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base2,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3
lines
Do not "return 1" from kqfilter for errors. That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.
Revision 1.86.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:48:53 2007 UTC (19 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +8 -7
lines
Sync with HEAD.
Revision 1.65.2.6: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:51 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.65.2.5: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.5: +8 -7
lines
sync with head.
Revision 1.86.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:02:26 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +8 -7
lines
Sync with HEAD
Revision 1.85.6.2: download - view: text, markup, annotated - select for diffs
Sun Nov 11 16:48:11 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.85.6.1: preferred, colored; branchpoint 1.85: preferred, colored
Changes since revision 1.85.6.1: +8 -7
lines
Sync with HEAD.
Revision 1.85.8.2: download - view: text, markup, annotated - select for diffs
Thu Nov 8 11:00:07 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.85.8.1: preferred, colored; branchpoint 1.85: preferred, colored
Changes since revision 1.85.8.1: +8 -7
lines
sync with -HEAD
Revision 1.87: download - view: text, markup, annotated - select for diffs
Wed Nov 7 00:23:23 2007 UTC (19 years ago) by ad
Branches: MAIN
CVS tags: vmlocking2-base1,
vmlocking-nbase,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: vmlocking2
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +8 -7
lines
Merge from vmlocking:
- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.
Revision 1.85.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:32:31 2007 UTC (19 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -2
lines
sync with HEAD
Revision 1.65.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:35:36 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.65.2.4: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.4: +4 -2
lines
sync with head.
Revision 1.85.10.1: download - view: text, markup, annotated - select for diffs
Sat Oct 6 15:28:46 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +4 -2
lines
sync with head.
Revision 1.85.6.1: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:29:04 2007 UTC (19 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -2
lines
Sync with HEAD.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Tue Sep 25 13:53:31 2007 UTC (19 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
vmlocking-base,
jmcneill-base
Branch point for: mjf-devfs,
bouyer-xenamd64
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -2
lines
Use selinit() / seldestroy().
Revision 1.65.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:41:09 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.65.2.3: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.3: +244 -177
lines
sync with head.
Revision 1.79.2.6: download - view: text, markup, annotated - select for diffs
Sat Sep 1 12:57:54 2007 UTC (19 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.79.2.5: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.2.5: +6 -5
lines
Use pool_cache for allocating a few more types of objects.
Revision 1.79.2.5: download - view: text, markup, annotated - select for diffs
Thu Aug 30 13:10:38 2007 UTC (19 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.79.2.4: preferred, colored
Changes since revision 1.79.2.4: +4 -2
lines
Add selinit() and seldestroy(), and use with pipes. Occasionally an LWP
can still be waiting on a object after it has been destroyed.
Revision 1.81.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:10:10 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +148 -85
lines
Sync with head.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:10:56 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: yamt-x86pmap,
matt-armv6,
jmcneill-pm
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +76 -64
lines
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
Revision 1.79.2.4: download - view: text, markup, annotated - select for diffs
Sat Apr 28 21:18:48 2007 UTC (19 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.79.2.3: preferred, colored
Changes since revision 1.79.2.3: +68 -64
lines
Fix locking botch.
Revision 1.78.2.3: download - view: text, markup, annotated - select for diffs
Sun Apr 15 16:03:51 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.78.2.2: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.2: +2 -3
lines
sync with head.
Revision 1.79.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 10 13:26:40 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.79.2.2: preferred, colored
Changes since revision 1.79.2.2: +30 -24
lines
Sync with head.
Revision 1.79.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 10 01:55:31 2007 UTC (19 years, 7 months ago) by ad
Branches: vmlocking
Diff to: previous 1.79.2.1: preferred, colored
Changes since revision 1.79.2.1: +10 -2
lines
Fix a deadlock against kernel_lock.
Revision 1.82.2.1: download - view: text, markup, annotated - select for diffs
Thu Mar 29 19:27:58 2007 UTC (19 years, 7 months ago) by reinoud
Branches: reinoud-bufcleanup
Diff to: previous 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82: +30 -24
lines
Pullup to -current
Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Mar 26 22:52:44 2007 UTC (19 years, 7 months ago) by hubertf
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +2 -3
lines
Remove duplicate #include's
From: Slava Semushin <php-coder@altlinux.ru>
Revision 1.78.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 24 14:56:04 2007 UTC (19 years, 7 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.78.2.1: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.2.1: +164 -108
lines
sync with head.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Fri Mar 23 18:33:43 2007 UTC (19 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +30 -23
lines
Fix a deadlock w/kqueue that was introduced with the last set of changes.
Spotted by yamt@.
Revision 1.79.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:51:57 2007 UTC (19 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +151 -102
lines
Sync with head.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Mon Mar 12 21:31:12 2007 UTC (19 years, 8 months ago) by ad
Branches: MAIN
Branch point for: reinoud-bufcleanup
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +61 -16
lines
Put a lock around pipe->pipe_peer.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Mon Mar 12 19:05:05 2007 UTC (19 years, 8 months ago) by ad
Branches: MAIN
Branch point for: mjf-ufs-trans
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3
lines
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
Revision 1.80: download - view: text, markup, annotated - select for diffs
Mon Mar 12 16:20:53 2007 UTC (19 years, 8 months ago) by ad
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +93 -89
lines
Use mutexes & condvars.
Revision 1.78.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:58:42 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +14 -14
lines
Sync with HEAD.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:03:09 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
Branch point for: vmlocking
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +14 -14
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.65.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:16 2007 UTC (19 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.65.2.2: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.2: +2 -3
lines
sync with head.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:31 2007 UTC (19 years, 9 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +2 -3
lines
Merge newlock2 to head.
Revision 1.74.4.2: download - view: text, markup, annotated - select for diffs
Tue Jan 30 13:51:41 2007 UTC (19 years, 9 months ago) by ad
Branches: newlock2
Diff to: previous 1.74.4.1: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.4.1: +2 -3
lines
Remove support for SA. Ok core@.
Revision 1.65.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:06 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.65.2.1: preferred, colored; branchpoint 1.65: preferred, colored
Changes since revision 1.65.2.1: +5 -8
lines
sync with head.
Revision 1.74.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:45 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.74.6.1: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.6.1: +12 -13
lines
sync with head.
Revision 1.74.4.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:23 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -3
lines
Sync with head.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Nov 1 10:17:59 2006 UTC (20 years ago) by yamt
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +12 -13
lines
remove some __unused from function parameters.
Revision 1.74.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:11 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +13 -13
lines
sync with head
Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:18 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +13 -12
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.75: download - view: text, markup, annotated - select for diffs
Sat Sep 23 15:36:12 2006 UTC (20 years, 1 month ago) by xtraeme
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -3
lines
Remove duplicated includes, from Jeff Ito -> PR kern/26113. Thanks.
Revision 1.70.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:57:16 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +16 -25
lines
sync with head
Revision 1.71.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:45:46 2006 UTC (20 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.71.2.2: preferred, colored; branchpoint 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71.2.2: +5 -7
lines
sync with head
Revision 1.74: download - view: text, markup, annotated - select for diffs
Sun Jul 23 22:06:11 2006 UTC (20 years, 3 months ago) by ad
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
rpaulo-netinet-merge-pcb-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +5 -7
lines
Use the LWP cached credentials where sane.
Revision 1.71.2.2: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:52:57 2006 UTC (20 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.71.2.1: preferred, colored; branchpoint 1.71: preferred, colored
Changes since revision 1.71.2.1: +5 -13
lines
sync with head.
Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:09:38 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +75 -137
lines
sync with head.
Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 04:07:16 2006 UTC (20 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +5 -13
lines
Sync with head.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Wed Jun 7 22:33:41 2006 UTC (20 years, 5 months ago) by kardel
Branches: MAIN
CVS tags: yamt-pdpolicy-base6,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +5 -13
lines
merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
time.tv_sec -> time_second
- struct timeval mono_time is gone
mono_time.tv_sec -> time_uptime
- access to time via
{get,}{micro,nano,bin}time()
get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
Revision 1.70.6.3: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:38:09 2006 UTC (20 years, 5 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.70.6.2: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.6.2: +9 -8
lines
Sync with head.
Revision 1.71.6.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:41 2006 UTC (20 years, 5 months ago) by tron
Branches: peter-altq
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +9 -8
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.71.2.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:41 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +9 -8
lines
sync with head.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sun May 14 21:15:11 2006 UTC (20 years, 6 months ago) by elad
Branches: MAIN
CVS tags: yamt-pdpolicy-base5,
simonb-timecounters-base
Branch point for: chap-midi
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +9 -8
lines
integrate kauth.
Revision 1.71.4.2: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:30 2006 UTC (20 years, 6 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.71.4.1: preferred, colored; branchpoint 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71.4.1: +3 -2
lines
- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
that need it.
Approved by core.
Revision 1.70.6.2: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:59 2006 UTC (20 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.70.6.1: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.6.1: +3 -3
lines
Sync with head.
Revision 1.71.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 00:53:40 2006 UTC (20 years, 8 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +8 -8
lines
Adapt to kernel authorization KPI.
Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed Mar 1 12:38:21 2006 UTC (20 years, 8 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base,
elad-kernelauth-base
Branch point for: yamt-pdpolicy,
peter-altq,
elad-kernelauth
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3
lines
merge yamt-uio_vmspace branch.
- use vmspace rather than proc or lwp where appropriate.
the latter is more natural to specify an address space.
(and less likely to be abused for random purposes.)
- fix a swdmover race.
Revision 1.70.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 4 14:30:17 2006 UTC (20 years, 9 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +5 -13
lines
Adapt for timecounters: mostly use get*time() and use "time_second"
instead of "time.tv_sec".
Revision 1.70.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 31 11:14:01 2005 UTC (20 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +3 -3
lines
uio_segflg/uio_lwp -> uio_vmspace.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Sat Dec 24 19:12:23 2005 UTC (20 years, 10 months ago) by perry
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace,
simonb-timecounters,
rpaulo-netinet-merge-pcb
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4
lines
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:30 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +17 -16
lines
merge ktrace-lwp.
Revision 1.40.2.11: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:29:12 2005 UTC (20 years, 11 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.40.2.10: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.2.10: +21 -62
lines
Sync with head.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Dec 7 06:05:20 2005 UTC (20 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: ktrace-lwp-base
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +21 -62
lines
Use ANSI function decls.
Revision 1.40.2.10: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:09:45 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.40.2.9: preferred, colored
Changes since revision 1.40.2.9: +36 -51
lines
Sync with HEAD. Here we go again...
Revision 1.66.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 2 11:58:11 2005 UTC (21 years ago) by yamt
Branches: yamt-vop
Diff to: previous 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66: +24 -34
lines
sync with head.
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Oct 29 12:31:07 2005 UTC (21 years ago) by yamt
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +24 -34
lines
just use ltsleep rather than lockmgr + PCATCH with horrible timeout dance.
Revision 1.64.2.1: download - view: text, markup, annotated - select for diffs
Wed Sep 14 20:35:05 2005 UTC (21 years, 2 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +14 -19
lines
Pull up following revision(s) (requested by christos in ticket #773):
sys/kern/sys_pipe.c: revision 1.66
PR/27185: Christian Biere: kqueue: EOF on pipe gains no EVFILT_READ event
Set the PIPE_EOF flag before we wakeup() our peer. While here GC unused
argument from pipeselwakeup() and call it even when fp == NULL.
Revision 1.55.2.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 13 23:04:57 2005 UTC (21 years, 2 months ago) by riz
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1
Diff to: previous 1.55.2.2: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.2.2: +14 -19
lines
Pull up following revision(s) (requested by christos in ticket #5845):
sys/kern/sys_pipe.c: revision 1.66
PR/27185: Christian Biere: kqueue: EOF on pipe gains no EVFILT_READ event
Set the PIPE_EOF flag before we wakeup() our peer. While here GC unused
argument from pipeselwakeup() and call it even when fp == NULL.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Sep 11 17:55:26 2005 UTC (21 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base2,
yamt-vop-base,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Branch point for: yamt-vop
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +14 -19
lines
PR/27185: Christian Biere: kqueue: EOF on pipe gains no EVFILT_READ event
Set the PIPE_EOF flag before we wakeup() our peer. While here GC unused
argument from pipeselwakeup() and call it even when fp == NULL.
Revision 1.62.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:24 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +16 -12
lines
sync with -current
Revision 1.40.2.9: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:30:56 2005 UTC (21 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.40.2.8: preferred, colored
Changes since revision 1.40.2.8: +10 -6
lines
Sync with HEAD.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Apr 1 11:59:37 2005 UTC (21 years, 7 months ago) by yamt
Branches: MAIN
CVS tags: kent-audio2-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +8 -6
lines
merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
save some resources like pv_entry. also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
Revision 1.62.6.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:12 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.62.6.1: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.6.1: +10 -8
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Mar 12 18:43:42 2005 UTC (21 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -2
lines
PR/29679: Gunnar.Ritter: fstat() blksize on the write side of the pipe returns
0. Fix it by returning the peer's block size.
XXX: This is the minimal fix. Probably the buffer size should be initialized
somewhere else, but probably this would need some more code changes.
Revision 1.40.2.8: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:52:00 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.40.2.7: preferred, colored
Changes since revision 1.40.2.7: +8 -8
lines
Sync with HEAD.
Hi Perry!
Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat Feb 26 21:34:55 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +8 -8
lines
nuke trailing whitespace
Revision 1.62.6.1: download - view: text, markup, annotated - select for diffs
Tue Jan 25 12:59:35 2005 UTC (21 years, 9 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +8 -6
lines
convert to new apis.
Revision 1.40.2.7: download - view: text, markup, annotated - select for diffs
Sat Dec 18 09:32:35 2004 UTC (21 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.40.2.6: preferred, colored
Changes since revision 1.40.2.6: +4 -19
lines
Sync with HEAD.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Nov 30 04:25:44 2004 UTC (21 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-km-base2,
yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +4 -19
lines
Cloning cleanup:
1. make fileops const
2. add 2 new negative errno's to `officially' support the cloning hack:
- EDUPFD (used to overload ENODEV)
- EMOVEFD (used to overload ENXIO)
3. Created an fdclone() function to encapsulate the operations needed for
EMOVEFD, and made all cloners use it.
4. Centralize the local noop/badop fileops functions to:
fnullop_fcntl, fnullop_poll, fnullop_kqfilter, fbadop_stat
Revision 1.40.2.6: download - view: text, markup, annotated - select for diffs
Mon Nov 29 07:24:51 2004 UTC (21 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.40.2.5: preferred, colored
Changes since revision 1.40.2.5: +4 -4
lines
Sync with HEAD.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Nov 21 04:30:33 2004 UTC (22 years ago) by yamt
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3
lines
pipe_direct_write: fallback to non-loan write in the case of
any errors from uvm_loan(), rather than only for ENOMEM, which is
never returned by uvm_loan().
Revision 1.40.2.5: download - view: text, markup, annotated - select for diffs
Sun Nov 14 08:15:57 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.40.2.4: preferred, colored
Changes since revision 1.40.2.4: +34 -2
lines
Sync with HEAD.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Nov 14 03:30:09 2004 UTC (22 years ago) by atatat
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3
lines
Wrap TIMEVAL_TO_TIMESPEC and TIMESPEC_TO_TIMEVAL macros in
do { ... } while(/*CONSTCOND*/0)
so that they can be used unadorned in if/else blocks, etc. This means
that you now *have* to put a ; at the end of the "call" to these
macros.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Nov 6 02:03:20 2004 UTC (22 years ago) by wrstuden
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +34 -2
lines
Add support for FIONWRITE and FIONSPACE ioctls. FIONWRITE reports
the number of bytes in the send queue, and FIONSPACE reports the
number of free bytes in the send queue. These ioctls permit applications
to monitor file descriptor transmission dynamics.
In examining prior art, FIONWRITE exists with the semantics given
here. FIONSPACE is provided so that programs may easily determine how
much space is left in the send queue; they do not need to know the
send queue size.
The fact that a write may block even if there is enough space in the
send queue for it is noted in the documentation.
FIONWRITE functionality may be used to implement TIOCOUTQ for Linux
emulation - Linux extended this ioctl to sockets, even though they are
not ttys.
Revision 1.40.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:35:13 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.40.2.3: preferred, colored
Changes since revision 1.40.2.3: +24 -23
lines
Fix the sync with head I botched.
Revision 1.40.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:53:03 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.40.2.2: preferred, colored
Changes since revision 1.40.2.2: +23 -24
lines
Sync with HEAD.
Revision 1.40.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:52:55 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.40.2.1: preferred, colored
Changes since revision 1.40.2.1: +154 -102
lines
Sync with HEAD
Revision 1.55.2.2: download - view: text, markup, annotated - select for diffs
Fri Jul 23 15:49:46 2004 UTC (22 years, 3 months ago) by tron
Branches: netbsd-2-0
CVS tags: netbsd-2-base,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Diff to: previous 1.55.2.1: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.2.1: +10 -10
lines
Pull up revision 1.58 (requested by mycroft in ticket #689):
PRIBIO -> PSOCK. This emulates the pre-sys_pipe behavior, and avoids
including
processes blocked on pipe I/O in the load average.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Jul 17 20:50:08 2004 UTC (22 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +10 -10
lines
PRIBIO -> PSOCK. This emulates the pre-sys_pipe behavior, and avoids including
processes blocked on pipe I/O in the load average.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Apr 25 16:42:41 2004 UTC (22 years, 6 months ago) by simonb
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +4 -14
lines
Initialise (most) pools from a link set instead of explicit calls
to pool_init. Untouched pools are ones that either in arch-specific
code, or aren't initialiased during initial system startup.
Convert struct session, ucred and lockf to pools.
Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 04:27:31 2004 UTC (22 years, 7 months ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +16 -8
lines
Pullup rev 1.56 (requested by atatat in ticket #93)
Lots of sysctl descriptions mostly copied from sysctl(3).
Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Apr 8 06:20:30 2004 UTC (22 years, 7 months ago) by atatat
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +16 -8
lines
Lots of sysctl descriptions (if someone wants to help out here, that
would be good) mostly copied from sysctl(3). This takes care of the
top-level, most of kern.* and hw.* (modulo the ath and bge stuff), and
all of proc.*.
If you don't want the added rodata in your kernel, use "options
SYSCTL_NO_DESCR" in your kernel config.
Revision 1.55: download - view: text, markup, annotated - select for diffs
Wed Mar 24 20:25:28 2004 UTC (22 years, 7 months ago) by pooka
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +6 -6
lines
* replace incorrect M_WAITOK flag from pool_get() by proper PR_WAITOK
and remove redundant check for NULL return value
* switch pool page allocator to nointr allocator
jdolecek sayeth ok
Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Mar 24 15:34:53 2004 UTC (22 years, 7 months ago) by atatat
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +16 -9
lines
Tango on sysctl_createv() and flags. The flags have all been renamed,
and sysctl_createv() now uses more arguments.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Mar 3 22:00:34 2004 UTC (22 years, 8 months ago) by dsl
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +6 -6
lines
No need to initialise [rw]pipe twice.
Initialise locks before trying to allocate pipe buffer, when allocate
fails we'll not explode trying to acquire the locks when tidying up.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Mar 3 21:35:52 2004 UTC (22 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3
lines
initialize rpipe and wpipe to NULL, so that they are initialized in the
error path.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu Feb 26 08:15:31 2004 UTC (22 years, 8 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -3
lines
pipelock() must release the pipe simplelock during tsleep()
fixes PR kern/24551 by Havard Eidnes
Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Feb 24 20:57:26 2004 UTC (22 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -3
lines
remove error(1) comment.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Feb 24 15:12:52 2004 UTC (22 years, 8 months ago) by wiz
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3
lines
occured -> occurred. From Peter Postma.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Feb 22 17:51:25 2004 UTC (22 years, 8 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +15 -9
lines
use the new NOTE_SUBMIT to flag if the locking is necessary
for EVFILT_READ/EVFILT_WRITE knotes
fixes PR kern/23915 by Martin Husemann (pipes), and similar locking problem
in tty code
Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Dec 4 19:38:24 2003 UTC (22 years, 11 months ago) by atatat
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +34 -30
lines
Dynamic sysctl.
Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.
Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded. Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.
All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.
PS - I'm sorry, but there's a distinct lack of documentation at the
moment. I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Nov 13 11:59:46 2003 UTC (23 years ago) by yamt
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -4
lines
plug memory leak on error.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Oct 25 09:10:35 2003 UTC (23 years ago) by christos
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -2
lines
fix uninitialized variable
Revision 1.44: download - view: text, markup, annotated - select for diffs
Mon Sep 22 12:59:57 2003 UTC (23 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3
lines
- pass signo to fownsignal [ok by jd]
- make urg signal handling use fownsignal
- remove out of band detection in sowakeup
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Sep 21 19:17:07 2003 UTC (23 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +15 -32
lines
cleanup & uniform descriptor owner handling:
* introduce fsetown(), fgetown(), fownsignal() - this sets/retrieves/signals
the owner of descriptor, according to appropriate sematics
of TIOCSPGRP/FIOSETOWN/SIOCSPGRP/TIOCGPGRP/FIOGETOWN/SIOCGPGRP ioctl; use
these routines instead of custom code where appropriate
* make every place handling TIOCSPGRP/TIOCGPGRP handle also FIOSETOWN/FIOGETOWN
properly, and remove the translation of FIO[SG]OWN to TIOC[SG]PGRP
in sys_ioctl() & sys_fcntl()
* also remove the socket-specific hack in sys_ioctl()/sys_fcntl() and
pass the ioctls down to soo_ioctl() as any other ioctl
change discussed on tech-kern@
Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Sep 14 23:47:09 2003 UTC (23 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +58 -24
lines
ksiginfo_t support.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Aug 11 10:24:41 2003 UTC (23 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +20 -2
lines
Workaround to prevent a lockup in pipelock() in the case that signals are
pending while we must wait for the lock.
Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:41 2003 UTC (23 years, 4 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +24 -24
lines
Apply the aborted ktrace-lwp changes to a specific branch. This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it. This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:31:26 2003 UTC (23 years, 4 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +22 -22
lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:56 2003 UTC (23 years, 4 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +24 -24
lines
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:13:51 2003 UTC (23 years, 8 months ago) by dsl
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -6
lines
Change 'data' argument to fo_ioctl and fo_fcntl from 'caddr_t' to 'void *'.
Avoids a lot of casting and removes the need for some line breaks.
Removed a load of (caddr_t) casts from calls to copyin/copyout as well.
(approved by christos - he has a plan to remove caddr_t...)
Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Mar 12 23:00:03 2003 UTC (23 years, 8 months ago) by dsl
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +15 -8
lines
Validate that pgid argument to TIOCSPGRP in part of current session.
Treat +ve numbers as process group ids and -ve as pids (see tcsetpgrp() in part of current session.
Treat +ve numbers as process group ids and -ve as pids - see tcsetpgrp(3).
(approved by christos)
Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Feb 14 13:16:44 2003 UTC (23 years, 9 months ago) by pk
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +11 -10
lines
On pipe reads, check for EOF before FNONBLOCK to avoid spurious EAGAIN errors.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Feb 12 21:54:16 2003 UTC (23 years, 9 months ago) by pk
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +430 -1009
lines
Make the pipe code mostly MP-safe. There are a few unaddressed race
conditions at points where it's necessary to access both the up-stream
and down-stream parts of the bi-directional pipe data structure. These
are marked `XXXSMP' in the code.
Also, since the changes are pretty invasive, there little point in keeping
all the "#ifdef FreeBSD" code around; so all of that has been stripped out.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Feb 1 06:23:44 2003 UTC (23 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -2
lines
Add extensible malloc types, adapted from FreeBSD. This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant. Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Jan 18 10:06:34 2003 UTC (23 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -4
lines
Merge the nathanw_sa branch.
Revision 1.4.2.15: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:43:09 2002 UTC (23 years, 11 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.4.2.14: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.14: +9 -9
lines
Sync with HEAD.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Dec 5 16:30:55 2002 UTC (23 years, 11 months ago) by jdolecek
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3
lines
pipe_stat(): add S_IRUSR and S_IWUSR to mode; this is what Linux does,
and seems like generally sensible (more sensible than not doing so), so done
in generic code rather than compat glue only
Change proposed in PR kern/18767 by Emmanuel Dreyfus.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Nov 26 18:44:35 2002 UTC (23 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +8 -8
lines
si_ -> sel_ to avoid conflicts with siginfo.
Revision 1.4.2.14: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:14:00 2002 UTC (24 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.13: preferred, colored
Changes since revision 1.4.2.13: +68 -43
lines
Catch up to -current
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Nov 2 07:25:23 2002 UTC (24 years ago) by perry
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -4
lines
/*CONTCOND*/ while (0)'ed macros
Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Nov 1 21:46:51 2002 UTC (24 years ago) by kristerw
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -2
lines
ISO C requires a statement after a label.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Nov 1 21:34:30 2002 UTC (24 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -4
lines
pipe_read(): initialize ocnt before pipelock() call; it might have been
used unitialized when the pipelock() call would fail
bug found by Krister Walfridsson
Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Oct 23 09:14:22 2002 UTC (24 years ago) by jdolecek
Branches: MAIN
CVS tags: kqueue-aftermerge
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +63 -39
lines
merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
Revision 1.5.2.11: download - view: text, markup, annotated - select for diffs
Sun Sep 29 09:59:14 2002 UTC (24 years, 1 month ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.2.10: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.10: +1 -1
lines
drop (caddr_t) and (void *) casts for kn_hook
Revision 1.5.2.10: download - view: text, markup, annotated - select for diffs
Sun Sep 22 08:37:32 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.2.9: preferred, colored
Changes since revision 1.5.2.9: +5 -0
lines
improve previous - don't try to do anything if the 'read' end of pipe
is already closed, pipe_peer is NULL in that case
Revision 1.5.2.9: download - view: text, markup, annotated - select for diffs
Sat Sep 21 19:40:35 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.2.8: preferred, colored
Changes since revision 1.5.2.8: +16 -2
lines
filt_pipedetach(): for EVFILT_WRITE, need to detach the knote from the
peer's pipe_sel.si_note
this fixes kernel panic for EVFILT_WRITE when the write pipe descriptor
is closed before read or kqueue one
Revision 1.5.2.8: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:48:08 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.2.7: preferred, colored
Changes since revision 1.5.2.7: +3 -3
lines
sync kqueue branch with HEAD
Revision 1.25.4.1: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:23:12 2002 UTC (24 years, 2 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +3 -3
lines
catch up with -current.
Revision 1.4.2.13: download - view: text, markup, annotated - select for diffs
Tue Aug 27 23:47:33 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.12: preferred, colored
Changes since revision 1.4.2.12: +3 -3
lines
Catch up to -current.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Aug 25 23:16:39 2002 UTC (24 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: kqueue-beforemerge,
kqueue-base,
gehenna-devsw-base
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3
lines
Fix signed/unsigned comparison warnings from GCC 3.3.
Revision 1.5.2.7: download - view: text, markup, annotated - select for diffs
Wed Aug 7 14:48:16 2002 UTC (24 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.2.6: preferred, colored
Changes since revision 1.5.2.6: +6 -2
lines
pullup fix for problem mentioned in FreeBSD-SA-02:37 - local users could
panic the system using the kqueue mechanism
Revision 1.5.2.6: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:49:35 2002 UTC (24 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.2.5: preferred, colored
Changes since revision 1.5.2.5: +3 -3
lines
catch up with -current on kqueue branch
Revision 1.4.2.12: download - view: text, markup, annotated - select for diffs
Wed May 29 21:33:14 2002 UTC (24 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.11: preferred, colored
Changes since revision 1.4.2.11: +3 -2
lines
#include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.
(Behold the Power of Ed)
Revision 1.4.2.11: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:47:57 2002 UTC (24 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.10: preferred, colored
Changes since revision 1.4.2.10: +297 -113
lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Mar 17 19:41:07 2002 UTC (24 years, 8 months ago) by atatat
Branches: MAIN
CVS tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6,
eeh-devprop-base,
eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3
lines
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
Revision 1.5.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:01:50 2002 UTC (24 years, 8 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.5.2.4: preferred, colored
Changes since revision 1.5.2.4: +296 -123
lines
Catch up with -current.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Mar 13 21:50:24 2002 UTC (24 years, 8 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +290 -103
lines
Merge the update to FreeBSD rev 1.95.
Changes:
* MP locking changes (mostly FreeBSD specific)
XXXSMP the MP locking macros are noops on NetBSD for now
* kevent fix (FreeBSD rev. 1.87): when the last reader/writer
disconnects, ensure that anybody who is waiting for the kevent
on the other end of the pipe gets EV_EOF
* kill __P
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Wed Mar 13 19:08:27 2002 UTC (24 years, 8 months ago) by jdolecek
Branches: FREEBSD
CVS tags: FREEBSD-20020309
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +213 -104
lines
Import FreeBSD sys_pipe.c rev. 1.95.
Changes:
* MP work (FreeBSD specific)
* kqueue fix (rev. 1.87): Make kevents on pipes work as described in
the manpage - when the last reader/writer disconnects, ensure that anybody
who is waiting for the kevent on the other end of the pipe gets EV_EOF.
* kill __P
Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Mar 8 20:48:41 2002 UTC (24 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: newlock-base,
newlock
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -4
lines
Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map). Try to deal with this:
* Group all information about the backend allocator for a pool in a
separate structure. The pool references this structure, rather than
the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
to become available, but will still fail if it cannot callocate KVA
space for the pages. If this happens, carefully drain all pools using
the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
some pages, and use that information to make draining easier and more
efficient.
* Get rid of PR_URGENT. There was only one use of it, and it could be
dealt with by the caller.
From art@openbsd.org.
Revision 1.4.2.10: download - view: text, markup, annotated - select for diffs
Thu Feb 28 23:48:50 2002 UTC (24 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.9: preferred, colored
Changes since revision 1.4.2.9: +8 -4
lines
LWPify.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:43:16 2002 UTC (24 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +7 -7
lines
Don't assign NULL to non-pointer variables.
Revision 1.5.2.4: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:00:06 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.5.2.3: preferred, colored
Changes since revision 1.5.2.3: +109 -92
lines
Sync kqueue branch with -current.
Revision 1.4.2.9: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:32:40 2002 UTC (24 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.8: preferred, colored
Changes since revision 1.4.2.8: +6 -5
lines
Catch up to -current.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Dec 18 08:49:40 2001 UTC (24 years, 11 months ago) by chs
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +5 -4
lines
unmap loaned pages before dropping the loan. some pmaps aren't
expecting pmap_kenter_pa() to be used to replace an existing mapping,
plus it just seems like a bad idea to keep around mappings of pages
that may be freed and reused.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Dec 11 18:15:09 2001 UTC (24 years, 11 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3
lines
fix typo in #ifdef __FreeBSD__
Pointed out by Chris Jepeway in private e-mail, thanks!
Revision 1.4.2.8: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:16:43 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.7: preferred, colored
Changes since revision 1.4.2.7: +74 -63
lines
Catch up to -current.
Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:18:55 2001 UTC (25 years ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +74 -63
lines
Sync the thorpej-mips-cache branch with -current.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Nov 12 15:25:24 2001 UTC (25 years ago) by lukem
Branches: MAIN
CVS tags: thorpej-mips-cache-base
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -1
lines
add RCSIDs
Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Nov 6 07:30:15 2001 UTC (25 years ago) by chs
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +64 -62
lines
use pmap_kenter_pa() instead of pmap_enter(), this is required for
pages loaned to the kernel. this implies that we also need to
call pmap_kremove() before uvm_km_free().
other general cleanup: remove argument names from prototypes,
rename some variables, etc.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Oct 28 20:47:15 2001 UTC (25 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +8 -2
lines
Avoid using microtime(9) for atime/mtime, we don't need to have it
THAT accurate and microtime(9) is painlessly slow on i386 currently.
This speeds up small transfers much. The gain for large transfers
is less significant, but notable too.
Bottleneck was found by Andreas Persson (Re: kern/14246).
Performance improvement with PIII on 661 Mhz according to hbench (with
PIPE_MINDIRECT=8192):
buffersize before after
512 17 49
1024 33 110
2048 52 143
4096 77 163
8192 142 190
64K 577 662
128K 372 392
Revision 1.4.2.7: download - view: text, markup, annotated - select for diffs
Mon Oct 22 20:41:50 2001 UTC (25 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.6: preferred, colored
Changes since revision 1.4.2.6: +2 -2
lines
Catch up to -current.
Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Thu Oct 11 00:02:32 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.11.2.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.1: +2 -2
lines
Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
Revision 1.4.2.6: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:11:44 2001 UTC (25 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.5: preferred, colored
Changes since revision 1.4.2.5: +12 -13
lines
Catch up to -current.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Oct 8 07:50:17 2001 UTC (25 years, 1 month ago) by mycroft
Branches: MAIN
CVS tags: thorpej-devvp-base3
Branch point for: thorpej-mips-cache
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2
lines
When a pipe was grown to BIG_PIPE_SIZE, we could get in a select()/write() loop
because pipe_poll() and pipe_write() did not agree on when it was okay to write
more data. Fix pipe_write(), since it seems to be the broken one.
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:46:55 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +37 -33
lines
Catch up with -current.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Sep 29 13:48:11 2001 UTC (25 years, 1 month ago) by jdolecek
Branches: MAIN
CVS tags: thorpej-devvp-base2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +12 -13
lines
Update the uio resid counts appropriately when any error occurs
(not just EPIPE), so that the higher-level code would note partial
write has happened and DTRT if the write was interrupted due to
e.g. delivery of signal.
This fixes kern/14087 by Frank van der Linden.
Much thanks to Frank for extensive help with debugging this, and review
of the fix.
Note: EPIPE/SIGPIPE delivery behaviour was retained - they're delivered
even if the write was partially successful.
Revision 1.4.2.5: download - view: text, markup, annotated - select for diffs
Wed Sep 26 19:55:05 2001 UTC (25 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.4: preferred, colored
Changes since revision 1.4.2.4: +24 -20
lines
Catch up to -current.
Again.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Sep 25 19:01:21 2001 UTC (25 years, 1 month ago) by jdolecek
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +23 -19
lines
Take care to transfer whole buffer passed via write(2); write(2) should
not do short writes unless when using non-blocking I/O.
This fixes kern/13744 by Geoff C. Wing.
Note this partially undoes rev. 1.5 change. Upon closer examination,
it's been apparent that hbench-OS expectations were not actually justified.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Sep 22 05:58:04 2001 UTC (25 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2
lines
add new UVM_LOAN_WIRED flag - the memory pages loaned in TOPAGE case
are only wired if this flag is present (i.e. they are not wired by default now)
loaned pages are unloaned via new uvm_unloan(), uvm_unloananon() and
uvm_unloanpage() are no longer exported
adjust uvm_unloanpage() to unwire the pages if UVM_LOAN_WIRED is specified
mark uvm_loanuobj() and uvm_loanzero() static also in function implementation
kern/sys_pipe.c: uvm_unloanpage() --> uvm_unloan()
Revision 1.4.2.4: download - view: text, markup, annotated - select for diffs
Fri Sep 21 22:36:26 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.3: preferred, colored
Changes since revision 1.4.2.3: +4 -3
lines
Catch up to -current.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Sep 20 19:09:13 2001 UTC (25 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -3
lines
call pmap_update() after pmap_enter()s
ALWAYS call uvm_unloanpage() in cleanup - it's necessary even
in pipe_loan_free() case, since uvm_km_free() doesn't seem
to implicitly unloan the loaned pages
Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 8 02:33:48 2001 UTC (25 years, 2 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.5.2.2: preferred, colored
Changes since revision 1.5.2.2: +8 -3
lines
Add a selnotify(), which does a selwakeup() + KNOTE(), rather than
requiring all callers to do both.
This may be a transitional step only, or it may stick. I haven't
decided yet.
Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Fri Sep 7 22:14:49 2001 UTC (25 years, 2 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.5.2.1: preferred, colored
Changes since revision 1.5.2.1: +19 -10
lines
Adapt the kqueue support to NetBSD (not yet tested).
Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:11:38 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.2: preferred, colored
Changes since revision 1.4.2.2: +154 -188
lines
Catch up with -current.
Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:13:43 2001 UTC (25 years, 3 months ago) by lukem
Branches: kqueue
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +25 -41
lines
update to -current
Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Jul 26 14:14:28 2001 UTC (25 years, 3 months ago) by jdolecek
Branches: MAIN
CVS tags: thorpej-devvp-base,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-devvp
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +6 -28
lines
pipe_create(): explicitly zero whole memory returned from pool_get(), instead
of some selective pieces. This fixes problem with NEW_PIPE in kernels
with DEBUG option, reported via e-mail by Chuck Silvers.
sys_pipe(): g/c fdp, provide it at the chunk of FreeBSD code where it's used
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Jul 18 06:51:38 2001 UTC (25 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3
lines
bcopy -> memcpy
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jul 18 06:48:27 2001 UTC (25 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -3
lines
bzero -> memset
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jul 17 18:21:59 2001 UTC (25 years, 4 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -4
lines
comment police
Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Jul 17 18:18:52 2001 UTC (25 years, 4 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3
lines
fix bogus uio->uio_offset check introduced in rev. 1.5, which effectively
disabled loans for writes (a.k.a "direct write"), oops; use uio->uio_resid
for the check instead
don't bother updating uio->uio_offset in pipe_direct_write(), it's not used
by upper layers anyway
Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Jul 17 06:05:28 2001 UTC (25 years, 4 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +13 -7
lines
only allocate buffer kva for the end which needs it
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jul 2 20:43:39 2001 UTC (25 years, 4 months ago) by jdolecek
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +108 -122
lines
Don't try to be too smart about chunking - if the data size is bigger
than PIPE_CHUNK_SIZE, just transfer first PIPE_CHUNK_SIZE and return short
write, expecting the caller to call us again later (if they need). Previous
behaviour (besides being wrong for O_NONBLOCK reads) hung hbench under some
circumstances and other applications may have similar expectations as hbench.
This might also fix port-vax/13333 by Manuel Bowyer.
Other changes to pipe_direct_write() include:
* return short write (and success) on EOF if any data were already read;
we return EPIPE on next write(2) call
* simplify error handling, actually handle uvm_loan() failure correctly,
call pipe_loan_free() on error explicitly and only call uvm_unloan()
if the address space was _not_ already freed by pipe_loan_free()
Thanks Chuck Silvers for uvm_unloan() hints :)
Fallthough to common write in pipe_write() if pipe_direct_write()
returns ENOMEM, otherwise always break out immediatelly.
Use uvm_km_valloc_wait() instead uvm_km_valloc() in pipe_loan_alloc().
Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:07:02 2001 UTC (25 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.4.2.1: preferred, colored
Changes since revision 1.4.2.1: +1840 -0
lines
Catch up to -current.
Revision 1.4.2.1
Thu Jun 21 18:59:51 2001 UTC (25 years, 5 months ago) by nathanw
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.4: +0 -1836
lines
file sys_pipe.c was added on branch nathanw_sa on 2001-06-21 20:07:02 +0000
Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Jun 21 18:59:51 2001 UTC (25 years, 5 months ago) by jdolecek
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -5
lines
Don't include opt_new_pipe.h, it's not needed here
Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Jun 21 18:46:22 2001 UTC (25 years, 5 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +30 -30
lines
Oops, fell into rpipe/wpipe trap:
The end we want to do selwakeup() on is not necessarily same as the one
we send SIGIO to. Make pipeselwakeup() accept two parameters and update
callers accordingly. This change fixes behaviour for code, which does
select(2)s on the write end waiting for reader (watched on gv, the problem
manifestated itself as a too long delay before the document was displayed).
Clearly separate the resource free code for FreeBSD
and NetBSD case in pipeclose(), so that it's a bit clearer what's going on.
Also LK_DRAIN the lock before the memory is returned to pipe_pool.
Add missing wakeup() in pipe_write() for PIPE_WANTCLOSE case.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Jun 16 12:00:02 2001 UTC (25 years, 5 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +750 -218
lines
Add port of high performance pipe implementation written by John S. Dyson
for FreeBSD project. Besides huge speed boost compared with socketpair-based
pipes, this implementation also uses pagable kernel memory instead of mbufs.
Significant differences to FreeBSD version:
* uses uvm_loan() facility for direct write
* async/SIGIO handling correct also for sync writer, async reader
* limits settable via sysctl, amountpipekva and nbigpipes available via sysctl
* pipes are unidirectional - this is enforced on file descriptor level
for now only, the code would be updated to take advantage of it
eventually
* uses lockmgr(9)-based locks instead of home brew variant
* scatter-gather write is handled correctly for direct write case, data
is transferred by PIPE_DIRECT_CHUNK bytes maximum, to avoid running out of kva
All FreeBSD/NetBSD specific code is within appropriate #ifdef, in preparation
to feed changes back to FreeBSD tree.
This pipe implementation is optional for now, add 'options NEW_PIPE'
to your kernel config to use it.
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Jun 16 09:21:34 2001 UTC (25 years, 5 months ago) by jdolecek
Branches: FREEBSD
CVS tags: FREEBSD-20010615
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0
lines
Import FreeBSD sys_pipe.c rev 1.82 for reference (this was used as a base
for the NetBSD port).
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Jun 16 09:21:34 2001 UTC (25 years, 5 months ago) by jdolecek
Branches: MAIN
Initial revision
CVSweb <webmaster@jp.NetBSD.org>