The NetBSD Project

CVS log for src/sys/kern/sys_select.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.66.6.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.66.6.1: preferred, colored; branchpoint 1.66: preferred, colored; next MAIN 1.67: preferred, colored
Changes since revision 1.66.6.1: +3 -3 lines
Sync with HEAD

Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Nov 7 21:43:41 2025 UTC (12 months, 1 week ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, HEAD
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3 lines
s/cluser/cluster/ in comment.

Revision 1.66.6.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.66: preferred, colored
Changes since revision 1.66: +125 -20 lines
Sync with HEAD

Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Nov 26 23:10:15 2024 UTC (23 months, 2 weeks ago) by khorben
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.67: preferred, colored
Changes since revision 1.67: +3 -3 lines
Typo in a comment

Revision 1.46.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 20 14:09:10 2024 UTC (23 months, 3 weeks ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE
Diff to: previous 1.46.2.1: preferred, colored; branchpoint 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.2.1: +125 -20 lines
Pull up following revision(s) (requested by riastradh in ticket #1926):

	sys/kern/sys_select.c: revision 1.67 (patch)
	tests/lib/libc/sys/t_select.c: revision 1.5 (patch)

PR kern/57504 : Check all fds passed in to select

If an application passes in a huge fd_set (select(BIG, ...))
then check every bit in the fd_sets provided, to make sure
they are valid.

If BIG is too big (cannot possibly represent an open fd for
this process, under any circumstances: ie: not just because
that many are not currently open) return EINVAL.

Otherwise, check every set bit to make sure it is valid.  Any
fd bits set above the applications current highest open fd
automatically generate EBADF and quick(ish) exit.
fd's that are within the plausible range are then checked as
they always were (it is possible for there to be a few there
above the max open fd - as everything in select is done in
multiples of __FDBITS (fd_mask) but the max open fd is not so
constrained.  Those always were checked, continue using the
same mechanism.

This should have zero impact on any sane application which
uses the highest fd for which it set a bit, +1, as the first
arg to select.   However, if there are any broken applications
that were relying upon the previous behaviour of simply ignoring
any fd_masks that started beyond the max number of open files,
then they might (if they happen to have any bits set) now fail.


tests/lib/libc/sys/t_select: Test select on bad file descriptors.

This should immediately fail, not hang, even if the bad fd is
high-numbered.

PR kern/57504: select with large enough bogus fd number set hangs
instead of failing with EBADF

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 20 14:01:59 2024 UTC (23 months, 3 weeks ago) by martin
Branches: netbsd-9
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3 lines
Pull up following revision(s) (requested by riastradh in ticket #1921):

	sys/kern/kern_event.c: revision 1.106
	sys/kern/sys_select.c: revision 1.51
	sys/kern/subr_exec_fd.c: revision 1.10
	sys/kern/sys_aio.c: revision 1.46
	sys/kern/kern_descrip.c: revision 1.244
	sys/kern/kern_descrip.c: revision 1.245
	sys/ddb/db_xxx.c: revision 1.72
	sys/ddb/db_xxx.c: revision 1.73
	sys/miscfs/fdesc/fdesc_vnops.c: revision 1.132
	sys/kern/uipc_usrreq.c: revision 1.195
	sys/kern/sys_descrip.c: revision 1.36
	sys/kern/uipc_usrreq.c: revision 1.196
	sys/kern/uipc_socket2.c: revision 1.135
	sys/kern/uipc_socket2.c: revision 1.136
	sys/kern/kern_sig.c: revision 1.383
	sys/kern/kern_sig.c: revision 1.384
	sys/compat/netbsd32/netbsd32_ioctl.c: revision 1.107
	sys/miscfs/procfs/procfs_vnops.c: revision 1.208
	sys/kern/subr_exec_fd.c: revision 1.9
	sys/kern/kern_descrip.c: revision 1.252
	(all via patch)

Load struct filedesc::fd_dt with atomic_load_consume.

Exceptions: when fd_refcnt <= 1, or when holding fd_lock.

While here:
- Restore KASSERT(mutex_owned(&fdp->fd_lock)) in fd_unused.
  => This is used only in fd_close and fd_abort, where it holds.
- Move bounds check assertion in fd_putfile to where it matters.
- Store fd_dt with atomic_store_release.
- Move load of fd_dt under lock in knote_fdclose.
- Omit membar_consumer in fdesc_readdir.
  => atomic_load_consume serves the same purpose now.
  => Was needed only on alpha anyway.

Load struct fdfile::ff_file with atomic_load_consume.
Exceptions: when we're only testing whether it's there, not about to
dereference it.

Note: We do not use atomic_store_release to set it because the
preceding mutex_exit should be enough.

(That said, it's not clear the mutex_enter/exit is needed unless
refcnt > 0 already, in which case maybe it would be a win to switch
from the membar implied by mutex_enter to the membar implied by
atomic_store_release -- which I would generally expect to be much
cheaper.  And a little clearer without a long comment.)
kern_descrip.c: Fix membars around reference count decrement.

In general, the `last one out hit the lights' style of reference
counting (as opposed to the `whoever's destroying must wait for
pending users to finish' style) requires memory barriers like so:

        ... usage of resources associated with object ...
        membar_release();
        if (atomic_dec_uint_nv(&obj->refcnt) != 0)
                return;
        membar_acquire();
        ... freeing of resources associated with object ...

This way, all usage happens-before all freeing.  This fixes several
errors:
- fd_close failed to ensure whatever its caller did would
  happen-before the freeing, in the case where another thread is
  concurrently trying to close the fd (ff->ff_file == NULL).
  Fix: Add membar_release before atomic_dec_uint(&ff->ff_refcnt) in
  that branch.
- fd_close failed to ensure all loads its caller had issued will have
  happened-before the freeing, in the case where the fd is still in
  use by another thread (fdp->fd_refcnt > 1 and ff->ff_refcnt-- > 0).
  Fix: Change membar_producer to membar_release before
  atomic_dec_uint(&ff->ff_refcnt).
- fd_close failed to ensure that any usage of fp by other callers
  would happen-before any freeing it does.
  Fix: Add membar_acquire after atomic_dec_uint_nv(&ff->ff_refcnt).
- fd_free failed to ensure that any usage of fdp by other callers
  would happen-before any freeing it does.
  Fix: Add membar_acquire after atomic_dec_uint_nv(&fdp->fd_refcnt).

While here, change membar_exit -> membar_release.  No semantic
change, just updating away from the legacy API.

Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 18 18:16:52 2024 UTC (23 months, 4 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-2-RELEASE, netbsd-10-1-RELEASE
Diff to: previous 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60: +125 -20 lines
Pull up following revision(s) (requested by riastradh in ticket #1011):

	sys/kern/sys_select.c: revision 1.67
	tests/lib/libc/sys/t_select.c: revision 1.5

PR kern/57504 : Check all fds passed in to select

If an application passes in a huge fd_set (select(BIG, ...))
then check every bit in the fd_sets provided, to make sure
they are valid.

If BIG is too big (cannot possibly represent an open fd for
this process, under any circumstances: ie: not just because
that many are not currently open) return EINVAL.
Otherwise, check every set bit to make sure it is valid.  Any
fd bits set above the applications current highest open fd
automatically generate EBADF and quick(ish) exit.
fd's that are within the plausible range are then checked as
they always were (it is possible for there to be a few there
above the max open fd - as everything in select is done in
multiples of __FDBITS (fd_mask) but the max open fd is not so
constrained.  Those always were checked, continue using the
same mechanism.

This should have zero impact on any sane application which
uses the highest fd for which it set a bit, +1, as the first
arg to select.   However, if there are any broken applications
that were relying upon the previous behaviour of simply ignoring
any fd_masks that started beyond the max number of open files,
then they might (if they happen to have any bits set) now fail.

tests/lib/libc/sys/t_select: Test select on bad file descriptors.
This should immediately fail, not hang, even if the bad fd is
high-numbered.

PR kern/57504: select with large enough bogus fd number set hangs
instead of failing with EBADF

Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Oct 18 13:12:34 2024 UTC (2 years ago) by kre
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +125 -20 lines
PR kern/57504 : Check all fds passed in to select

If an application passes in a huge fd_set (select(BIG, ...))
then check every bit in the fd_sets provided, to make sure
they are valid.

If BIG is too big (cannot possibly represent an open fd for
this process, under any circumstances: ie: not just because
that many are not currently open) return EINVAL.

Otherwise, check every set bit to make sure it is valid.  Any
fd bits set above the applications current highest open fd
automatically generate EBADF and quick(ish) exit.

fd's that are within the plausible range are then checked as
they always were (it is possible for there to be a few there
above the max open fd - as everything in select is done in
multiples of __FDBITS (fd_mask) but the max open fd is not so
constrained.  Those always were checked, continue using the
same mechanism.

This should have zero impact on any sane application which
uses the highest fd for which it set a bit, +1, as the first
arg to select.   However, if there are any broken applications
that were relying upon the previous behaviour of simply ignoring
any fd_masks that started beyond the max number of open files,
then they might (if they happen to have any bits set) now fail.

XXX pullup -10 -- but not for a long time.  Someone remind me
    sometime next year.  Leave a long settling time in HEAD just to
    be sure no issues arise, as in practice, almost nothing should
    cause any of the new code to be executed.

    pullup -9 -- probably not, what this fixes isn't significant
    enough to bother going that far back for (IMO).

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Oct 15 10:29:34 2023 UTC (3 years, 1 month ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base
Branch point for: perseant-exfatfs
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +16 -15 lines
sys_select.c: Sort includes.  No functional change intended.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Oct 15 10:27:11 2023 UTC (3 years, 1 month ago) by riastradh
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -2 lines
sys/lwp.h: Nix sys/syncobj.h dependency.

Remove it in ddb/db_syncobj.h too.

New sys/wchan.h defines wchan_t so that users need not pull in
sys/syncobj.h to get it.

Sprinkle #include <sys/syncobj.h> in .c files where it is now needed.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Oct 8 13:23:05 2023 UTC (3 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
Ensure that an LWP that has taken a legitimate wakeup never produces an
error code from sleepq_block().  Then, it's possible to make cv_signal()
work as expected and only ever wake a singular LWP.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Oct 4 20:29:18 2023 UTC (3 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +5 -4 lines
Eliminate l->l_biglocks.  Originally I think it had a use but these days a
local variable will do.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Sep 23 18:48:04 2023 UTC (3 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +5 -4 lines
- Simplify how priority boost for blocking in kernel is handled.  Rather
  than setting it up at each site where we block, make it a property of
  syncobj_t.  Then, do not hang onto the priority boost until userret(),
  drop it as soon as the LWP is out of the run queue and onto a CPU.
  Holding onto it longer is of questionable benefit.

- This allows two members of lwp_t to be deleted, and mi_userret() to be
  simplified a lot (next step: trim it down to a single conditional).

- While here, constify syncobj_t and de-inline a bunch of small functions
  like lwp_lock() which turn out not to be small after all (I don't know
  why, but atomic_*_relaxed() seem to provoke a compiler shitfit above and
  beyond what volatile does).

Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Jul 17 12:54:29 2023 UTC (3 years, 4 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -2 lines
kern: New struct syncobj::sobj_name member for diagnostics.

XXX potential kernel ABI change -- not sure any modules actually use
struct syncobj but it's hard to rule that out because sys/syncobj.h
leaks into sys/lwp.h

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Jun 29 22:27:01 2022 UTC (4 years, 4 months ago) by riastradh
Branches: MAIN
CVS tags: netbsd-10-base, 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3 lines
sleepq(9): Pass syncobj through to sleepq_block.

Previously the usage pattern was:

sleepq_enter(sq, l, lock);              // locks l
...
sleepq_enqueue(sq, ..., sobj, ...);     // assumes l locked, sets l_syncobj
... (*)
sleepq_block(...);			// unlocks l

As long as l remains locked from sleepq_enter to sleepq_block,
l_syncobj is stable, and sleepq_block uses it via ktrcsw to determine
whether the sleep is on a mutex in order to avoid creating ktrace
context-switch records (which involves allocation which is forbidden
in softint context, while taking and even sleeping for a mutex is
allowed).

However, in turnstile_block, the logic at (*) also involves
turnstile_lendpri, which sometimes unlocks and relocks l.  At that
point, another thread can swoop in and sleepq_remove l, which sets
l_syncobj to sched_syncobj.  If that happens, ktrcsw does what is
forbidden -- tries to allocate a ktrace record for the context
switch.

As an optimization, sleepq_block or turnstile_block could stop early
if it detects that l_syncobj doesn't match -- we've already been
requested to wake up at this point so there's no need to mi_switch.
(And then it would be unnecessary to pass the syncobj through
sleepq_block, because l_syncobj would remain stable.)  But I'll leave
that to another change.

Reported-by: syzbot+8b9d7b066c32dbcdc63b@syzkaller.appspotmail.com

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Apr 9 23:52:05 2022 UTC (4 years, 7 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +5 -6 lines
select(9): Use membar_acquire/release and atomic_store_release.

No store-before-load ordering here -- this was obviously always
intended to be load-before-load/store all along.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Feb 12 15:51:29 2022 UTC (4 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +7 -5 lines
Add inline functions to manipulate the klists that link up knotes
via kn_selnext:

- klist_init()
- klist_fini()
- klist_insert()
- klist_remove()

These provide some API insulation from the implementation details of these
lists (but not completely; see vn_knote_attach() and vn_knote_detach()).
Currently just a wrapper around SLIST(9).

This will make it significantly easier to switch kn_selnext linkage
to a different kind of list.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Fri Dec 10 20:36:04 2021 UTC (4 years, 11 months ago) by andvar
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +5 -5 lines
s/occured/occurred/ in comments, log messages and man pages.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed Sep 29 02:47:22 2021 UTC (5 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +7 -3 lines
- Change selremove_knote() from returning void to bool, and return
  true if the last knote was removed and there are no more knotes
  on the selinfo.
- Use this new return value in filt_sordetach(), filt_sowdetach(),
  filt_fifordetach(), and filt_fifowdetach() to know when to clear
  SB_KOTE without having to know select/kqueue implementation details.

Revision 1.54.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.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54: +24 -2 lines
Sync w/ HEAD.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri Dec 11 01:25:29 2020 UTC (5 years, 11 months ago) by thorpej
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.54: preferred, colored
Changes since revision 1.54: +24 -2 lines
Add sel{record,remove}_knote(), so hide some of the details surrounding
knote / kevent registration in the selinfo structure.

Revision 1.41.4.3: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:42 2020 UTC (6 years, 6 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.41.4.2: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.4.2: +1 -1 lines
Sync with HEAD

Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:10 2020 UTC (6 years, 6 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +3 -3 lines
Sync with HEAD

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Apr 19 20:35:29 2020 UTC (6 years, 6 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Branch point for: thorpej-futex
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3 lines
Set LW_SINTR earlier so it doesn't pose a problem for doing interruptable
waits with turnstiles (not currently done).

Revision 1.41.4.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:04 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.41.4.1: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.4.1: +77 -29 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Mar 26 19:46:42 2020 UTC (6 years, 7 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +10 -4 lines
Change sleepq_t from a TAILQ to a LIST and remove SOBJ_SLEEPQ_FIFO.  Only
select/poll used the FIFO method and that was for collisions which rarely
occur.  Shrinks sleep_t and condvar_t.

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 8 09:47:28 2020 UTC (6 years, 8 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +19 -6 lines
Pull up following revision(s) (requested by mlelstv in ticket #1515):

	sys/kern/sys_select.c: revision 1.42-1.45

PR/54158: Anthony Mallet: poll(2) does not allow polling all possible fds
(hardcoded limit to 1000 + #<open-fds>). Changed to limit by the max of
the resource limit of open descriptors and the above.

Remove the slop code. Suggested by mrg@

Use the max limit (aka maxfiles or the moral equivalent of OPEN_MAX) which
makes poll(2) align with the Posix documentation (which allows EINVAL if
nfds > OPEN_MAX). From: Anthony Mallet

Add slop of 1000 and explain why.

Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:21:03 2020 UTC (6 years, 8 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +4 -4 lines
Sync with head.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Feb 15 17:09:24 2020 UTC (6 years, 9 months ago) by ad
Branches: MAIN
CVS tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
- List all of the syncobjs in syncobj.h.
- Update a comment.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Feb 1 02:23:04 2020 UTC (6 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3 lines
Load struct filedesc::fd_dt with atomic_load_consume.

Exceptions: when fd_refcnt <= 1, or when holding fd_lock.

While here:

- Restore KASSERT(mutex_owned(&fdp->fd_lock)) in fd_unused.
  => This is used only in fd_close and fd_abort, where it holds.
- Move bounds check assertion in fd_putfile to where it matters.
- Store fd_dt with atomic_store_release.
- Move load of fd_dt under lock in knote_fdclose.
- Omit membar_consumer in fdesc_readdir.
  => atomic_load_consume serves the same purpose now.
  => Was needed only on alpha anyway.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Nov 22 20:04:03 2019 UTC (6 years, 11 months ago) by ad
Branches: MAIN
CVS tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -4 lines
Minor correction to previous.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Nov 21 21:42:30 2019 UTC (6 years, 11 months ago) by ad
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +59 -21 lines
Minor improvements to select/poll:

- Increase the maximum number of clusters from 32 to 64 for large systems.
  kcpuset_t could potentially be used here but that's an excursion I don't
  want to go on right now.  uint32_t -> uint64_t is very simple.

- In the case of a non-blocking select/poll, or where we won't block
  because there are events ready to report, stop registering interest in
  the back-end objects early.

- Change the wmesg for poll back to "poll".

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Sep 20 15:00:47 2019 UTC (7 years, 1 month ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +6 -2 lines
Validate usec ranges in sys___select50()

Later in the code selcommon() checks for proper timespec, check only
correct usec of timeval before type conversions.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue Aug 20 01:56:21 2019 UTC (7 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -5 lines
 Use unsigned to avoid undefined behavior. Found by kUBSan.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Jul 26 05:37:59 2019 UTC (7 years, 3 months ago) by msaitoh
Branches: MAIN
CVS tags: netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3 lines
 Set sc_mask correctly in selsysinit() to avoid undefined behavior.
Found by KUBSan.

Revision 1.41.4.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.41: preferred, colored
Changes since revision 1.41: +19 -6 lines
Sync with HEAD

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed May 8 00:55:18 2019 UTC (7 years, 6 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +8 -4 lines
Add slop of 1000 and explain why.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue May 7 20:10:21 2019 UTC (7 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +7 -3 lines
Use the max limit (aka maxfiles or the moral equivalent of OPEN_MAX) which
makes poll(2) align with the Posix documentation (which allows EINVAL if
nfds > OPEN_MAX). From: Anthony Mallet

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun May 5 20:45:08 2019 UTC (7 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +11 -7 lines
Remove the slop code. Suggested by mrg@

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat May 4 15:46:58 2019 UTC (7 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -3 lines
PR/54158: Anthony Mallet: poll(2) does not allow polling all possible fds
(hardcoded limit to 1000 + #<open-fds>). Changed to limit by the max of
the resource limit of open descriptors and the above.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Jan 30 07:52:23 2018 UTC (8 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-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, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -7 lines
Apply C99-style struct initialization to syncobj_t

Revision 1.36.12.3: 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.36.12.2: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.12.2: +4 -8 lines
update from HEAD

Revision 1.39.4.1: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:07 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +6 -10 lines
Sync with HEAD

Revision 1.40: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:13 2017 UTC (9 years, 5 months ago) by chs
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +6 -10 lines
remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.10.10.1: download - view: text, markup, annotated - select for diffs
Fri Apr 24 05:46:33 2015 UTC (11 years, 6 months ago) by msaitoh
Branches: netbsd-5-1
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +13 -5 lines
Pull up following revision(s) (requested by prlw1 in ticket #1957):

sys/kern/sys_select.c				patch

	Limit nfds arg to poll() to a large enough value that user programs
	cannot allocate indefinite sized blocks of kvm. If the limit is
	exceeded, then return EINVAL instead of silently truncating the list.
	Addresses PR/17507.
	[prlw1, ticket #1957]

Revision 1.10.14.1: download - view: text, markup, annotated - select for diffs
Fri Apr 24 05:46:09 2015 UTC (11 years, 6 months ago) by msaitoh
Branches: netbsd-5-2
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +13 -5 lines
Pull up following revision(s) (requested by prlw1 in ticket #1957):

sys/kern/sys_select.c				patch

	Limit nfds arg to poll() to a large enough value that user programs
	cannot allocate indefinite sized blocks of kvm. If the limit is
	exceeded, then return EINVAL instead of silently truncating the list.
	Addresses PR/17507.
	[prlw1, ticket #1957]

Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 24 05:45:48 2015 UTC (11 years, 6 months ago) by msaitoh
Branches: netbsd-5
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +13 -5 lines
Pull up following revision(s) (requested by prlw1 in ticket #1957):

sys/kern/sys_select.c				patch

	Limit nfds arg to poll() to a large enough value that user programs
	cannot allocate indefinite sized blocks of kvm. If the limit is
	exceeded, then return EINVAL instead of silently truncating the list.
	Addresses PR/17507.

Revision 1.36.12.2: 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.36.12.1: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.12.1: +4 -68 lines
Rebase to HEAD as of a few days ago.

Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:55:58 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +2 -60 lines
Rebase.

Revision 1.36.2.1: 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.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +5 -69 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.37.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.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +4 -68 lines
sync with head

Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Apr 25 15:52:45 2014 UTC (12 years, 6 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base, 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, 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, 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, netbsd-7, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: nick-nhusb
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -60 lines
Remove pollsock().  Since it took only a single socket, it was essentially
a complicated way to call soreceive() with a sb_timeo.  The only user
(netsmb) already did that anyway, so just had to delete the call to
pollsock().

Revision 1.38: 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: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -10 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.36.12.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:54 2013 UTC (13 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
resync with head

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Jan 26 19:38:17 2013 UTC (13 years, 9 months ago) by riastradh
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
Assert equality, not assignment, in selrecord.

Code inspection suggests that this fix is not likely to reveal any
latent problems.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Aug 29 00:39:16 2011 UTC (15 years, 2 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, 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, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, tls-maxphys
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +36 -16 lines
Add kern.direct_select sysctl.  Default to 0 for now.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Aug 9 06:36:51 2011 UTC (15 years, 3 months ago) by hannken
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +12 -5 lines
No need to lock the selcluster in selscan() if either
NO_DIRECT_SELECT is defined or all polls return an event.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Aug 6 11:04:25 2011 UTC (15 years, 3 months ago) by hannken
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +37 -17 lines
Fix the races of direct select()/poll():

- When sel_do_scan() restarts do a full initialization with selclear() so
  we start from an empty set without registered events.  Defer the
  evaluation of l_selret after selclear() and add the count of direct events
  to the count of events.

- For selscan()/pollscan() zero the output descriptors before we poll and
  for selscan() take the sc_lock before we change them.

- Change sel_setevents() to not count events already set.

Reviewed by: YAMAMOTO Takashi <yamt@netbsd.org>

Should fix PR #44763 (select/poll direct-set optimization seems racy)
       and PR #45187 (select(2) sometimes doesn't wakeup)

Revision 1.29.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.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +34 -29 lines
Sync with HEAD.

Revision 1.21.4.4: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:03 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.21.4.3: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.4.3: +4 -17 lines
sync with head

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat May 28 15:33:41 2011 UTC (15 years, 5 months ago) by christos
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -2 lines
If a signal did not fire, restore the original signal mask for pselect/pollts
using a signal mask. Tested by tron.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed May 18 14:48:04 2011 UTC (15 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -5 lines
No need to mask twice. The setup function does it.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed May 18 03:51:41 2011 UTC (15 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -17 lines
PR/43625: Mark Davies: Fix pselect(2) to honor the temporary mask. pselect(2)
(and pollts(2)) are similar to sigsuspend(2) in that they temporarily change
the process signal mask and wait for signal delivery. Factor out and share the
code that does this.

Revision 1.21.4.3: 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.21.4.2: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.2: +28 -10 lines
sync with head

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Mar 6 04:41:58 2011 UTC (15 years, 8 months ago) by rmind
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +30 -12 lines
In a case of direct select, set only masked events, do not wakeup LWP
if no polled/selected events were set; also, count the correct return
value for the select.

Revision 1.21.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:23 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.21.4.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.1: +140 -41 lines
sync with head

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Dec 18 01:36:19 2010 UTC (15 years, 11 months ago) by rmind
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -5 lines
- Fix a few possible locking issues in execve1() and exit1().  Add a note
  that scheduler locks are special in this regard - adaptive locks cannot
  be in the path due to turnstiles.  Randomly spotted/reported by uebayasi@.
- Remove unused lwp_relock() and replace lwp_lock_retry() by simplifying
  lwp_lock() and sleepq_enter() a little.
- Give alllwp its own cache-line and mark lwp_cache pointer as read-mostly.

OK ad@

Revision 1.21.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:22:29 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.21.2.2: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.2: +1 -1 lines
Sync with HEAD (-D20101022).

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Oct 15 05:39:19 2010 UTC (16 years, 1 month ago) by rmind
Branches: MAIN
CVS tags: uebayasi-xip-base4, uebayasi-xip-base3
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
Re-enable direct select.

Revision 1.21.2.2: 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.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.2.1: +137 -36 lines
Sync with HEAD.

Revision 1.5.2.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:42 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.5.2.4: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.4: +194 -80 lines
sync with head.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Jul 12 11:04:25 2010 UTC (16 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base2
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -3 lines
sel_setevents: fix error - match event-set, as intended.
Spotted by Enami Tsugutomo.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Jul 11 11:17:58 2010 UTC (16 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +6 -2 lines
Disable direct select for now, since it still brings problems.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jul 10 17:04:25 2010 UTC (16 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +5 -4 lines
sel_setevents: fix direct injecting of fd bit for select() case.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Jul 8 23:15:23 2010 UTC (16 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -3 lines
sel_do_scan: do not bother to assert for SEL_SCANNING state before blocking,
as it might also be SEL_BLOCKING due to spurious wake-ups.  That has no harm.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Jul 8 12:23:31 2010 UTC (16 years, 4 months ago) by rmind
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +135 -38 lines
Implement direct select/poll support, currently effective for socket and
pipe subsystems.  Avoids overhead of second selscan() on wake-up, and thus
improves performance on certain workloads (especially when polling on many
file-descriptors).  Also, clean-up sys/fd_set.h header and improve macros.

Welcome to 5.99.36!

Revision 1.21.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:58 2010 UTC (16 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +58 -45 lines
sync with head

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:44:12 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +58 -45 lines
Sync with HEAD.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Apr 25 15:55:24 2010 UTC (16 years, 6 months ago) by ad
Branches: MAIN
CVS tags: uebayasi-xip-base1
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +58 -45 lines
Make select/poll work with more than 32 CPUs.
No ABI change.

Revision 1.5.2.4: 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.5.2.3: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.3: +133 -188 lines
sync with head

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Dec 20 23:00:59 2009 UTC (16 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +17 -3 lines
Add comment about locking.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Dec 12 17:47:05 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +24 -21 lines
Bounding the 'nfds' arg to poll() at the current process limit for actual
open files is rather gross - the poll map isn't required to be dense.
Instead limit to a much larger value (1000 + dt_nfiles) so that user
programs cannot allocate indefinite sized blocks of kvm.
If the limit is exceeded, then return EINVAL instead of silently truncating
the list.
(The silent truncation in select isn't quite as bad - although even there
any high bits that are set ought to generate an EBADF response.)
Move the code that converts ERESTART and EWOULDBLOCK into common code.
Effectively fixes PR/17507 since the new limit is unlikely to be detected.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Nov 11 09:48:51 2009 UTC (17 years ago) by rmind
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +16 -20 lines
- selcommon/pollcommon: drop redundant l argument.
- Use cached curlwp->l_fd, instead of p->p_fd.
- Inline selscan/pollscan.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Nov 1 21:46:09 2009 UTC (17 years ago) by rmind
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -29 lines
- Move inittimeleft() and gettimeleft() to subr_time.c, where they belong.
- Move abstimeout2timo() there too and export.  Use it in lwp_park().

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Nov 1 21:14:21 2009 UTC (17 years ago) by rmind
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +92 -130 lines
Move common logic in selcommon() and pollcommon() into sel_do_scan().
Avoids code duplication.  XXX: pollsock() should be converted too, except
it's a bit ugly.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Oct 21 21:12:06 2009 UTC (17 years ago) by rmind
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -7 lines
Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.

Revision 1.12.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.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.1: +10 -8 lines
Sync with HEAD.

Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:31 2009 UTC (17 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.5.2.2: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.2: +10 -8 lines
sync with head

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun May 24 21:41:26 2009 UTC (17 years, 5 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +10 -8 lines
More changes to improve kern_descrip.c.

- Avoid atomics in more places.
- Remove the per-descriptor mutex, and just use filedesc_t::fd_lock.
  It was only being used to synchronize close, and in any case we needed
  to take fd_lock to free the descriptor slot.
- Optimize certain paths for the <NDFDFILE case.
- Sprinkle more comments and assertions.
- Cache more stuff in filedesc_t.
- Fix numerous minor bugs spotted along the way.
- Restructure how the open files array is maintained, for clarity and so
  that we can eliminate the membar_consumer() call in fd_getfile().  This is
  mostly syntactic sugar; the main functional change is that fd_nfiles now
  lives alongside the open file array.

Some measurements with libmicro:

- simple file syscalls are like close() are between 1 to 10% faster.
- some nice improvements, e.g. poll(1000) which is ~50% faster.

Revision 1.12.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.12: preferred, colored
Changes since revision 1.12: +79 -74 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.5.2.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.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +104 -97 lines
sync with head.

Revision 1.10.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.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.1: +79 -74 lines
Sync with HEAD.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Mar 29 19:21:19 2009 UTC (17 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +45 -51 lines
Move the internal poll/select related API's to use timespec instead
of timeval (rides the uvm bump).

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Mar 21 13:11:14 2009 UTC (17 years, 8 months ago) by ad
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +36 -25 lines
Allocate sleep queue locks with mutex_obj_alloc. Reduces memory usage
on !MP kernels, and reduces false sharing on MP ones.

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:39 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +19 -16 lines
Sync with HEAD.

Revision 1.3.4.5: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:20 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.3.4.4: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.4.4: +18 -15 lines
Sync with HEAD.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jan 11 02:45:52 2009 UTC (17 years, 10 months ago) by christos
Branches: MAIN
CVS tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +8 -5 lines
merge christos-time_t

Revision 1.3.2.4: download - view: text, markup, annotated - select for diffs
Sat Dec 27 23:14:24 2008 UTC (17 years, 10 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.3.2.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.3: +13 -13 lines
merge with head.

Revision 1.9.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:09 2008 UTC (17 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.9.4.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.4.1: +13 -13 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Nov 20 01:25:28 2008 UTC (18 years ago) by yamt
Branches: MAIN
CVS tags: haad-nbase2, haad-dm-base2, haad-dm-base, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +13 -13 lines
pollcommon: use a more appropriate type than char[].

Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Sat Nov 1 21:22:27 2008 UTC (18 years ago) by christos
Branches: christos-time_t
Diff to: previous 1.3.2.2: preferred, colored
Changes since revision 1.3.2.2: +28 -34 lines
Sync with head.

Revision 1.9.4.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.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
Sync with HEAD.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Oct 15 08:13:17 2008 UTC (18 years, 1 month ago) by ad
Branches: MAIN
CVS tags: netbsd-5-base, 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-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-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, 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-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5-2, netbsd-5-1, netbsd-5
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
- Rename cpu_lookup_byindex() to cpu_lookup(). The hardware ID isn't of
  interest to MI code. No functional change.
- Change /dev/cpu to operate on cpu index, not hardware ID. Now cpuctl
  shouldn't print confused output.

Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:51 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.7.2.2: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.2: +16 -17 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:03 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.4.2.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.2: +10 -6 lines
sync with head.

Revision 1.3.4.4: download - view: text, markup, annotated - select for diffs
Thu Jun 5 19:14:36 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.3.4.3: preferred, colored
Changes since revision 1.3.4.3: +8 -4 lines
Sync with HEAD.

Also fix build.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jun 4 13:02:41 2008 UTC (18 years, 5 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pf42-base4, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +10 -6 lines
Check the result of allocation in the cases where size is passed by user.

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:40 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.2.1: +8 -13 lines
sync with head

Revision 1.3.4.3: 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.3.4.2: preferred, colored
Changes since revision 1.3.4.2: +17 -27 lines
Sync with HEAD.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon May 26 12:08:39 2008 UTC (18 years, 5 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base3
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +8 -13 lines
Take the mutex pointer and waiters count out of sleepq_t: the values can
be or are maintained elsewhere. Now a sleepq_t is just a TAILQ_HEAD.

Revision 1.4.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.4: preferred, colored
Changes since revision 1.4: +12 -17 lines
sync with head.

Revision 1.5.2.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.5: preferred, colored
Changes since revision 1.5: +4 -9 lines
sync with head.

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Wed May 14 19:54:12 2008 UTC (18 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.1: +10 -10 lines
Per discussion with ad at n dot o, revert signal mask handling
changes.

The l_sigstk changes are most likely totally un-needed as SA will
never use a signal stack - we send an upcall (or will as other
diffs are brought in).

The l_sigmask changes were too controvertial. In all honesty, I
think it's probably best to revert them. The main reason they were
there is the fact that in an SA process, we don't mask signals per
kernel thread, we mask them per user thread. In the kernel, we want
them all to get turned into upcalls. Thus the normal state of
l_sigmask in an SA process is for it to always be empty.

While we are in the process of delivering a signal, we want to
temporarily mask a signal (so we don't recursively exhaust our
upcall stacks). However signal delivery is rare (important, but
rare), and delivering back-to-back signals is even rarer. So rather
than cause every user of a signal mask to be prepared for this very
rare case, we will just add a second check later in the signal
delivery code. Said change is not in this diff.

This also un-compensates all of our compatability code for dealing
with SA. SA is a NetBSD-specific thing, so there's no need for
Irix, Linux, Solaris, SVR4 and so on to cope with it.

As previously, everything other than kern_sa.c compiles in i386
GENERIC as of this checkin. I will switch to ALL soon for compile
testing.

Revision 1.7.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.7: preferred, colored
Changes since revision 1.7: +10 -10 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.7: download - view: text, markup, annotated - select for diffs
Wed Apr 30 12:45:21 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -2 lines
PR kern/38547 select/poll do not set l_kpriority

Among other things this could have made X11 seem sluggish.

Revision 1.6: 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
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Apr 24 18:39:24 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +10 -10 lines
Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Apr 17 14:02:24 2008 UTC (18 years, 7 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3 lines
s/selwakeup/selnotify/ in a comment.

Revision 1.3.4.2: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:05 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.3.4.1: preferred, colored
Changes since revision 1.3.4.1: +841 -0 lines
Sync with HEAD.

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 29 20:47:01 2008 UTC (18 years, 7 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.3.2.1: preferred, colored
Changes since revision 1.3.2.1: +844 -0 lines
Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.3.4.1
Sat Mar 29 14:08:35 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
FILE REMOVED
Changes since revision 1.3: +0 -841 lines
file sys_select.c was added on branch mjf-devfs2 on 2008-04-03 12:43:04 +0000

Revision 1.3.2.1
Sat Mar 29 14:08:35 2008 UTC (18 years, 7 months ago) by christos
Branches: christos-time_t
FILE REMOVED
Changes since revision 1.3: +0 -841 lines
file sys_select.c was added on branch christos-time_t on 2008-03-29 20:47:01 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Mar 29 14:08:35 2008 UTC (18 years, 7 months ago) by ad
Branches: MAIN
Branch point for: mjf-devfs2, christos-time_t
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4 lines
selwakeup: convert a while() loop into a do/while() since the first test
isn't needed.

Revision 1.2: 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
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -5 lines
Replace use of CACHE_LINE_SIZE in some obvious places.

Revision 1.1.2.2: 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.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +841 -0 lines
sync with head.

Revision 1.1.2.1
Sun Mar 23 14:02:49 2008 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.1: +0 -841 lines
file sys_select.c was added on branch yamt-lazymbuf on 2008-03-24 09:39:02 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 14:02:49 2008 UTC (18 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-lazymbuf
Split select/poll into their own file.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>