The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.147: download - view: text, markup, annotated - select for diffs
Sat Dec 7 02:31:14 2024 UTC (2 days, 16 hours ago) by riastradh
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +4 -4 lines
sys/kern/uipc_*.c: Fix leading whitespace issues.

Nix stray spaces before tab indentation.

Revision 1.146: download - view: text, markup, annotated - select for diffs
Fri Dec 6 18:44:00 2024 UTC (3 days ago) by riastradh
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +8 -7 lines
sys/kern/sys_socket.c, uipc_*.c: Sprinkle SET_ERROR dtrace probes.

PR kern/58378: Kernel error code origination lacks dtrace probes

Revision 1.145: download - view: text, markup, annotated - select for diffs
Fri Dec 6 18:36:47 2024 UTC (3 days ago) by riastradh
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +3 -3 lines
sys/kern/sys_socket.c, uipc_*.c: Nix trailing whitespace.

No functional change intended.

Revision 1.144: download - view: text, markup, annotated - select for diffs
Fri Dec 6 18:36:31 2024 UTC (3 days ago) by riastradh
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +12 -10 lines
sys/kern/sys_socket.c, uipc_*.c: Sort includes.

No functional change intended.

Revision 1.134.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 20 14:01:59 2024 UTC (2 weeks, 5 days ago) by martin
Branches: netbsd-9
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: +4 -4 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.143: download - view: text, markup, annotated - select for diffs
Wed Jan 3 18:10:42 2024 UTC (11 months ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +3 -3 lines
s/addreseses/addresses/ in comments (and one missing whitespace).

Revision 1.142: download - view: text, markup, annotated - select for diffs
Wed Oct 26 23:38:09 2022 UTC (2 years, 1 month ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, 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, netbsd-10
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +3 -3 lines
ddb/db_active.h: New home for extern db_active.

This can be included unconditionally, and db_active can then be
queried unconditionally; if DDB is not in the kernel, then db_active
is a constant zero.  Reduces need for #include opt_ddb.h, #ifdef DDB.

Revision 1.141: download - view: text, markup, annotated - select for diffs
Sat Apr 9 23:52:23 2022 UTC (2 years, 8 months ago) by riastradh
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +21 -8 lines
unix(4): Convert membar_exit to membar_release.

Use atomic_load_consume or atomic_load_relaxed where necessary.

Comment on why unlocked nonatomic access is valid where it is done.

Revision 1.134.2.2: download - view: text, markup, annotated - select for diffs
Sat Oct 2 11:07:55 2021 UTC (3 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE
Diff to: previous 1.134.2.1: preferred, colored; branchpoint 1.134: preferred, colored
Changes since revision 1.134.2.1: +21 -4 lines
Pull up following revision(s) (requested by thorpej in ticket #1350):

	sys/kern/uipc_socket2.c: revision 1.140
	tests/lib/libc/sys/t_poll.c: revision 1.5
	sys/miscfs/fifofs/fifo_vnops.c: revision 1.87

- fifo_poll(): If the last writer has disappeared, detect this and return
  POLLHUP, per POSIX.
- fifo_close(): Use the new fifo_socantrcvmore(), which is like the
  garden-variety socantrcvmore(), except it specifies POLL_HUP rather
  than POLL_IN (so the correct code for SIGIO is sent).
- sowakeup(): Allow POLL_HUP as a code (notifies poll'ers with POLLHUP).
- Add test cases for correct POLLHUP behavior with FIFOs.

Fixes PR kern/56429.

Revision 1.140: download - view: text, markup, annotated - select for diffs
Sat Oct 2 02:07:41 2021 UTC (3 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +21 -4 lines
- fifo_poll(): If the last writer has disappeared, detect this and return
  POLLHUP, per POSIX.
- fifo_close(): Use the new fifo_socantrcvmore(), which is like the
  garden-variety socantrcvmore(), except it specifies POLL_HUP rather
  than POLL_IN (so the correct code for SIGIO is sent).
- sowakeup(): Allow POLL_HUP as a code (notifies poll'ers with POLLHUP).
- Add test cases for correct POLLHUP behavior with FIFOs.

Fixes PR kern/56429.

Revision 1.138.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:29:00 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.138: preferred, colored; next MAIN 1.139: preferred, colored
Changes since revision 1.138: +3 -2 lines
Sync with HEAD.

Revision 1.139: download - view: text, markup, annotated - select for diffs
Thu Mar 4 01:35:31 2021 UTC (3 years, 9 months ago) by msaitoh
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.138: preferred, colored
Changes since revision 1.138: +3 -2 lines
Add missing opt_inet.h.

Revision 1.134.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 22 18:39:01 2020 UTC (4 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -2 lines
Pull up following revision(s) (requested by christos in ticket #1091):

	sys/kern/uipc_socket.c: revision 1.291
	sys/kern/uipc_usrreq.c: revision 1.199
	sys/kern/uipc_socket2.c: revision 1.138

add socket info for user and group for unix sockets in fstat.

Revision 1.138: download - view: text, markup, annotated - select for diffs
Wed Aug 26 22:54:30 2020 UTC (4 years, 3 months ago) by christos
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +3 -2 lines
add socket info for user and group for unix sockets in fstat.

Revision 1.137: download - view: text, markup, annotated - select for diffs
Sat May 23 23:42:43 2020 UTC (4 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +4 -4 lines
Move proc_lock into the data segment.  It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.

Revision 1.130.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:04 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.130.2.2: preferred, colored; branchpoint 1.130: preferred, colored; next MAIN 1.131: preferred, colored
Changes since revision 1.130.2.2: +4 -0 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.130.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:52 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.130.2.1: preferred, colored; branchpoint 1.130: preferred, colored
Changes since revision 1.130.2.1: +4 -4 lines
Merge changes from current as of 20200406

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

Revision 1.136: download - view: text, markup, annotated - select for diffs
Sat Feb 1 02:23:23 2020 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +3 -3 lines
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.)

Revision 1.135: download - view: text, markup, annotated - select for diffs
Sat Feb 1 02:23:04 2020 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +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.124.8.4: download - view: text, markup, annotated - select for diffs
Wed Aug 7 08:21:55 2019 UTC (5 years, 4 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE
Diff to: previous 1.124.8.3: preferred, colored; branchpoint 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124.8.3: +6 -2 lines
Pull up following revision(s) (requested by maxv in ticket #1330):

	sys/kern/uipc_socket2.c: revision 1.134

Fix info leaks: the alignment of the structures causes uninitialized heap
memory to be copied to userland in sys_recvmsg().

Revision 1.134: download - view: text, markup, annotated - select for diffs
Thu Jul 11 17:30:44 2019 UTC (5 years, 5 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20191119, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: netbsd-9, ad-namecache
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +6 -2 lines
Fix info leaks: the alignment of the structures causes uninitialized heap
memory to be copied to userland in sys_recvmsg().

Revision 1.130.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:04 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +202 -5 lines
Sync with HEAD

Revision 1.126.4.6: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:50 2018 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.126.4.5: preferred, colored; branchpoint 1.126: preferred, colored; next MAIN 1.127: preferred, colored
Changes since revision 1.126.4.5: +6 -4 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.133: download - view: text, markup, annotated - select for diffs
Sun Nov 4 16:30:29 2018 UTC (6 years, 1 month ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, isaki-audio2-base, isaki-audio2
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +6 -4 lines
- Introduce a new SO_RERROR socket option to explicitly turn on
  receive overflow errors re-instating the default behavior to
  silently ignore them as before 2018-03-19.
- Introduce a new kern.sooptions sysctl to control the default
  behavior of socket options. Setting this to 0x4000 (SO_RERROR),
  turns on receive overflow error reporting for all sockets.
- Change dhcpcd to turn on SO_RERROR on all its sockets.

As discussed in tech-net.

Revision 1.126.4.5: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:42 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.126.4.4: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.4.4: +3 -3 lines
Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.132: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:35 2018 UTC (6 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +3 -3 lines
Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.124.8.3: download - view: text, markup, annotated - select for diffs
Tue Jul 31 17:01:20 2018 UTC (6 years, 4 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.124.8.2: preferred, colored; branchpoint 1.124: preferred, colored
Changes since revision 1.124.8.2: +197 -2 lines
Pull up following revision(s) (requested by msaitoh in ticket #954):

	sys/sys/socketvar.h: revision 1.157
	share/man/man4/ddb.4: revision 1.180
	share/man/man4/ddb.4: revision 1.181
	sys/kern/uipc_socket2.c: revision 1.131
	sys/ddb/db_command.c: revision 1.154

Add "show socket" command written by Hiroki SUENAGA. It prints usage of
system's socket buffers.
Improve wording.

Revision 1.126.4.4: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:38:08 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.126.4.3: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.4.3: +197 -2 lines
Sync with HEAD

Revision 1.131: download - view: text, markup, annotated - select for diffs
Fri Jul 20 08:26:25 2018 UTC (6 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-0728
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +197 -2 lines
 Add "show socket" command written by Hiroki SUENAGA. It prints usage of
system's socket buffers.

Revision 1.126.4.3: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:26:04 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.126.4.2: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.4.2: +3 -3 lines
Sync with HEAD

Revision 1.124.8.2: download - view: text, markup, annotated - select for diffs
Sat Jun 9 15:16:30 2018 UTC (6 years, 6 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2
Diff to: previous 1.124.8.1: preferred, colored; branchpoint 1.124: preferred, colored
Changes since revision 1.124.8.1: +3 -3 lines
Pull up following revision(s) (requested by roy in ticket #868):

	sys/sys/socketvar.h: revision 1.156
	sys/kern/uipc_socket2.c: revision 1.130
	sys/kern/uipc_socket.c: revision 1.264

Separate receive socket errors from general socket errors.

Revision 1.130: download - view: text, markup, annotated - select for diffs
Wed Jun 6 09:46:46 2018 UTC (6 years, 6 months ago) by roy
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-0625
Branch point for: phil-wifi
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +3 -3 lines
Separate receive socket errors from general socket errors.

Revision 1.126.4.2: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:22 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.126.4.1: preferred, colored; branchpoint 1.126: preferred, colored
Changes since revision 1.126.4.1: +3 -3 lines
Synch with HEAD

Revision 1.129: download - view: text, markup, annotated - select for diffs
Sun Apr 29 07:13:10 2018 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-0521, pgoyette-compat-0502
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -3 lines
Remove references to m_copy in comments.

Revision 1.124.8.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 13:34:10 2018 UTC (6 years, 8 months ago) by bouyer
Branches: netbsd-8
CVS tags: netbsd-8-0-RC1
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +16 -2 lines
Pull up following revision(s) (requested by roy in ticket #724):
	tests/net/icmp/t_ping.c: revision 1.19
	sys/netinet6/raw_ip6.c: revision 1.166
	sys/netinet6/ip6_input.c: revision 1.195
	sys/net/raw_usrreq.c: revision 1.59
	sys/sys/socketvar.h: revision 1.151
	sys/kern/uipc_socket2.c: revision 1.128
	tests/lib/libc/sys/t_recvmmsg.c: revision 1.2
	lib/libc/sys/recv.2: revision 1.38
	sys/net/rtsock.c: revision 1.239
	sys/netinet/udp_usrreq.c: revision 1.246
	sys/netinet6/icmp6.c: revision 1.224
	tests/net/icmp/t_ping.c: revision 1.20
	sys/netipsec/keysock.c: revision 1.63
	sys/netinet/raw_ip.c: revision 1.172
	sys/kern/uipc_socket.c: revision 1.260
	tests/net/icmp/t_ping.c: revision 1.22
	sys/kern/uipc_socket.c: revision 1.261
	tests/net/icmp/t_ping.c: revision 1.23
	sys/netinet/ip_mroute.c: revision 1.155
	sbin/route/route.c: revision 1.159
	sys/netinet6/ip6_mroute.c: revision 1.123
	sys/netatalk/ddp_input.c: revision 1.31
	sys/netcan/can.c: revision 1.3
	sys/kern/uipc_usrreq.c: revision 1.184
	sys/netinet6/udp6_usrreq.c: revision 1.138
	tests/net/icmp/t_ping.c: revision 1.18
socket: report receive buffer overflows
Add soroverflow() which increments the overflow counter, sets so_error
to ENOBUFS and wakes the receive socket up.
Replace all code that manually increments this counter with soroverflow().
Add soroverflow() to raw_input().
This allows userland to detect route(4) overflows so it can re-sync
with the current state.
socket: clear error even when peeking
The error has already been reported and it's pointless requiring another
recv(2) call just to clear it.
socket: remove now incorrect comment that so_error is only udp
As it can be affected by route(4) sockets which are raw.
rtsock: log dropped messages that we cannot report to userland
Handle ENOBUFS when receiving messages.
Don't send messages if the receiver has died.
Sprinkle more soroverflow().
Handle ENOBUFS in recv
Handle ENOBUFS in sendto
Note value received. Harden another sendto for ENOBUFS.
Handle the routing socket overflowing gracefully.
Allow a valid sendto .... duh
Handle errors better.
Fix test for checking we sent all the data we asked to.

Revision 1.126.4.1: download - view: text, markup, annotated - select for diffs
Thu Mar 22 01:44:50 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +19 -5 lines
Synch with HEAD, resolve conflicts

Revision 1.128: download - view: text, markup, annotated - select for diffs
Mon Mar 19 16:26:26 2018 UTC (6 years, 8 months ago) by roy
Branches: MAIN
CVS tags: pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +16 -2 lines
socket: report receive buffer overflows

Add soroverflow() which increments the overflow counter, sets so_error
to ENOBUFS and wakes the receive socket up.
Replace all code that manually increments this counter with soroverflow().
Add soroverflow() to raw_input().

This allows userland to detect route(4) overflows so it can re-sync
with the current state.

Revision 1.127: download - view: text, markup, annotated - select for diffs
Sun Mar 18 15:32:48 2018 UTC (6 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +5 -5 lines
- Convert sb_lowat to unsigned for consistency. There are no negative value
  uses
- Check for overflow as mentioned in the comment
- Sprinkle const

Revision 1.110.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:45 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.110.6.1: preferred, colored; branchpoint 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110.6.1: +41 -12 lines
update from HEAD

Revision 1.126: download - view: text, markup, annotated - select for diffs
Thu Jul 6 17:42:39 2017 UTC (7 years, 5 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Branch point for: pgoyette-compat
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +2 -35 lines
move the timestamp stuff to uipc_socket.c because it already has the compat
includes.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Thu Jul 6 17:08:57 2017 UTC (7 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +35 -2 lines
Merge the two copies SO_TIMESTAMP/SO_OTIMESTAMP processing to a single
function, and add a SOOPT_TIMESTAMP define reducing compat pollution from
5 places to 1.

Revision 1.123.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:17 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.123: preferred, colored; next MAIN 1.124: preferred, colored
Changes since revision 1.123: +7 -9 lines
Sync with HEAD

Revision 1.121.2.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:56:03 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.121.2.2: preferred, colored; branchpoint 1.121: preferred, colored; next MAIN 1.122: preferred, colored
Changes since revision 1.121.2.2: +7 -9 lines
Sync with HEAD

Revision 1.124: download - view: text, markup, annotated - select for diffs
Sun Oct 2 19:26:46 2016 UTC (8 years, 2 months ago) by christos
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +7 -9 lines
more MFREE -> m_free

Revision 1.121.2.2: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:37 2016 UTC (8 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.121.2.1: preferred, colored; branchpoint 1.121: preferred, colored
Changes since revision 1.121.2.1: +33 -4 lines
Sync with HEAD

Revision 1.123: download - view: text, markup, annotated - select for diffs
Mon May 23 13:54:34 2016 UTC (8 years, 6 months ago) by tls
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +33 -4 lines
Fix a longstanding problem with accept filters noticed by Timo Buhrmester:
sockets sitting in the accept filter can consume the entire listen queue,
such that the application is never able to handle any connections.  Handle
this by simply passing through the oldest queued cxn when the queue is full.

This is fair because the longer a cxn lingers in the queue (stays connected
but does not meet the requirements of the filter for passage) the more likely
it is to be passed through, at which point the application can dispose of it.

Works because none of our accept filters actually allocate private state
per-cxn.  If they did, we'd have to fix the API bug that there is presently
no way to tell an accf to finish/deallocate for a single cxn (accf_destroy
kills off the entire filter instance for a given listen socket).

Revision 1.121.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:07 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +4 -2 lines
Sync with HEAD

Revision 1.122: download - view: text, markup, annotated - select for diffs
Mon Aug 24 22:21:26 2015 UTC (9 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +4 -2 lines
sprinkle _KERNEL_OPT

Revision 1.121: download - view: text, markup, annotated - select for diffs
Fri Sep 5 05:57:21 2014 UTC (10 years, 3 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +5 -5 lines
Don't next structure and enum definitions.
Don't use C++ keywords new, try, class, private, etc.

Revision 1.110.6.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:29 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +187 -134 lines
Rebase to HEAD as of a few days ago.

Revision 1.115.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:55:58 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.115: preferred, colored; next MAIN 1.116: preferred, colored
Changes since revision 1.115: +140 -102 lines
Rebase.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Thu Jul 31 03:39:35 2014 UTC (10 years, 4 months ago) by rtr
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-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
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +3 -3 lines
split PRU_DISCONNECT, PRU_SHUTDOWN and PRU_ABORT function out of
pr_generic() usrreq switches and put into separate functions

   xxx_disconnect(struct socket *)
   xxx_shutdown(struct socket *)
   xxx_abort(struct socket *)

   - always KASSERT(solocked(so)) even if not implemented
   - replace calls to pr_generic() with req =
PRU_{DISCONNECT,SHUTDOWN,ABORT}
     with calls to pr_{disconnect,shutdown,abort}() respectively

rename existing internal functions used to implement above functionality
to permit use of the names for xxx_{disconnect,shutdown,abort}().

   - {l2cap,sco,rfcomm}_disconnect() ->
{l2cap,sco,rfcomm}_disconnect_pcb()
   - {unp,rip,tcp}_disconnect() -> {unp,rip,tcp}_disconnect1()
   - unp_shutdown() -> unp_shutdown1()

patch reviewed by rmind

Revision 1.109.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:03 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.109.2.1: preferred, colored; branchpoint 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109.2.1: +55 -40 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.119: download - view: text, markup, annotated - select for diffs
Mon May 19 02:51:24 2014 UTC (10 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +20 -14 lines
- Split off PRU_ATTACH and PRU_DETACH logic into separate functions.
- Replace malloc with kmem and eliminate M_PCB while here.
- Sprinkle more asserts.

Revision 1.112.2.4: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:08 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.112.2.3: preferred, colored; branchpoint 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112.2.3: +30 -38 lines
sync with head

Revision 1.118: download - view: text, markup, annotated - select for diffs
Sun May 18 14:46:15 2014 UTC (10 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: rmind-smpnet-nbase, rmind-smpnet-base
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +4 -4 lines
Add struct pr_usrreqs with a pr_generic function and prepare for the
dismantling of pr_usrreq in the protocols; no functional change intended.
PRU_ATTACH/PRU_DETACH changes will follow soon.

Bump for struct protosw.  Welcome to 6.99.62!

Revision 1.117: download - view: text, markup, annotated - select for diffs
Sat May 17 23:55:24 2014 UTC (10 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +5 -6 lines
sonewconn: insert the socket into the queue *after* the protocol attach.
This potentially avoids unnecessary race conditions when handling partial
connections.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Sat May 17 22:52:36 2014 UTC (10 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +127 -94 lines
- sonewconn: improve the initialisation order and add some asserts.
- Add various comments describing primitive routines operating on sockets,
  clarify connection life-cycle and improve the description of socket queues.
- Sprinkle more asserts.

Revision 1.112.2.3: download - view: text, markup, annotated - select for diffs
Thu Oct 17 23:52:18 2013 UTC (11 years, 1 month ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.112.2.2: preferred, colored; branchpoint 1.112: preferred, colored
Changes since revision 1.112.2.2: +1 -1 lines
Eliminate some of the splsoftnet() calls, misc clean up.

Revision 1.115: download - view: text, markup, annotated - select for diffs
Tue Oct 8 19:58:25 2013 UTC (11 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +17 -17 lines
0 -> NULL
MGET -> m_get
No functional change.

Revision 1.112.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 23 00:57:53 2013 UTC (11 years, 2 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.112.2.1: preferred, colored; branchpoint 1.112: preferred, colored
Changes since revision 1.112.2.1: +50 -45 lines
- Add some initial locking to the IPv4 PCB.
- Rename inpcb_lookup_*() routines to be more accurate and add comments.
- Add some comments about connection life-cycle WRT socket layer.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Sun Sep 15 15:41:11 2013 UTC (11 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +4 -5 lines
Avoid unused variable warnings

Revision 1.113: download - view: text, markup, annotated - select for diffs
Thu Aug 29 17:49:21 2013 UTC (11 years, 3 months ago) by rmind
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +9 -11 lines
Remove SS_ISCONFIRMING, it is unused and TP4 will not come back.

Revision 1.112.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 15:21:48 2013 UTC (11 years, 3 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +82 -52 lines
Checkpoint work in progress:
- Initial split of the protocol user-request method into the following
  methods: pr_attach, pr_detach and pr_generic for old the pr_usrreq.
- Adjust socreate(9) and sonewconn(9) to call pr_attach without the
  socket lock held (as a preparation for the locking scheme adjustment).
- Adjust all pr_attach routines to assert that PCB is not set.
- Sprinkle various comments, document some routines and their locking.
- Remove M_PCB, replace with kmem(9).
- Fix few bugs spotted on the way.

Revision 1.112: download - view: text, markup, annotated - select for diffs
Fri Jun 28 01:23:38 2013 UTC (11 years, 5 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.111: preferred, colored
Changes since revision 1.111: +4 -3 lines
Make sbdrop panic more verbose

Revision 1.111: download - view: text, markup, annotated - select for diffs
Thu Jun 27 18:53:17 2013 UTC (11 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +29 -12 lines
Introduce a more general method of sbcreatecontrol, sbcreatecontrol1 that
can take flags (M_WAITOK), and allocate large messages if needed. It also
returns the allocated pointer instead of copying the data to the passed
pointer. Implement sbcreatecontrol() using that.

Revision 1.109.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:31 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +2 -3 lines
sync with head

Revision 1.109.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:34 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +2 -3 lines
merge to -current.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Tue Dec 20 23:56:28 2011 UTC (12 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, 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, khorben-n900, 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, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +2 -3 lines
- Eliminate so_nbio and turn it into a bit SS_NBIO in so_state.
- Introduce MSG_NBIO so that we can turn non blocking i/o on a per call basis
- Use MSG_NBIO to fix the XXX: multi-threaded issues on the fifo sockets.
- Don't set SO_CANTRCVMORE, if we were interrupted (perhaps do it for all
  errors?).

Revision 1.109: download - view: text, markup, annotated - select for diffs
Wed Aug 31 18:31:03 2011 UTC (13 years, 3 months ago) by plunky
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.108: preferred, colored
Changes since revision 1.108: +3 -3 lines
NULL does not need a cast

Revision 1.106.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:39 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.106: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106: +4 -5 lines
Sync with HEAD.

Revision 1.106.4.2: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:03 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.106.4.1: preferred, colored; branchpoint 1.106: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106.4.1: +0 -1 lines
sync with head

Revision 1.108: download - view: text, markup, annotated - select for diffs
Sun Apr 24 18:46:23 2011 UTC (13 years, 7 months ago) by rmind
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +2 -3 lines
- Replace few malloc(9) uses with kmem(9).
- Rename buf_malloc() to buf_alloc(), fix comments.
- Remove some unnecessary inclusions.

Revision 1.106.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:42:10 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +4 -4 lines
sync with head

Revision 1.107: download - view: text, markup, annotated - select for diffs
Sat Apr 9 23:03:59 2011 UTC (13 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +4 -4 lines
Preserve SB_ASYNC on the accepted socket. From: Dmitry Matveev
http://mail-index.netbsd.org/tech-net/2011/02/17/msg002457.html

Revision 1.91.2.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:20 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.91.2.4: preferred, colored; branchpoint 1.91: preferred, colored; next MAIN 1.92: preferred, colored
Changes since revision 1.91.2.4: +3 -7 lines
sync with head

Revision 1.106: download - view: text, markup, annotated - select for diffs
Wed Dec 30 22:12:12 2009 UTC (14 years, 11 months ago) by elad
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +2 -3 lines
Don't bother caching egid. It'll be removed soon.

Revision 1.105: download - view: text, markup, annotated - select for diffs
Wed Dec 30 18:33:53 2009 UTC (14 years, 11 months ago) by elad
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +3 -6 lines
Always use resource limits from the process, as proposed in

	http://mail-index.netbsd.org/tech-kern/2009/12/30/msg006756.html

okay christos@.

Revision 1.91.2.4: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:38:01 2009 UTC (15 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.91.2.3: preferred, colored; branchpoint 1.91: preferred, colored
Changes since revision 1.91.2.3: +5 -4 lines
sync with head

Revision 1.104: download - view: text, markup, annotated - select for diffs
Wed Sep 2 14:56:57 2009 UTC (15 years, 3 months ago) by tls
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, matt-premerge-20091211, jym-xensuspend-nbase
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +5 -4 lines
Add a direction argument to socket upcalls, so they can tell why they've
been called when, for example, they're waiting for space to write.  From
Ritesh Agrawal at Coyote Point.

Revision 1.91.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:48:17 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.91.2.2: preferred, colored; branchpoint 1.91: preferred, colored
Changes since revision 1.91.2.2: +5 -3 lines
sync with head.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Fri Jul 24 01:09:49 2009 UTC (15 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base7
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +5 -3 lines
check return code from soreserve() (Sean Boudreau)

Revision 1.101.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:58 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101: +4 -2 lines
Sync with HEAD.

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

Revision 1.91.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:49 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.91.2.1: preferred, colored; branchpoint 1.91: preferred, colored
Changes since revision 1.91.2.1: +73 -25 lines
sync with head.

Revision 1.100.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:01 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.100.2.1: preferred, colored; branchpoint 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100.2.1: +4 -2 lines
Sync with HEAD.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Thu Apr 9 00:43:38 2009 UTC (15 years, 8 months ago) by yamt
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +4 -2 lines
sonewconn: add an assertion.

Revision 1.100.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:32:57 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +10 -5 lines
Sync with HEAD.

Revision 1.100.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 2 21:04:45 2009 UTC (15 years, 10 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-RC3, netbsd-5-0-RC2, 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
Diff to: previous 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100: +10 -5 lines
Pull up following revision(s) (requested by yamt in ticket #393):
	sys/kern/uipc_socket.c: revision 1.185
	sys/kern/uipc_socket2.c: revision 1.101
	sys/kern/uipc_syscalls.c: revision 1.135
	sys/miscfs/portal/portal_vnops.c: revision 1.81
	sys/netsmb/smb_trantcp.c: revision 1.40
	sys/nfs/nfs_socket.c: revision 1.177
	sys/sys/socketvar.h: revision 1.118
restore the pre socket locking patch signal behaviour.
this fixes a busy-loop in nfs_connect.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Wed Jan 21 06:59:29 2009 UTC (15 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +10 -5 lines
restore the pre socket locking patch signal behaviour.
this fixes a busy-loop in nfs_connect.

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

Revision 1.96.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:09 2008 UTC (16 years ago) by haad
Branches: haad-dm
Diff to: previous 1.96.2.1: preferred, colored; branchpoint 1.96: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96.2.1: +6 -6 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.100: download - view: text, markup, annotated - select for diffs
Fri Oct 24 22:23:20 2008 UTC (16 years, 1 month ago) by dyoung
Branches: MAIN
CVS tags: netbsd-5-base, netbsd-5-0-RC1, mjf-devfs2-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +6 -6 lines
Change 'return (expr);' to 'return expr;'.  Change (type *)0 to
NULL.  No functional change intended.

Revision 1.96.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:29 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +24 -6 lines
Sync with HEAD.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Tue Oct 14 13:45:26 2008 UTC (16 years, 1 month ago) by ad
Branches: MAIN
CVS tags: haad-dm-base1
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +8 -10 lines
Accept filters:

- Remove remaining #ifdef INET.
- Avoid holding locks so we don't need to do KM_NOSLEEP allocations.
- Use a rwlock to protect the accept filter list.
- Make it safe to unload accept filter modules.
- Minor KNF.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Sat Oct 11 13:40:57 2008 UTC (16 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -2 lines
Move uidinfo to its own module in kern_uidinfo.c and include in rump.
No functional change to uidinfo.

Revision 1.89.6.4: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:54 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.89.6.3: preferred, colored; branchpoint 1.89: preferred, colored
Changes since revision 1.89.6.3: +23 -4 lines
Sync with HEAD.

Revision 1.92.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:31:44 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.92.2.1: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.2.1: +25 -6 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Mon Aug 4 03:55:47 2008 UTC (16 years, 4 months ago) by tls
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +25 -6 lines
Add accept filters, ported from FreeBSD by Coyote Point Systems.  Add inetd
support for specifying an accept filter for a service (mostly as a usage
example, but it can be handy for other things).  Manual pages to follow
in a day or so.

OK core@.

Revision 1.89.6.3: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:14 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.89.6.2: preferred, colored; branchpoint 1.89: preferred, colored
Changes since revision 1.89.6.2: +19 -0 lines
Sync with HEAD.

Revision 1.92.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:52 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +38 -15 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.94.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:35 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94: +21 -2 lines
Sync with head.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Wed Jun 18 09:06:27 2008 UTC (16 years, 5 months ago) by yamt
Branches: MAIN
CVS tags: wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +4 -2 lines
merge yamt-pf42 branch.
(import newer pf from OpenBSD 4.2)

ok'ed by peter@.  requested by core@

Revision 1.90.2.4: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:03 2008 UTC (16 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.90.2.3: preferred, colored; branchpoint 1.90: preferred, colored; next MAIN 1.91: preferred, colored
Changes since revision 1.90.2.3: +19 -2 lines
sync with head.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Tue Jun 10 11:49:11 2008 UTC (16 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +19 -2 lines
There can be existing waiters on a socket's condition variables when we
change socket::so_lock, and they rely on the old lock to synchronize.
Wake them up whenever we change so_lock so they can restart their waits.

Revision 1.90.2.3: download - view: text, markup, annotated - select for diffs
Fri Jun 6 20:18:19 2008 UTC (16 years, 6 months ago) by christos
Branches: yamt-pf42
Diff to: previous 1.90.2.2: preferred, colored; branchpoint 1.90: preferred, colored
Changes since revision 1.90.2.2: +4 -2 lines
add so_egid and so_cpid for pf.

Revision 1.90.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:40 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.90.2.1: preferred, colored; branchpoint 1.90: preferred, colored
Changes since revision 1.90.2.1: +19 -15 lines
sync with head

Revision 1.89.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:13 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.89.6.1: preferred, colored; branchpoint 1.89: preferred, colored
Changes since revision 1.89.6.1: +335 -73 lines
Sync with HEAD.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Mon May 26 17:21:18 2008 UTC (16 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +13 -6 lines
Use pool_cache for sockets.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Sat May 24 16:35:28 2008 UTC (16 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +8 -11 lines
Coverity CID 5025: sbreserve is never called with a null socket.

Revision 1.90.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:11 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +324 -66 lines
sync with head.

Revision 1.91.2.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:28 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +2 -9 lines
sync with head.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:05 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.91: download - view: text, markup, annotated - select for diffs
Thu Apr 24 11:38:36 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +331 -66 lines
Merge the socket locking patch:

- Socket layer becomes MP safe.
- Unix protocols become MP safe.
- Allows protocol processing interrupts to safely block on locks.
- Fixes a number of race conditions.

With much feedback from matt@ and plunky@.

Revision 1.89.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:05 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +11 -10 lines
Sync with HEAD.

Revision 1.89.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:14 2008 UTC (16 years, 8 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89: +11 -10 lines
sync with head.

Revision 1.85.4.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:01 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.85.4.1: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.4.1: +14 -13 lines
sync with HEAD

Revision 1.68.2.7: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:34 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.68.2.6: preferred, colored; branchpoint 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.2.6: +11 -10 lines
sync with head.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sat Mar 1 14:16:51 2008 UTC (16 years, 9 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +11 -10 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.86.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:48 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +5 -5 lines
Sync with HEAD.

Revision 1.68.2.6: download - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:58 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.68.2.5: preferred, colored; branchpoint 1.68: preferred, colored
Changes since revision 1.68.2.5: +3 -2 lines
sync with head.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Feb 7 12:14:43 2008 UTC (16 years, 10 months ago) by ad
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +3 -2 lines
sonewconn: inherit FNONBLOCK from the parent.

Revision 1.68.2.5: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:24:21 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.68.2.4: preferred, colored; branchpoint 1.68: preferred, colored
Changes since revision 1.68.2.4: +4 -5 lines
sync with head.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Tue Jan 29 12:39:39 2008 UTC (16 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -3 lines
sbreserve: curlwp can't be NULL these days.
XXX these code seems to need an overhaul.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Tue Jan 29 09:31:22 2008 UTC (16 years, 10 months ago) by yamt
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3 -4 lines
sbrelease: unwrap a short line.

Revision 1.85.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:32:42 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +6 -2 lines
sync with HEAD

Revision 1.68.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:35:39 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.68.2.3: preferred, colored; branchpoint 1.68: preferred, colored
Changes since revision 1.68.2.3: +6 -2 lines
sync with head.

Revision 1.82.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:44:32 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.82.2.2: preferred, colored; branchpoint 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82.2.2: +6 -2 lines
Sync with head.

Revision 1.85.6.1: download - view: text, markup, annotated - select for diffs
Sat Oct 6 15:28:47 2007 UTC (17 years, 2 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +6 -2 lines
sync with head.

Revision 1.85.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:29:07 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +6 -2 lines
Sync with HEAD.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Tue Sep 25 14:04:07 2007 UTC (17 years, 2 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, matt-armv6-base, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +6 -2 lines
Use selinit() / seldestroy().

Revision 1.68.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:41:19 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.68.2.2: preferred, colored; branchpoint 1.68: preferred, colored
Changes since revision 1.68.2.2: +21 -15 lines
sync with head.

Revision 1.82.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 20 21:27:41 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.82.2.1: preferred, colored; branchpoint 1.82: preferred, colored
Changes since revision 1.82.2.1: +4 -2 lines
Sync with HEAD.

Revision 1.84.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:49:19 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +4 -2 lines
Sync with HEAD.

Revision 1.85.8.2: download - view: text, markup, annotated - select for diffs
Thu Aug 2 02:42:41 2007 UTC (17 years, 4 months ago) by rmind
Branches: matt-mips64
Diff to: previous 1.85.8.1: preferred, colored; branchpoint 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85.8.1: +1139 -0 lines
TCP socket buffers automatic sizing - ported from FreeBSD.
http://mail-index.netbsd.org/tech-net/2007/02/04/0006.html

! Disabled by default, marked as experimental. Testers are very needed.
! Someone should thoroughly test this, and improve if possible.

Discussed on <tech-net>:
http://mail-index.netbsd.org/tech-net/2007/07/12/0002.html
Thanks Greg Troxel for comments.

OK by the long silence on <tech-net>.

Revision 1.85.8.1
Thu Aug 2 02:42:40 2007 UTC (17 years, 4 months ago) by rmind
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.85: +0 -1139 lines
file uipc_socket2.c was added on branch matt-mips64 on 2007-08-02 02:42:41 +0000

Revision 1.85: download - view: text, markup, annotated - select for diffs
Thu Aug 2 02:42:40 2007 UTC (17 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -2 lines
TCP socket buffers automatic sizing - ported from FreeBSD.
http://mail-index.netbsd.org/tech-net/2007/02/04/0006.html

! Disabled by default, marked as experimental. Testers are very needed.
! Someone should thoroughly test this, and improve if possible.

Discussed on <tech-net>:
http://mail-index.netbsd.org/tech-net/2007/07/12/0002.html
Thanks Greg Troxel for comments.

OK by the long silence on <tech-net>.

Revision 1.82.2.1: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:27:46 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +6 -2 lines
Sync with head.

Revision 1.82.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:10:19 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.82: preferred, colored; next MAIN 1.83: preferred, colored
Changes since revision 1.82: +6 -2 lines
Sync with head.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Jul 4 07:17:11 2007 UTC (17 years, 5 months ago) by tls
Branches: MAIN
CVS tags: nick-csl-alignment-base, mjf-ufs-trans-base, hpcarm-cleanup
Branch point for: nick-csl-alignment
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -2 lines
After looking at FreeBSD 6 again -- we were also failing to copy the
send and receive timeouts.  Fix this.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed Jul 4 07:13:13 2007 UTC (17 years, 5 months ago) by tls
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +4 -2 lines
Copy SNDLOWAT and RCVLOWAT socket options to accepted socket, so applications
can rely on all socket options being propagated from the listen socket as
the manual page says (and as everything but Linux has always done).  FreeBSD 6
fixes this the same way, but this bug appears elsewhere and is...Old.

Revision 1.81.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:58:45 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +15 -15 lines
Sync with HEAD.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:03:11 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +15 -15 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.68.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:07 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.68.2.1: preferred, colored; branchpoint 1.68: preferred, colored
Changes since revision 1.68.2.1: +21 -11 lines
sync with head.

Revision 1.77.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:46 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.77.4.1: preferred, colored; branchpoint 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77.4.1: +3 -3 lines
sync with head.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Wed Nov 1 10:17:59 2006 UTC (18 years, 1 month 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, post-newlock2-merge, 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, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3 lines
remove some __unused from function parameters.

Revision 1.77.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:11 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -3 lines
sync with head

Revision 1.80: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:19 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -3 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue Oct 3 11:15:04 2006 UTC (18 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +2 -4 lines
Back out socket credentials for now, until we figure a better way of
handling the reference counting from interrupt context.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Oct 2 00:02:04 2006 UTC (18 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +4 -2 lines
Add credentials to sockets, 'so_cred'.

Brought up on tech-kern@ some ~2 months ago, didn't seem to be an
objection; brought up again recently and no objection either... this is
not too intrusive and I've been running with this for a while.

Revision 1.70.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:57:17 2006 UTC (18 years, 3 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: +22 -11 lines
sync with head

Revision 1.70.8.4: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:25:22 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.70.8.3: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.8.3: +4 -7 lines
sync with head.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Aug 16 18:31:54 2006 UTC (18 years, 3 months ago) by plunky
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base, newlock2
Branch point for: yamt-splraiseipl
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -3 lines
Fix broken comments - there is no SO_ISCONNECTED or SO_ISCONFIRMING

this fixes kern/32058

Revision 1.76: download - view: text, markup, annotated - select for diffs
Wed Aug 16 18:17:23 2006 UTC (18 years, 3 months ago) by plunky
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -6 lines
Remove macro call sonewconn() => sonewconn1() as it is no longer necessary.
There are no such calls and the compiler would catch mistakes like this
in any case.

Revision 1.70.8.3: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:45:47 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.70.8.2: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.8.2: +19 -6 lines
sync with head

Revision 1.75: download - view: text, markup, annotated - select for diffs
Sun Jul 23 22:06:11 2006 UTC (18 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +5 -5 lines
Use the LWP cached credentials where sane.

Revision 1.71.4.1: download - view: text, markup, annotated - select for diffs
Thu Jul 13 17:49:51 2006 UTC (18 years, 5 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +16 -3 lines
Merge from HEAD.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Jul 3 02:34:39 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +16 -3 lines
Make sure we have at least PIPE_BUF bytes available in the socket send buffer.
Review and comment by yamt.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sat Jul 1 15:38:28 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -3 lines
Revert previous change to bump the socket low watermark to sock_loan_thresh.
With sock_loan_thresh=4096, sb_lowat==sb_hiwat, and sowritable will never
be true (even if only a single byte is pending). Some programs (like screen)
expect select() to return that a socket is writable on a socket when there
is space to write to it. XXX: What is the right thing to do here?

Revision 1.70.8.2: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:52:57 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.70.8.1: preferred, colored; branchpoint 1.70: preferred, colored
Changes since revision 1.70.8.1: +3 -3 lines
sync with head.

Revision 1.68.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:09:39 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +7 -6 lines
sync with head.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Jun 21 12:55:12 2006 UTC (18 years, 5 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pdpolicy-base6
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +1 -1 lines
bump default so_snd.sb_lowat to increase chance to use loaning.

the idea to tweak the watermark from Jonathan Stone.
reviewed by Bill Studenmund.

Revision 1.70.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:38:10 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +4 -3 lines
Sync with head.

Revision 1.70.12.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:41 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70: +4 -3 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.70.8.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:42 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -3 lines
sync with head.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun May 14 21:15:12 2006 UTC (18 years, 7 months ago) by elad
Branches: MAIN
CVS tags: yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: gdamore-uart
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -3 lines
integrate kauth.

Revision 1.70.10.2: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:31 2006 UTC (18 years, 7 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.70.10.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.10.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.10.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 00:53:41 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -3 lines
Adapt to kernel authorization KPI.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sat Dec 24 19:12:23 2005 UTC (18 years, 11 months ago) by perry
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3 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 (19 years ago) by christos
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3 lines
merge ktrace-lwp.

Revision 1.53.2.6: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:09:45 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.53.2.5: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.2.5: +11 -11 lines
Sync with HEAD. Here we go again...

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun May 29 22:24:15 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -4 lines
- add const.
- remove unnecessary casts.
- add __UNCONST casts and mark them with XXXUNCONST as necessary.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat May 7 17:42:09 2005 UTC (19 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +9 -9 lines
PR/30154: YAMAMOTO Takashi: tcp_close locking botch
chgsbsize() as mentioned in the PR can be called from an interrupt context
via tcp_close(). Avoid calling uid_find() in chgsbsize().
- Instead of storing so_uid in struct socketvar, store *so_uidinfo
- Add a simple lock to struct uidinfo.

Revision 1.65.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:24 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +9 -9 lines
sync with -current

Revision 1.65.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:12 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +9 -9 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.53.2.5: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:52:02 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.53.2.4: preferred, colored
Changes since revision 1.53.2.4: +9 -9 lines
Sync with HEAD.

Hi Perry!

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Feb 26 21:34:55 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, 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, netbsd-3, kent-audio2-base
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +9 -9 lines
nuke trailing whitespace

Revision 1.53.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:35:17 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.53.2.3: preferred, colored
Changes since revision 1.53.2.3: +3 -3 lines
Fix the sync with head I botched.

Revision 1.53.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:53:04 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.53.2.2: preferred, colored
Changes since revision 1.53.2.2: +3 -3 lines
Sync with HEAD.

Revision 1.53.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:52:57 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.53.2.1: preferred, colored
Changes since revision 1.53.2.1: +202 -30 lines
Sync with HEAD

Revision 1.58.2.3: download - view: text, markup, annotated - select for diffs
Wed Jul 14 11:07:12 2004 UTC (20 years, 5 months ago) by tron
Branches: netbsd-2-0
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, 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, netbsd-2
Diff to: previous 1.58.2.2: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.2.2: +5 -5 lines
Pull up revision 1.65 (requested by jonathan in ticket #648):
Rename MBUFTRACE helper function m_claim() to m_claimm(),
for consistency with M_FREE() and m_freem().  Affected files:
sys/mbuf.h
kern/uipc_socket2.c
kern/uipc_mbuf.c
net/if_ethersubr.c
netatalk/ddp_input.c
nfs/nfs_socket.c

Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Jun 24 04:15:50 2004 UTC (20 years, 5 months ago) by jonathan
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.64: preferred, colored
Changes since revision 1.64: +7 -7 lines
Rename MBUFTRACE helper function m_claim() to m_claimm(),
for consistency with M_FREE() and m_freem().  Affected files:

sys/mbuf.h
kern/uipc_socket2.c
kern/uipc_mbuf.c
net/if_ethersubr.c
netatalk/ddp_input.c
nfs/nfs_socket.c

Revision 1.58.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 16 18:10:32 2004 UTC (20 years, 5 months ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.58.2.1: preferred, colored; branchpoint 1.58: preferred, colored
Changes since revision 1.58.2.1: +44 -11 lines
Pull up revision 1.64 (requested by jonathan in ticket #503):
Fix potential memory leak in sbappendaddrchain():
We do an MGETHDR)() for each mbuf "packet" of the input chain, to hold
the socket address prepended to that "packet".  If those MGETHDR()s
ever failed, we would leak all the successfully-allocated mbuf
headers.  Leak noted by Yamamoto-san (yamt@NetBSD.org); thanks for catching it!
Add socketbuf invariant-checking macros to sbappendaddrchain(), and
replace a stray bcopy() with memcpy(), also as suggested by Yamamoto-san.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Fri Jun 11 03:46:01 2004 UTC (20 years, 6 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +46 -13 lines
Fix potential memory leak in sbappendaddrchain():

We do an MGETHDR)() for each mbuf "packet" of the input chain, to hold
the socket address prepended to that "packet".  If those MGETHDR()s
ever failed, we would leak all the successfully-allocated mbuf
headers.  Leak noted by Yamamoto-san (yamt@NetBSD.org); thanks for catching it!

Add socketbuf invariant-checking macros to sbappendaddrchain(), and
replace a stray bcopy() with memcpy(), also as suggested by Yamamoto-san.

Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 07:02:16 2004 UTC (20 years, 6 months ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +110 -4 lines
Pull up revision 1.63 (requested by jonathan in ticket #405):
Rework to make  FAST_IPSEC PF_KEY dumps unicast and reliable:
Introduce new socket-layer function sbappendaddrchain() to
sys/kern/uipc_socket2.c: like sbappendaddr(), only takes a chain of
records and appends the entire chain in one pass. sbappendaddrchain()
also takes an `sbprio' argument, which indicates the caller requires
special `reliable' handling of the socket-buffer.  `sbprio' is
described in sys/sys/socketvar.h, although (for now) the different
levels are not yet implemented.
Rework sys/netipsec/key.c PF_KEY DUMP responses to build a chain of
mbuf records, one record per dump response. Unicast the entire chain
to the requestor, with all-or-none semantics.
Changed files;
 	sys/socketvar.h kern/uipc_socket2.c netipsec/key.c
Reviewed by:
	Jason Thorpe, Thor Lancelot Simon, post to tech-kern.
Todo: request pullup to 2.0 branch.  Post-2.0, rework sysctl() API for
dumps to use new record-chain constructors. Actually implement
the distinct service levels in sbappendaddrchain() so we can use them
to make PF_KEY ACQUIRE messages more reliable.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu May 27 19:19:00 2004 UTC (20 years, 6 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +110 -4 lines
Rework to make  FAST_IPSEC PF_KEY dumps unicast and reliable:

Introduce new socket-layer function sbappendaddrchain() to
sys/kern/uipc_socket2.c: like sbappendaddr(), only takes a chain of
records and appends the entire chain in one pass. sbappendaddrchain()
also takes an `sbprio' argument, which indicates the caller requires
special `reliable' handling of the socket-buffer.  `sbprio' is
described in sys/sys/socketvar.h, although (for now) the different
levels are not yet implemented.

Rework sys/netipsec/key.c PF_KEY DUMP responses to build a chain of
mbuf records, one record per dump response. Unicast the entire chain
to the requestor, with all-or-none semantics.

Changed files;
 	sys/socketvar.h kern/uipc_socket2.c netipsec/key.c
Reviewed by:
	Jason Thorpe, Thor Lancelot Simon, post to tech-kern.

Todo: request pullup to 2.0 branch.  Post-2.0, rework sysctl() API for
dumps to use new record-chain constructors. Actually implement
the distinct service levels in sbappendaddrchain() so we can use them
to make PF_KEY ACQUIRE messages more reliable.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Apr 19 03:44:46 2004 UTC (20 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +10 -5 lines
Charge root for socket buffers without a socket pointer.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Apr 18 21:47:11 2004 UTC (20 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -3 lines
Constify the addr parameter to sbappenaddr.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Apr 18 16:38:42 2004 UTC (20 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +11 -9 lines
sbreserve can be called with a NULL socket, deal with it.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Apr 17 15:15:29 2004 UTC (20 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +18 -9 lines
PR/9347: Eric E. Fair: socket buffer pool exhaustion leads to system deadlock
and unkillable processes.
1. Introduce new SBSIZE resource limit from FreeBSD to limit socket buffer
   size resource.
2. make sokvareserve interruptible, so processes ltsleeping on it can be
   killed.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Oct 21 22:55:47 2003 UTC (21 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +24 -4 lines
Cache the "adjusted" value of sb_max when sb_max is changed, in order
to avoid doing quad math in sbreserve().

Change suggested by Simon Burge, and code inspired by a similar change
in FreeBSD.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Sep 22 12:59:59 2003 UTC (21 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +7 -14 lines
- pass signo to fownsignal [ok by jd]
- make urg signal handling use fownsignal
- remove out of band detection in sowakeup

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Sep 21 19:17:11 2003 UTC (21 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +8 -16 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.55: download - view: text, markup, annotated - select for diffs
Sat Sep 6 22:03:10 2003 UTC (21 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +21 -5 lines
SA_SIGINFO changes.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:31:59 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:45 2003 UTC (21 years, 5 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3 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.53: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:31:31 2003 UTC (21 years, 5 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +1 -1 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:58 2003 UTC (21 years, 5 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 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.51: download - view: text, markup, annotated - select for diffs
Mon Jun 23 11:02:07 2003 UTC (21 years, 5 months ago) by martin
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -2 lines
Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Apr 17 13:12:39 2003 UTC (21 years, 7 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +9 -4 lines
A bit of an ugly workaround to avoid a warning for a larger MSIZE.
Shouldn't make a difference in the generated code.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Feb 26 06:31:11 2003 UTC (21 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +31 -6 lines
Add MBUFTRACE kernel option.
Do a little mbuf rework while here.  Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *).  These are not performance critical and making them
call m_get saves considerable space.  Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.

Revision 1.37.2.7: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:14:09 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.37.2.6: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.2.6: +1 -1 lines
Catch up to -current

Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Oct 23 09:14:29 2002 UTC (22 years, 1 month ago) by jdolecek
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3 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.37.2.6: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:44:56 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37.2.5: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.5: +1 -1 lines
Catch up to -current.

Revision 1.39.2.7: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:43:19 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.39.2.6: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.2.6: +3 -3 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Sep 27 15:37:47 2002 UTC (22 years, 2 months ago) by provos
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3 lines
remove trailing \n in panic().  approved perry.

Revision 1.39.2.6: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:48:17 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.39.2.5: preferred, colored
Changes since revision 1.39.2.5: +158 -34 lines
sync kqueue branch with HEAD

Revision 1.42.8.2: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:23:15 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.42.8.1: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.8.1: +4 -2 lines
catch up with -current.

Revision 1.37.2.5: download - view: text, markup, annotated - select for diffs
Tue Aug 27 23:47:36 2002 UTC (22 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37.2.4: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.4: +2 -0 lines
Catch up to -current.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Aug 22 20:56:48 2002 UTC (22 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -2 lines
In sbcompress(), if we toss an empty mbuf, make sure to update
sb_lastrecord if necessary.

From Daniel Hartmeier <daniel@benzedrine.cx>.

Revision 1.37.2.4: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:46:27 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37.2.3: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.3: +155 -33 lines
Catch up to -current.

Revision 1.42.8.1: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:36:41 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +156 -34 lines
catch up with -current.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Jul 3 21:39:41 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -4 lines
Rename SB_UPDATE_TAIL() to SB_EMPTY_FIXUP(), per suggestion from
Jonathan Stone.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Jul 3 21:36:58 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -3 lines
Rename sbappend_stream() to sbappendstream(), per suggestion from
Jonathan Stone.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Jul 3 19:06:49 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +156 -34 lines
Make insertion of data into socket buffers O(C):
* Keep pointers to the first and last mbufs of the last record in the
  socket buffer.
* Use the sb_lastrecord pointer in the sbappend*() family of functions
  to avoid traversing the packet chain to find the last record.
* Add a new sbappend_stream() function for stream protocols which
  guarantee that there will never be more than one record in the
  socket buffer.  This function uses the sb_mbtail pointer to perform
  the data insertion.  Make TCP use sbappend_stream().

On a profiling run, this makes sbappend of a TCP transmission using
a 1M socket buffer go from 50% of the time to .02% of the time.

Thanks to Bill Sommerfeld and YAMAMOTO Takashi for their debugging
assistance!

Revision 1.39.2.5: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:00:15 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.39.2.4: preferred, colored
Changes since revision 1.39.2.4: +4 -1 lines
Sync kqueue branch with -current.

Revision 1.37.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:16:47 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37.2.2: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.2: +4 -1 lines
Catch up to -current.

Revision 1.41.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:18:59 2001 UTC (23 years, 1 month ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +4 -1 lines
Sync the thorpej-mips-cache branch with -current.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Nov 12 15:25:33 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
CVS tags: thorpej-mips-cache-base, newlock-base, newlock, 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, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -1 lines
add RCSIDs

Revision 1.39.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 8 02:33:51 2001 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.39.2.3: preferred, colored
Changes since revision 1.39.2.3: +2 -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.39.2.3: download - view: text, markup, annotated - select for diffs
Sat Aug 25 06:16:48 2001 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.39.2.2: preferred, colored
Changes since revision 1.39.2.2: +5 -4 lines
Merge Aug 24 -current into the kqueue branch.

Revision 1.37.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:11:42 2001 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37.2.1: preferred, colored; branchpoint 1.37: preferred, colored
Changes since revision 1.37.2.1: +10 -11 lines
Catch up with -current.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Aug 5 08:25:39 2001 UTC (23 years, 4 months ago) by enami
Branches: MAIN
CVS tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -4 lines
Give different names for different wait channels.

# and minor knf fix while I'm here.

Revision 1.39.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:13:44 2001 UTC (23 years, 4 months ago) by lukem
Branches: kqueue
Diff to: previous 1.39.2.1: preferred, colored
Changes since revision 1.39.2.1: +6 -8 lines
update to -current

Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Jul 27 19:27:49 2001 UTC (23 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +6 -8 lines
Now that M_TRAILINGSPACE() checks buffer writeability properly,
we can greatly simplify sbcompress().  Slightly modified from
a similar change in FreeBSD.

Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 10 13:52:11 2001 UTC (23 years, 5 months ago) by lukem
Branches: kqueue
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -1 lines
add calls to KNOTE(9) as appropriate

Revision 1.37.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:07:08 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +5 -4 lines
Catch up to -current.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sat Jun 16 21:29:32 2001 UTC (23 years, 5 months ago) by manu
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3 lines
Use SB_ASYNC in struct sockbuf sb_flags field instead of SS_ASYNC in
struct socket so_state field to decide if we need to send asynchronous
notifications. This makes possible to request notification on write but
not on read, and vice versa.

This is used in Linux emulation code, because when async I/O is requested,
Linux does not send SIGIO to write end of sockets, and it never send any
SIGIO to any end of pipes. Il Linux emulation code, we then set SB_ASYNC
only on the read end of sockets, and on no end for pipes.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Apr 30 03:32:56 2001 UTC (23 years, 7 months ago) by kml
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -2 lines
Large values of sb_max would cause an overflow in sbreserve();  cast to
u_quad_t to avoid this.  (from FreeBSD uipc_socket2.c v1.19)

Revision 1.33.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 12 13:31:38 2001 UTC (23 years, 9 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.33.2.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.2.1: +64 -97 lines
Sync with HEAD.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Feb 27 05:19:15 2001 UTC (23 years, 9 months ago) by lukem
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +64 -97 lines
convert to ANSI KNF

Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:09:14 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +44 -45 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Mar 30 09:27:14 2000 UTC (24 years, 8 months ago) by augustss
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +40 -40 lines
Get rid of register declarations.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Feb 29 19:14:59 2000 UTC (24 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +5 -6 lines
more fix to ancillary data alignment.  we need padding after
last cmsg_data item (see the figure on RFC2292 page 18).

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Feb 18 05:19:23 2000 UTC (24 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -4 lines
fix alignment problem in ancillary messages (alpha).

the change constitutes binary compatibility issue hen sizeof(long) !=4.
there's no way to be backward compatible, and only guys affected
are IPv6 userland tools.

From: =?iso-8859-1?Q?G=F6ran_Bengtson?= <goeran@cdg.chalmers.se>

Revision 1.28.6.2: download - view: text, markup, annotated - select for diffs
Tue Nov 30 13:34:49 1999 UTC (25 years ago) by itojun
Branches: kame
CVS tags: kame_141_19991130
Diff to: previous 1.28.6.1: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.6.1: +0 -0 lines
bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Wed Sep 22 03:19:44 1999 UTC (25 years, 2 months ago) by cgd
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +7 -4 lines
pull up revs 1.31-1.33 from trunk (requested by cgd):
  Compact mbuf clusters, to help prevent mbuf cluster exhaustion when
  receiving lots of small packets.  This costs some performance (the
  compaction copies data), but adds a lot of stability to many systems.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Aug 4 22:33:20 1999 UTC (25 years, 4 months ago) by mycroft
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: thorpej_scsipi
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3 lines
The old compaction test had an off-by-one error that caused it to not compact
in some cases where it could have.  Fix this, and the new version as well.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Aug 4 21:40:39 1999 UTC (25 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -1 lines
Don't compress mbuf clusters which are referenced by multiple
mbufs since you might overwriting valuable data.  (think of
m_copy'ed data from a TCP re-transmission queue.  Since those
might be in clusters and referenced in two sockets).

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Aug 4 21:30:12 1999 UTC (25 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +6 -4 lines
It's now possible for sbcompress() to compact mbuf clusters, so do it.
This helps prevent mbuf cluster exhaustion when receiving lots of small
packets.

Revision 1.28.4.2: download - view: text, markup, annotated - select for diffs
Thu Jul 1 23:43:21 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.28.4.1: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.4.1: +13 -1 lines
Sync w/ -current.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Jul 1 08:12:47 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +13 -1 lines
IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628.
(Sorry for a big commit, I can't separate this into several pieces...)
Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.

- sys/kern: do not assume single mbuf, accept chained mbuf on passing
  data from userland to kernel (or other way round).
- "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ
  package (ftp://ftp.csl.sony.co.jp/pub/kjc/).
- sys/netinet/tcp*: IPv4/v6 dual stack tcp support.
- sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those
  file to be there so we patch it up.
- sys/netinet: IPsec additions are here and there.
- sys/netinet6/*: most of IPv6 code sits here.
- sys/netkey: IPsec key management code
- dev/pci/pcidevs: regen

In my understanding no code here is subject to export control so it
should be safe.

Revision 1.28.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 28 06:36:53 1999 UTC (25 years, 5 months ago) by itojun
Branches: kame
CVS tags: kame_14_19990705, kame_14_19990628
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +13 -1 lines
KAME/NetBSD 1.4 SNAP kit, dated 19990628.

NOTE: this branch (kame) is used just for refernce.  this may not compile
due to multiple reasons.

Revision 1.28.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:24:05 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -3 lines
Sync w/ -current.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Thu Apr 22 04:50:06 1999 UTC (25 years, 7 months ago) by simonb
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -3 lines
Move inclusion of "opt_sb_max.h" from sys/socketvar.h to
conf/param.c, and move the initialisation of the sb_max
variable from kern/uipc_socket2.c to conf/param.c.  Now
everthing that includes sys/socketvar.h doesn't get
recompiled when SB_MAX's value changes.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Mar 23 10:45:37 1999 UTC (25 years, 8 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4, kame, chs-ubc2
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -1 lines
Ensure that you can only bind a more specific address when it is done by the
same uid or by root.

This code is from FreeBSD. (Whilst it was originally obtained from OpenBSD,
FreeBSD fixed it to work with multicast. To quote the commit message:
    - Don't bother checking for conflicting sockets if we're binding to a
      multicast address.
    - Don't return an error if we're binding to INADDR_ANY, the conflicting
      socket is bound to INADDR_ANY, and the conflicting socket has
      SO_REUSEPORT set.
)

Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Mon Jan 25 05:49:42 1999 UTC (25 years, 10 months ago) by cgd
Branches: netbsd-1-3
Diff to: previous 1.21.2.1: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.2.1: +2 -2 lines
Patch to fix select(2)/accept(2) race condition which permits DoS.  (mycroft)

Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Jan 20 09:15:41 1999 UTC (25 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
Do not remove sockets from the accept(2) queue on close.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Aug 4 04:03:17 1998 UTC (26 years, 4 months ago) by perry
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -5 lines
Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one.
  bcopy(x, y, z) ->  memcpy(y, x, z)
ovbcopy(x, y, z) -> memmove(y, x, z)
   bcmp(x, y, z) ->  memcmp(x, y, z)
  bzero(x, y)    ->  memset(x, 0, y)

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Aug 2 04:53:12 1998 UTC (26 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +5 -5 lines
Use the pool allocator for sockets.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Apr 25 17:35:18 1998 UTC (26 years, 7 months ago) by matt
Branches: MAIN
CVS tags: eeh-paddr_t-base, eeh-paddr_t
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -1 lines
Hook for 0-copy (or other optimized) sends and receives

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:22:34 1998 UTC (26 years, 9 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
Merge with Lite2 + local changes

Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:13:08 1998 UTC (26 years, 9 months ago) by fvdl
Branches: WFJ-920714, CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +26 -2 lines
Import 4.4BSD-Lite2

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:09:51 1998 UTC (26 years, 9 months ago) by fvdl
Branches: WFJ-920714, CSRG
CVS tags: lite-1, date-03-may-96
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +15 -39 lines
Import 4.4BSD-Lite for reference

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 29 10:42:13 1998 UTC (26 years, 10 months ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +17 -24 lines
Pull up 1.22 (thorpej)

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Jan 7 23:47:09 1998 UTC (26 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +17 -24 lines
Make insertion and removal of sockets from the partial and incoming
connections queues O(C) rather than O(N).

Revision 1.20.4.1: download - view: text, markup, annotated - select for diffs
Tue Oct 14 10:26:20 1997 UTC (27 years, 2 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +4 -4 lines
Update marc-pcmcia branch from trunk.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Oct 9 13:00:00 1997 UTC (27 years, 2 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-BETA, marc-pcmcia-base
Branch point for: netbsd-1-3
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -4 lines
Make various standard wmesg strings const.

Revision 1.19.8.3: download - view: text, markup, annotated - select for diffs
Sat Jun 28 02:51:24 1997 UTC (27 years, 5 months ago) by thorpej
Branches: SYN_cache_branch
Diff to: previous 1.19.8.2: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.8.2: +3 -7 lines
Remove handling of SS_FORCE.

Revision 1.19.8.2: download - view: text, markup, annotated - select for diffs
Thu Jun 26 21:25:46 1997 UTC (27 years, 5 months ago) by thorpej
Branches: SYN_cache_branch
Diff to: previous 1.19.8.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.8.1: +8 -3 lines
Update from trunk.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Jun 26 05:56:38 1997 UTC (27 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi, SYN_cache_cur_base
Branch point for: marc-pcmcia
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +8 -3 lines
In sbappendaddr(), if the sockaddr length is larger than will fit in
an mbuf, allocate enough external storage to hold the sockaddr.  Thanks
to enami tsugutomo <enami@cv.sony.co.jp> for providing sanity-checks.

Revision 1.19.8.1: download - view: text, markup, annotated - select for diffs
Wed May 14 01:26:44 1997 UTC (27 years, 7 months ago) by mellon
Branches: SYN_cache_branch
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +7 -3 lines
Support SS_FORCE bit in sonewconn1() to override accept queue limit for SYN cache

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Jan 11 05:16:46 1997 UTC (27 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Branch point for: SYN_cache_branch
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +26 -1 lines
Implement sbcreatecontrol(), a generic function to create a "control"
mbuf for presentation on a socket buffer.

Revision 1.11.4.2: download - view: text, markup, annotated - select for diffs
Wed Dec 11 09:30:02 1996 UTC (28 years ago) by mycroft
Branches: netbsd-1-2
CVS tags: netbsd-1-2-PATCH001
Diff to: previous 1.11.4.1: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.4.1: +2 -2 lines
From trunk:
Don't allow SO_{SND,RCV}BUF with a buffer size of 0.

Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Wed Dec 11 03:27:59 1996 UTC (28 years ago) by mycroft
Branches: netbsd-1-2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -2 lines
From trunk:
Eliminate SS_PRIV; instead, pass down a proc pointer to the usrreq methods
that need it.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Dec 9 23:50:57 1996 UTC (28 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
In sbreserve(), don't allow a count of 0.  Fixes PR #2794, from
Erik Berls <cyber@dis.org>.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Nov 26 23:24:04 1996 UTC (28 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +22 -73 lines
Back out previous soqinsque() and soqremque() changes.  This will
stop the panics until the socket queues get converted to <sys/queue.h>.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Nov 10 05:58:37 1996 UTC (28 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +74 -23 lines
Optimization of soqinsque() and soqremque():

Keep queue of pending sockets in a double linked list.  Previously,
a singly linked list was used, giving O(N) insertion/deletion times,
and was a major time consumer for sockets with large pending queues.
The double linked list give O(C) insertion/deletion times with only
a small cost in complexity.

Since a socket can be on, at most, one queue at a time, both so_q and
so_q0 can safely be used as (forward and backward, respectively) queue
pointers.

Submitted my Matt Thomas <matt@3am-software.com>, a long time ago.
(Geez, I've been running with this patch for _months_, and had completely
forgotten about it!)

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Oct 13 02:32:47 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
backout previous kprintf change

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Oct 10 22:46:34 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -3 lines
printf -> kprintf, sprintf -> ksprintf

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Sep 7 12:41:05 1996 UTC (28 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Implement poll(2).

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed May 22 13:55:00 1996 UTC (28 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -2 lines
Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and
PRU_CONTROL.  The usrreq interface really needs to be split up, but this will have to wait.
Remove SS_PRIV completely.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Feb 4 02:17:55 1996 UTC (28 years, 10 months ago) by christos
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +13 -11 lines
First pass at prototyping

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Aug 16 01:03:19 1995 UTC (29 years, 4 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2 lines
Access rights are now stored in MT_CONTROL mbufs.  Document this.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:33:39 1994 UTC (30 years, 5 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -2 lines
New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri May 13 06:01:40 1994 UTC (30 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +1 -2 lines
Update to 4.4-Lite networking code, with a few local changes.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed May 4 11:04:58 1994 UTC (30 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +28 -10 lines
More return types...

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Apr 25 08:08:58 1994 UTC (30 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -12 lines
Remove sbselqueue().

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Dec 18 04:22:30 1993 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +12 -12 lines
Canonicalize all #includes.

Revision 1.4.4.2: download - view: text, markup, annotated - select for diffs
Sun Nov 14 21:21:34 1993 UTC (31 years, 1 month ago) by mycroft
Branches: magnum
Diff to: previous 1.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.1: +13 -13 lines
Canonicalize all #includes.

Revision 1.4.4.1: download - view: text, markup, annotated - select for diffs
Fri Sep 24 08:51:56 1993 UTC (31 years, 2 months ago) by mycroft
Branches: magnum
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -1 lines
Make all files using spl*() #include cpu.h.  Changes from trunk.
init_main.c: New method of pseudo-device of initialization.
kern_clock.c: hardclock() and softclock() now take a pointer to a clockframe.
softclock() only does callouts.
kern_synch.c: Remove spurious declaration of endtsleep().  Adjust uses of
averunnable for new struct loadav.
subr_prf.c: Allow printf() formats in panic().
tty.c: averunnable changes.
vfs_subr.c: va_size and va_bytes are now quads.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jun 27 06:02:00 1993 UTC (31 years, 5 months ago) by andrew
Branches: MAIN
CVS tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, magnum-base
Branch point for: magnum
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -1 lines
ANSIfications - removed all implicit function return types and argument
definitions.  Ensured that all files include "systm.h" to gain access to
general prototypes.  Casts where necessary.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue May 18 18:19:38 1993 UTC (31 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -21 lines
make kernel select interface be one-stop shopping & clean it all up.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Mar 21 18:04:42 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +9 -2 lines
after 0.2.2 "stable" patches applied

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 8 months ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
Initial revision

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>