The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.81.6.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:57:42 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +13 -11 lines
Sync with HEAD

Revision 1.84: download - view: text, markup, annotated - select for diffs
Fri Dec 6 18:44:00 2024 UTC (23 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, HEAD
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +5 -4 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.83: download - view: text, markup, annotated - select for diffs
Fri Dec 6 18:36:47 2024 UTC (23 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3 lines
sys/kern/sys_socket.c, uipc_*.c: Nix trailing whitespace.

No functional change intended.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Fri Dec 6 18:36:31 2024 UTC (23 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +9 -8 lines
sys/kern/sys_socket.c, uipc_*.c: Sort includes.

No functional change intended.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:53:02 2023 UTC (3 years, 6 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base
Branch point for: perseant-exfatfs
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +11 -2 lines
file(9): New fo_posix_fadvise operation.

XXX kernel revbump -- changes struct fileops API and ABI

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:52:54 2023 UTC (3 years, 6 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +18 -2 lines
file(9): New fo_fpathconf operation.

XXX kernel revbump -- struct fileops API and ABI change

Revision 1.78.12.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:14 2020 UTC (5 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78: +2 -4 lines
Sync w/ HEAD.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue Nov 17 03:22:33 2020 UTC (6 years ago) by chs
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, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +2 -4 lines
When SS_RESTARTSYS was added, it was accidentally given the same value as
the existing SS_ASYNC.  SS_ASYNC was already vestigial at that point,
having been superceded by SB_ASYNC, however the SS_ASYNC flag is still
set and cleared, unlessly because it is never checked.
Fix this conflict by removing SS_ASYNC and its vestigial uses.

Revision 1.76.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:03 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76: +9 -13 lines
Sync with HEAD

Revision 1.76.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:02:04 2018 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.76.2.1: preferred, colored; branchpoint 1.76: preferred, colored; next MAIN 1.77: preferred, colored
Changes since revision 1.76.2.1: +3 -13 lines
Sync with HEAD, resolve a few conflicts

Revision 1.78: download - view: text, markup, annotated - select for diffs
Tue Dec 4 00:18:05 2018 UTC (7 years, 11 months ago) by maya
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-futex
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -13 lines
soo_fcntl is identical to fnullop_fcntl, use the latter

ok kamil mrg

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

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

Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Aug 1 23:35:32 2018 UTC (8 years, 3 months ago) by rjs
Branches: MAIN
CVS tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +8 -2 lines
Add ioctl(2) handler for kernel part of sctp_peeloff().

Revision 1.74.10.1: download - view: text, markup, annotated - select for diffs
Tue Jan 2 10:20:33 2018 UTC (8 years, 10 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +8 -4 lines
Pull up following revision(s) (requested by ozaki-r in ticket #456):
	sys/arch/arm/sunxi/sunxi_emac.c: 1.9
	sys/dev/ic/dwc_gmac.c: 1.43-1.44
	sys/dev/pci/if_iwm.c: 1.75
	sys/dev/pci/if_wm.c: 1.543
	sys/dev/pci/ixgbe/ixgbe.c: 1.112
	sys/dev/pci/ixgbe/ixv.c: 1.74
	sys/kern/sys_socket.c: 1.75
	sys/net/agr/if_agr.c: 1.43
	sys/net/bpf.c: 1.219
	sys/net/if.c: 1.397, 1.399, 1.401-1.403, 1.406-1.410, 1.412-1.416
	sys/net/if.h: 1.242-1.247, 1.250, 1.252-1.257
	sys/net/if_bridge.c: 1.140 via patch, 1.142-1.146
	sys/net/if_etherip.c: 1.40
	sys/net/if_ethersubr.c: 1.243, 1.246
	sys/net/if_faith.c: 1.57
	sys/net/if_gif.c: 1.132
	sys/net/if_l2tp.c: 1.15, 1.17
	sys/net/if_loop.c: 1.98-1.101
	sys/net/if_media.c: 1.35
	sys/net/if_pppoe.c: 1.131-1.132
	sys/net/if_spppsubr.c: 1.176-1.177
	sys/net/if_tun.c: 1.142
	sys/net/if_vlan.c: 1.107, 1.109, 1.114-1.121
	sys/net/npf/npf_ifaddr.c: 1.3
	sys/net/npf/npf_os.c: 1.8-1.9
	sys/net/rtsock.c: 1.230
	sys/netcan/if_canloop.c: 1.3-1.5
	sys/netinet/if_arp.c: 1.255
	sys/netinet/igmp.c: 1.65
	sys/netinet/in.c: 1.210-1.211
	sys/netinet/in_pcb.c: 1.180
	sys/netinet/ip_carp.c: 1.92, 1.94
	sys/netinet/ip_flow.c: 1.81
	sys/netinet/ip_input.c: 1.362
	sys/netinet/ip_mroute.c: 1.147
	sys/netinet/ip_output.c: 1.283, 1.285, 1.287
	sys/netinet6/frag6.c: 1.61
	sys/netinet6/in6.c: 1.251, 1.255
	sys/netinet6/in6_pcb.c: 1.162
	sys/netinet6/ip6_flow.c: 1.35
	sys/netinet6/ip6_input.c: 1.183
	sys/netinet6/ip6_output.c: 1.196
	sys/netinet6/mld6.c: 1.90
	sys/netinet6/nd6.c: 1.239-1.240
	sys/netinet6/nd6_nbr.c: 1.139
	sys/netinet6/nd6_rtr.c: 1.136
	sys/netipsec/ipsec_output.c: 1.65
	sys/rump/net/lib/libnetinet/netinet_component.c: 1.9-1.10
kmem_intr_free kmem_intr_[z]alloced memory
the underlying pools are the same but api-wise those should match
Unify IFEF_*_MPSAFE into IFEF_MPSAFE
There are already two flags for if_output and if_start, however, it seems such
MPSAFE flags are eventually needed for all if_XXX operations. Having discrete
flags for each operation is wasteful of if_extflags bits. So let's unify
the flags into one: IFEF_MPSAFE.
Fortunately IFEF_*_MPSAFE flags have never been included in any releases, so
we can change them without breaking backward compatibility of the releases
(though the kernel version of -current should be bumped).
Note that if an interface have both MP-safe and non-MP-safe operations at a
time, we have to set the IFEF_MPSAFE flag and let callees of non-MP-safe
opeartions take the kernel lock.
Proposed on tech-kern@ and tech-net@
Provide macros for softnet_lock and KERNEL_LOCK hiding NET_MPSAFE switch
It reduces C&P codes such as "#ifndef NET_MPSAFE KERNEL_LOCK(1, NULL); ..."
scattered all over the source code and makes it easy to identify remaining
KERNEL_LOCK and/or softnet_lock that are held even if NET_MPSAFE.
No functional change
Hold KERNEL_LOCK on if_ioctl selectively based on IFEF_MPSAFE
If IFEF_MPSAFE is set, hold the lock and otherwise don't hold.
This change requires additions of KERNEL_LOCK to subsequence functions from
if_ioctl such as ifmedia_ioctl and ifioctl_common to protect non-MP-safe
components.
Proposed on tech-kern@ and tech-net@
Ensure to hold if_ioctl_lock when calling if_flags_set
Fix locking against myself on ifpromisc
vlan_unconfig_locked could be called with holding if_ioctl_lock.
Ensure to not turn on IFF_RUNNING of an interface until its initialization completes
And ensure to turn off it before destruction as per IFF_RUNNING's description
"resource allocated". (The description is a bit doubtful though, I believe the
change is still proper.)
Ensure to hold if_ioctl_lock on if_up and if_down
One exception for if_down is if_detach; in the case the lock isn't needed
because it's guaranteed that no other one can access ifp at that point.
Make if_link_queue MP-safe if IFEF_MPSAFE
if_link_queue is a queue to store events of link state changes, which is
used to pass events from (typically) an interrupt handler to
if_link_state_change softint. The queue was protected by KERNEL_LOCK so far,
but if IFEF_MPSAFE is enabled, it becomes unsafe because (perhaps) an interrupt
handler of an interface with IFEF_MPSAFE doesn't take KERNEL_LOCK. Protect it
by a spin mutex.
Additionally with this change KERNEL_LOCK of if_link_state_change softint is
omitted if NET_MPSAFE is enabled.
Note that the spin mutex is now ifp->if_snd.ifq_lock as well as the case of
if_timer (see the comment).
Use IFADDR_WRITER_FOREACH instead of IFADDR_READER_FOREACH
At that point no other one modifies the list so IFADDR_READER_FOREACH
is unnecessary. Use of IFADDR_READER_FOREACH is harmless in general though,
if we try to detect contract violations of pserialize, using it violates
the contract. So avoid using it makes life easy.
Ensure to call if_addr_init with holding if_ioctl_lock
Get rid of outdated comments
Fix build of kernels without ether
By throwing out if_enable_vlan_mtu and if_disable_vlan_mtu that
created a unnecessary dependency from if.c to if_ethersubr.c.
PR kern/52790
Rename IFNET_LOCK to IFNET_GLOBAL_LOCK
IFNET_LOCK will be used in another lock, if_ioctl_lock (might be renamed then).
Wrap if_ioctl_lock with IFNET_* macros (NFC)
Also if_ioctl_lock perhaps needs to be renamed to something because it's now
not just for ioctl...
Reorder some destruction routines in if_detach
- Destroy if_ioctl_lock at the end of the if_detach because it's used in various
  destruction routines
- Move psref_target_destroy after pr_purgeif because we want to use psref in
  pr_purgeif (otherwise destruction procedures can be tricky)
Ensure to call if_mcast_op with holding IFNET_LOCK
Note that CARP doesn't deal with IFNET_LOCK yet.
Remove IFNET_GLOBAL_LOCK where it's unnecessary because IFNET_LOCK is held
Describe which lock is used to protect each member variable of struct ifnet
Requested by skrll@
Write a guideline for converting an interface to IFEF_MPSAFE
Requested by skrll@
Note that IFNET_LOCK must not be held in softint
Don't set IFEF_MPSAFE unless NET_MPSAFE at this point
Because recent investigations show that interfaces with IFEF_MPSAFE need to
follow additional restrictions to work with the flag safely. We should enable it
on an interface by default only if the interface surely satisfies the
restrictions, which are described in if.h.
Note that enabling IFEF_MPSAFE solely gains a few benefit on performance because
the network stack is still serialized by the big kernel locks by default.

Revision 1.65.6.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:38:45 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.65.6.1: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.6.1: +17 -12 lines
update from HEAD

Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu Nov 30 20:25:55 2017 UTC (8 years, 11 months ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -2 lines
add fo_name so we can identify the fileops in a simple way.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Wed Nov 22 03:03:18 2017 UTC (8 years, 11 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +8 -4 lines
Hold KERNEL_LOCK on if_ioctl selectively based on IFEF_MPSAFE

If IFEF_MPSAFE is set, hold the lock and otherwise don't hold.

This change requires additions of KERNEL_LOCK to subsequence functions from
if_ioctl such as ifmedia_ioctl and ifioctl_common to protect non-MP-safe
components.

Proposed on tech-kern@ and tech-net@

Revision 1.73.2.1: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:20 2016 UTC (10 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73: +3 -3 lines
Sync with HEAD

Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Jul 7 06:55:43 2016 UTC (10 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -3 lines
KNF. Remove extra spaces. No functional change.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Fri Sep 5 09:20:59 2014 UTC (12 years, 2 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +11 -11 lines
Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get
a correctly typed pointer.

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

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

Revision 1.72: download - view: text, markup, annotated - select for diffs
Sun Jul 6 03:33:33 2014 UTC (12 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.71: preferred, colored
Changes since revision 1.71: +3 -4 lines
* split PRU_SENSE functionality out of xxx_usrreq() switches and place into
  separate xxx_stat(struct socket *, struct stat *) functions.
* replace calls using pr_generic with req == PRU_SENSE with pr_stat().

further change will follow that cleans up the pattern used to extract the
pcb and test for its presence.

reviewed by rmind

Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Jul 1 05:49:18 2014 UTC (12 years, 4 months ago) by rtr
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -4 lines
fix parameter types in pr_ioctl, called xx_control() functions and remove
abuse of pointer to struct mbuf type.

param2 changed to u_long type and uses parameter name 'cmd' (ioctl command)
param3 changed to void * type and uses parameter name 'data'
param4 changed to struct ifnet * and uses parameter name 'ifp'
param5 has been removed (formerly struct lwp *) and uses of 'l' have been
       replaced with curlwp from curproc(9).

callers have had (now unnecessary) casts to struct mbuf * removed, called
code has had (now unnecessary) casts to u_long, void * and struct ifnet *
respectively removed.

reviewed by rmind@

Revision 1.70: download - view: text, markup, annotated - select for diffs
Mon Jun 23 17:18:45 2014 UTC (12 years, 4 months ago) by rtr
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4 lines
where appropriate rename xxx_ioctl() struct mbuf * parameters from
`control' to `ifp' after split from xxx_usrreq().

sys_socket.c
    fix wrapping of arguments to be consistent with other function calls
    in the file after replacing pr_usrreq() call with pr_ioctl() which
    required one less argument.

link_proto.c
    fix indentation of parameters in link_ioctl() prototype to be
    consistent with the rest of the file.

discussed with rmind@

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sun Jun 22 08:10:18 2014 UTC (12 years, 4 months ago) by rtr
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +4 -4 lines
* split PRU_CONTROL functionality out of xxx_userreq() switches and place
  into separate xxx_ioctl() functions.
* place KASSERT(req != PRU_CONTROL) inside xxx_userreq() as it is now
  inappropriate for req = PRU_CONTROL in xxx_userreq().
* replace calls to pr_generic() with req = PRU_CONTROL with pr_ioctl().
* remove & fixup references to PRU_CONTROL xxx_userreq() function comments.
* fix various comments references for xxx_userreq() that mentioned
  PRU_CONTROL as xxx_userreq() no longer handles the request.

a further change will follow to fix parameter and naming inconsistencies
retained from original code.

Reviewed by rmind@

Revision 1.64.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:03 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.64.2.1: preferred, colored; branchpoint 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64.2.1: +4 -4 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.65.10.2: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:07 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.65.10.1: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.10.1: +4 -4 lines
sync with head

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun May 18 14:46:15 2014 UTC (12 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: rmind-smpnet-nbase, rmind-smpnet-base
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +6 -6 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.67: download - view: text, markup, annotated - select for diffs
Sat Apr 26 11:16:22 2014 UTC (12 years, 6 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -2 lines
Decouple sockets linkage from interface code by making ifioctl() a pointer.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Apr 26 11:10:10 2014 UTC (12 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -4 lines
It's been > 20years since rtioctl() did something.  Let's just
remove that special way of returning EOPNOTSUPP.

Revision 1.65.10.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 15:21:48 2013 UTC (13 years, 2 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +6 -6 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.64.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:29 2012 UTC (14 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +8 -4 lines
sync with head

Revision 1.64.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:33 2012 UTC (14 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.64: preferred, colored; next MAIN 1.65: preferred, colored
Changes since revision 1.64: +8 -4 lines
merge to -current.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Tue Dec 20 23:56:28 2011 UTC (14 years, 10 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, 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, tls-earlyentropy, rmind-smpnet
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +8 -4 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.64: download - view: text, markup, annotated - select for diffs
Thu Jun 30 22:38:50 2011 UTC (15 years, 4 months ago) by dyoung
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.63: preferred, colored
Changes since revision 1.63: +6 -9 lines
Don't cast a pointer void * before passing to memset(), that's not
necessary.  Use NULL instead of (type *)0.  This patch produces no
change in the generated assembly.

Revision 1.56.2.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:19 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.56.2.2: preferred, colored; branchpoint 1.56: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56.2.2: +5 -5 lines
sync with head

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Dec 20 09:36:06 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +5 -5 lines
If a multithreaded app closes an fd while another thread is blocked in
read/write/accept, then the expectation is that the blocked thread will
exit and the close complete.
Since only one fd is affected, but many fd can refer to the same file,
the close code can only request the fs code unblock with ERESTART.
Fixed for pipes and sockets, ERESTART will only be generated after such
a close - so there should be no change for other programs.
Also rename fo_abort() to fo_restart() (this used to be fo_drain()).
Fixes PR/26567

Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Dec 9 21:32:59 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +5 -5 lines
Rename fo_drain() to fo_abort(), 'drain' is used to mean 'wait for output
do drain' in many places, whereas fo_drain() was called in order to force
blocking read()/write() etc calls to return to userspace so that a close()
call from a different thread can complete.
In the sockets code comment out the broken code in the inner function,
it was being called from compat code.

Revision 1.58.14.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:57 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +27 -10 lines
Sync with HEAD.

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

Revision 1.56.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:48 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.56.2.1: preferred, colored; branchpoint 1.56: preferred, colored
Changes since revision 1.56.2.1: +27 -10 lines
sync with head.

Revision 1.58.8.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:00 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +27 -10 lines
Sync with HEAD.

Revision 1.58.10.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 23:10:13 2009 UTC (17 years, 7 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Diff to: previous 1.58.10.1: preferred, colored; branchpoint 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58.10.1: +3 -3 lines
Pull up following revision(s) (requested by ad in ticket #681):
	sys/kern/sys_socket.c: revision 1.60
Patch out soo_drain until I fix it to work correctly.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Wed Apr 8 21:02:09 2009 UTC (17 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, 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-nbase, jym-xensuspend-base
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +7 -7 lines
soo_ioctl:

- cosmetic change after merge of socket locking patch.
- add a comment.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Apr 8 20:58:40 2009 UTC (17 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3 lines
Patch out soo_drain until I fix it to work correctly.

Revision 1.58.10.1: download - view: text, markup, annotated - select for diffs
Sat Apr 4 23:36:27 2009 UTC (17 years, 7 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +22 -5 lines
Pull up following revision(s) (requested by ad in ticket #661):
	sys/arch/xen/xen/xenevt.c: revision 1.32
	sys/compat/svr4/svr4_net.c: revision 1.56
	sys/compat/svr4_32/svr4_32_net.c: revision 1.19
	sys/dev/dmover/dmover_io.c: revision 1.32
	sys/dev/putter/putter.c: revision 1.21
	sys/kern/kern_descrip.c: revision 1.190
	sys/kern/kern_drvctl.c: revision 1.23
	sys/kern/kern_event.c: revision 1.64
	sys/kern/sys_mqueue.c: revision 1.14
	sys/kern/sys_pipe.c: revision 1.109
	sys/kern/sys_socket.c: revision 1.59
	sys/kern/uipc_syscalls.c: revision 1.136
	sys/kern/vfs_vnops.c: revision 1.164
	sys/kern/uipc_socket.c: revision 1.188
	sys/net/bpf.c: revision 1.144
	sys/net/if_tap.c: revision 1.55
	sys/opencrypto/cryptodev.c: revision 1.47
	sys/sys/file.h: revision 1.67
	sys/sys/param.h: patch
	sys/sys/socketvar.h: revision 1.119
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.
Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.
thr0	accept(fd, ...)
thr1	close(fd)

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Apr 4 10:12:51 2009 UTC (17 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +22 -5 lines
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.

Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.

thr0	accept(fd, ...)
thr1	close(fd)

Revision 1.52.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:12 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.52.6.1: preferred, colored; branchpoint 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52.6.1: +36 -12 lines
Sync with HEAD.

Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:10 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +38 -14 lines
sync with head.

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

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Apr 29 18:35:14 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base2, netbsd-5-base, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, mjf-devfs2-base, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, jym-xensuspend
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -4 lines
kern/38502 ifconfig wi0 hangs

Don't acquire the socket lock for PRU_CONTROL.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:05 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Apr 24 11:38:36 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +47 -14 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.52.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:05 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +36 -68 lines
Sync with HEAD.

Revision 1.43.4.5: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:39:02 2008 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.43.4.4: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.4.4: +35 -67 lines
sync with head.

Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:14 2008 UTC (18 years, 7 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +4 -37 lines
sync with head.

Revision 1.51.8.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:01 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +9 -44 lines
sync with HEAD

Revision 1.55: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:55:00 2008 UTC (18 years, 8 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +34 -33 lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu Mar 20 19:23:15 2008 UTC (18 years, 8 months ago) by ad
Branches: MAIN
CVS tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -36 lines
- Extract the guts of soo_poll() into sopoll(), which takes a struct socket *.
  This is for netsmb which wants to poll sockets directly.
- When polling a socket, first check for pending I/O without acquring any
  locks. If no I/O seems to be pending, acquire locks/spl and check again
  doing selrecord() if necessary.

Revision 1.43.4.4: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:34 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.43.4.3: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.4.3: +3 -3 lines
sync with head.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Feb 27 19:56:33 2008 UTC (18 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
make socketops const

Revision 1.51.14.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:47 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +7 -9 lines
Sync with HEAD.

Revision 1.43.4.3: download - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:58 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.43.4.2: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.4.2: +7 -9 lines
sync with head.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Wed Feb 6 21:57:54 2008 UTC (18 years, 9 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.51: preferred, colored
Changes since revision 1.51: +7 -9 lines
Don't lock the socket to set/clear FNONBLOCK. Just set it atomically.

Revision 1.43.4.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:41:10 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.43.4.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.4.1: +73 -32 lines
sync with head.

Revision 1.50.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:10:12 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +72 -31 lines
Sync with head.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:10:56 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, 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, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, 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, matt-armv6
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +72 -31 lines
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 21 20:09:38 2007 UTC (19 years, 8 months ago) by ad
Branches: vmlocking
Diff to: previous 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50: +72 -31 lines
Acquire the kernel lock in the VOP_* wrappers and the socket ops.

Revision 1.49.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:58:42 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +3 -3 lines
Sync with HEAD.

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

Revision 1.47.10.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:45 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.47.10.1: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.10.1: +8 -9 lines
sync with head.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Nov 1 10:17:59 2006 UTC (20 years ago) by yamt
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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.48: preferred, colored
Changes since revision 1.48: +8 -9 lines
remove some __unused from function parameters.

Revision 1.47.10.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:11 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +9 -8 lines
sync with head

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

Revision 1.45.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:57:17 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +7 -6 lines
sync with head

Revision 1.43.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:09:38 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +21 -43 lines
sync with head.

Revision 1.45.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:38:09 2006 UTC (20 years, 5 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.45.6.1: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.6.1: +5 -4 lines
Sync with head.

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

Revision 1.46.2.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:41 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46: +5 -4 lines
sync with head.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun May 14 21:15:11 2006 UTC (20 years, 6 months ago) by elad
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, newlock2, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -4 lines
integrate kauth.

Revision 1.46.4.2: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:30 2006 UTC (20 years, 6 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.46.4.1: preferred, colored; branchpoint 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.4.1: +3 -2 lines
- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.45.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:59 2006 UTC (20 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -4 lines
Sync with head.

Revision 1.46.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 00:53:40 2006 UTC (20 years, 8 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +4 -4 lines
Adapt to kernel authorization KPI.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Mar 1 12:38:21 2006 UTC (20 years, 8 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -4 lines
merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Sat Dec 31 11:14:01 2005 UTC (20 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +4 -4 lines
uio_segflg/uio_lwp -> uio_vmspace.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:24:30 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +15 -14 lines
merge ktrace-lwp.

Revision 1.37.2.7: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:29:12 2005 UTC (20 years, 11 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.37.2.6: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.2.6: +11 -35 lines
Sync with head.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Dec 7 06:05:20 2005 UTC (20 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: ktrace-lwp-base
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +11 -35 lines
Use ANSI function decls.

Revision 1.42.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:24 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +3 -3 lines
sync with -current

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

Revision 1.37.2.6: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:52:00 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.37.2.5: preferred, colored
Changes since revision 1.37.2.5: +3 -3 lines
Sync with HEAD.

Hi Perry!

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Feb 26 21:34:55 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
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, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, 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
Branch point for: yamt-lazymbuf
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3 lines
nuke trailing whitespace

Revision 1.37.2.5: download - view: text, markup, annotated - select for diffs
Sun Nov 14 08:15:57 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.37.2.4: preferred, colored
Changes since revision 1.37.2.4: +20 -2 lines
Sync with HEAD.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Nov 6 07:31:55 2004 UTC (22 years ago) by christos
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +5 -5 lines
I guess compiling code before committing is a lost art!

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Nov 6 02:03:20 2004 UTC (22 years ago) by wrstuden
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +20 -2 lines
Add support for FIONWRITE and FIONSPACE ioctls. FIONWRITE reports
the number of bytes in the send queue, and FIONSPACE reports the
number of free bytes in the send queue. These ioctls permit applications
to monitor file descriptor transmission dynamics.

In examining prior art, FIONWRITE exists with the semantics given
here. FIONSPACE is provided so that programs may easily determine how
much space is left in the send queue; they do not need to know the
send queue size.

The fact that a write may block even if there is enough space in the
send queue for it is noted in the documentation.

FIONWRITE functionality may be used to implement TIOCOUTQ for Linux
emulation - Linux extended this ioctl to sockets, even though they are
not ttys.

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

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

Revision 1.37.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:52:55 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.37.2.1: preferred, colored
Changes since revision 1.37.2.1: +11 -12 lines
Sync with HEAD

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat May 22 22:52:13 2004 UTC (22 years, 6 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3 lines
Eliminate several uses of `curproc' from the socket-layer code and from NFS.

Add a new explicit `struct proc *p' argument to socreate(), sosend().
Use that argument instead of curproc. Follow-on changes to pass that
argument to socreate(), sosend(), and (*so->so_send)() calls.
These changes reviewed and independently recoded  by Matt Thomas.

Changes to soreceive() and (*dom->dom_exernalize() from Matt Thomas:
pass soreceive()'s struct uio* uio->uio_procp to unp_externalize().
Eliminate curproc from unp_externalize.   Also, now soreceive() uses
its uio->uio_procp value, pass that same value downward to
((pr->pru_usrreq)() calls for consistency, instead of (struct proc * )0.

Similar changes in sys/nfs to eliminate (most) uses of curproc,
either via the req-> r_procp field of a struct nfsreq *req argument,
or by passing down new explicit struct proc * arguments.

Reviewed by: Matt Thomas, posted to tech-kern.
NB: The (*pr->pru_usrreq)() change should be tested on more (all!) protocols.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Sep 21 19:17:08 2003 UTC (23 years, 2 months ago) by jdolecek
Branches: MAIN
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-base, 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-0, netbsd-2
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +8 -6 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.38: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:31:55 2003 UTC (23 years, 3 months ago) by agc
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +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.37.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:42 2003 UTC (23 years, 4 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +18 -18 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.37: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:31:27 2003 UTC (23 years, 4 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +16 -16 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:56 2003 UTC (23 years, 4 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +18 -18 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.35: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:13:51 2003 UTC (23 years, 8 months ago) by dsl
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -4 lines
Change 'data' argument to fo_ioctl and fo_fcntl from 'caddr_t' to 'void *'.
Avoids a lot of casting and removes the need for some line breaks.
Removed a load of (caddr_t) casts from calls to copyin/copyout as well.
(approved by christos - he has a plan to remove caddr_t...)

Revision 1.22.6.5: download - view: text, markup, annotated - select for diffs
Tue Jan 7 21:37:18 2003 UTC (23 years, 10 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.22.6.4: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.6.4: +3 -3 lines
Sync with HEAD.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Jan 6 20:30:38 2003 UTC (23 years, 10 months ago) by wiz
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -3 lines
writable, not writeable.

Revision 1.22.6.4: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:14:01 2002 UTC (24 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.22.6.3: preferred, colored; branchpoint 1.22: preferred, colored
Changes since revision 1.22.6.3: +5 -3 lines
Catch up to -current

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Oct 23 09:14:23 2002 UTC (24 years ago) by jdolecek
Branches: MAIN
CVS tags: kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +6 -4 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.31.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:00:07 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.31.2.1: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.2.1: +4 -1 lines
Sync kqueue branch with -current.

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

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

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Nov 12 15:25:25 2001 UTC (25 years 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, kqueue-beforemerge, kqueue-base, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -1 lines
add RCSIDs

Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 10 13:43:33 2001 UTC (25 years, 4 months ago) by lukem
Branches: kqueue
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -3 lines
add soo_kqfilter method

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

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Jun 16 21:29:32 2001 UTC (25 years, 5 months ago) by manu
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, kqueue
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -7 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.30: download - view: text, markup, annotated - select for diffs
Sat May 19 17:28:33 2001 UTC (25 years, 6 months ago) by manu
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -0 lines
Backed out a previous commit that was incomplete and hence broke several
emulation package build

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat May 19 08:52:05 2001 UTC (25 years, 6 months ago) by manu
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -3 lines
Moved e_flags outsied of ifdef __HAVE_MINIMAL_EMUL in struct emul
and removed an ifdef that was taking care of this problem

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon May 7 09:55:15 2001 UTC (25 years, 6 months ago) by manu
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +2 -2 lines
Changed EMUL_BSD_ASYNCIO_PIPE to EMUL_NO_BSD_ASYNCIO_PIPE, so that
the native emulation (NetBSD) does not have a flag.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon May 7 02:51:53 2001 UTC (25 years, 6 months ago) by enami
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +6 -3 lines
Make this file *just* compiles again when __HAVE_MINIMAL_EMUL is defined.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon May 7 02:28:55 2001 UTC (25 years, 6 months ago) by enami
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +10 -10 lines
Fix broken indentation introduced by previous commit.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun May 6 19:22:32 2001 UTC (25 years, 6 months ago) by manu
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +13 -10 lines
implement the recently introduced EMUL_BSD_ASYNCIO_PIPE emulation package
flag.

EMUL_BSD_ASYNCIO_PIPE notes that the emulated binaries expect the original
BSD pipe behavior for asynchronous I/O, which is to fire SIGIO on read() and
write(). OSes without this flag do not expect any SIGIO to be fired on
read() and write() for pipes, even when async I/O was requested. As far as
we know, the OSes that need EMUL_BSD_ASYNCIO_PIPE are NetBSD, OSF/1 and
Darwin.

Revision 1.21.2.2: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:46:29 2001 UTC (25 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
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: +7 -6 lines
Sync with HEAD

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Apr 9 10:22:02 2001 UTC (25 years, 7 months ago) by jdolecek
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -4 lines
Change the first arg to fileops fo_stat routine to struct file *, adjust
callers and appropriate routines to cope. This makes fo_stat more
consistent with rest of fileops routines and also makes the fo_stat
match FreeBSD as an added bonus.
Discussed with Luke Mewburn on tech-kern@.

Revision 1.22.6.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:57:57 2001 UTC (25 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +7 -6 lines
Catch up with -current.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Apr 7 09:00:57 2001 UTC (25 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +7 -6 lines
Add new 'stat' fileop and call the stat function via f_ops rather
than directly.
For compat syscalls, also add necessary FILE_USE()/FILE_UNUSE().
Now that soo_stat() gets a proc arg, pass it on to usrreq function.

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

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Mar 30 09:27:13 2000 UTC (26 years, 7 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
Branch point for: nathanw_sa
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +8 -8 lines
Get rid of register declarations.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Aug 3 20:19:17 1999 UTC (27 years, 3 months ago) by wrstuden
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.20: preferred, colored
Changes since revision 1.20: +15 -2 lines
Add support for fcntl(2) to generate VOP_FCNTL calls. Any fcntl
call with F_FSCTL set and F_SETFL calls generate calls to a new
fileop fo_fcntl. Add genfs_fcntl() and soo_fcntl() which return 0
for F_SETFL and EOPNOTSUPP otherwise. Have all leaf filesystems
use genfs_fcntl().

Reviewed by: thorpej
Tested by: wrstuden

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 8 03:06:57 1998 UTC (28 years, 3 months ago) by eeh
Branches: eeh-paddr_t
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +2 -2 lines
Revert cdevsw mmap routines to return int.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Aug 4 04:03:16 1998 UTC (28 years, 3 months ago) by perry
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2 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.19: download - view: text, markup, annotated - select for diffs
Fri Jul 31 22:50:51 1998 UTC (28 years, 3 months ago) by perry
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Jun 30 05:33:12 1998 UTC (28 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +7 -3 lines
Add two additional arguments to the fileops read and write calls, a
pointer to the offset to use, and a flags word.  Define a flag that
specifies whether or not to update the offset passed by reference.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Apr 25 17:35:18 1998 UTC (28 years, 6 months ago) by matt
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -5 lines
Hook for 0-copy (or other optimized) sends and receives

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:22:32 1998 UTC (28 years, 8 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +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:00 1998 UTC (28 years, 8 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: +8 -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:47 1998 UTC (28 years, 8 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: +23 -19 lines
Import 4.4BSD-Lite for reference

Revision 1.13.6.1: download - view: text, markup, annotated - select for diffs
Wed Dec 11 03:27:57 1996 UTC (29 years, 11 months ago) by mycroft
Branches: netbsd-1-2
CVS tags: netbsd-1-2-PATCH001
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +4 -4 lines
From trunk:
Eliminate SS_PRIV; instead, pass down a proc pointer to the usrreq methods
that need it.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Sep 7 12:41:00 1996 UTC (30 years, 2 months ago) by mycroft
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, thorpej-setroot, netbsd-1-3-base, netbsd-1-3-RELEASE, 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, netbsd-1-3-BETA, netbsd-1-3, mrg-vm-swap, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +28 -31 lines
Implement poll(2).

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed May 22 13:54:55 1996 UTC (30 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4 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.13: download - view: text, markup, annotated - select for diffs
Sat Aug 12 23:59:09 1995 UTC (31 years, 3 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Branch point for: netbsd-1-2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
splnet --> splsoftnet

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Oct 30 21:47:52 1994 UTC (32 years ago) by cgd
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
be more careful with types, also pull in headers where necessary.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:33:08 1994 UTC (32 years, 4 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.10: preferred, colored
Changes since revision 1.10: +3 -2 lines
New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

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

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed May 11 10:27:22 1994 UTC (32 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -3 lines
Minor changes.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed May 11 10:26:49 1994 UTC (32 years, 6 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -4 lines
Minor changes.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Apr 25 08:09:59 1994 UTC (32 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Set the file type correctly for stat().

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

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Dec 18 04:21:41 1993 UTC (32 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:07:17 1993 UTC (33 years 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:36 1993 UTC (33 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:01:56 1993 UTC (33 years, 4 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: +7 -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
Sat May 22 11:41:44 1993 UTC (33 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -2 lines
add include of select.h if necessary for protos, or delete if extraneous

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

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (33 years, 8 months ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, 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 (33 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>