The NetBSD Project

CVS log for src/sys/dev/putter/putter.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Sep 26 01:16:09 2021 UTC (5 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, 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, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3 lines
Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.

This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.

NetBSD 9.99.89

Revision 1.37.18.1: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:35:01 2021 UTC (5 years, 10 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +4 -6 lines
Sync w/ HEAD.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Dec 18 02:54:34 2020 UTC (5 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -6 lines
Use sel{record,remove}_knote().

Revision 1.33.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:31 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
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: +7 -2 lines
update from HEAD

Revision 1.37: 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, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes, 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.36: preferred, colored
Changes since revision 1.36: +3 -2 lines
add fo_name so we can identify the fileops in a simple way.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Oct 25 08:12:38 2017 UTC (9 years ago) by maya
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +8 -4 lines
Use C99 initializer for filterops

Mostly done with spatch with touchups for indentation

@@
expression a;
identifier b,c,d;
identifier p;
@@
const struct filterops p =
- 	{ a, b, c, d
+ 	{
+ 	.f_isfd = a,
+ 	.f_attach = b,
+ 	.f_detach = c,
+ 	.f_event = d,
};

Revision 1.35.18.2: download - view: text, markup, annotated - select for diffs
Sat Apr 29 11:12:14 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.35.18.1: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.18.1: +2 -3 lines
Remove more unnecessary #include for sys/localcount.h

Revision 1.35.18.1: download - view: text, markup, annotated - select for diffs
Thu Apr 27 05:36:36 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -2 lines
Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita.  There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.

Revision 1.35.8.3: download - view: text, markup, annotated - select for diffs
Tue Jul 26 05:54:39 2016 UTC (10 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.35.8.2: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.8.2: +3 -3 lines
Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT.  This better describes
what we're doing, and why.

Revision 1.35.8.2: download - view: text, markup, annotated - select for diffs
Tue Jul 19 06:26:59 2016 UTC (10 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.35.8.1: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.8.1: +3 -8 lines
Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it.  This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@

Revision 1.35.8.1: download - view: text, markup, annotated - select for diffs
Mon Jul 18 06:25:40 2016 UTC (10 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +10 -2 lines
Another devsw needing a localcount when built as a module.

Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:49 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +14 -5 lines
Rebase to HEAD as of a few days ago.

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

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:38 2014 UTC (12 years, 3 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-8-base, netbsd-8-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, netbsd-8, 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, 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: prg-localcount2, pgoyette-localcount
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -2 lines
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.32.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:35 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.32.2.1: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.2.1: +13 -5 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.33.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:46 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +13 -5 lines
sync with head

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:28 2014 UTC (12 years, 8 months ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +13 -5 lines
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:59 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -2 lines
sync with head

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Jul 26 10:13:33 2012 UTC (14 years, 3 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -2 lines
fix request leak.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Jul 23 14:28:28 2011 UTC (15 years, 3 months ago) by hannken
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -2 lines
putter_fop_stat(): set st_mode to S_IFCHR.

Fixes PR #44807: something broken in stat(2).

Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:08:31 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +2 -2 lines
Sync with HEAD.

Revision 1.27.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:54:02 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.27.4.1: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.4.1: +3 -2 lines
sync with head

Revision 1.29.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:19:54 2011 UTC (15 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +2 -2 lines
Sync with HEAD

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Feb 6 14:29:25 2011 UTC (15 years, 9 months ago) by haad
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
Revert my fix.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Feb 6 01:28:16 2011 UTC (15 years, 9 months ago) by haad
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
Putter depends on puffs add missing dependience.

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

Revision 1.9.4.4: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:23 2010 UTC (16 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.9.4.3: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.4.3: +3 -2 lines
sync with head

Revision 1.29: download - view: text, markup, annotated - select for diffs
Fri Aug 27 07:40:01 2010 UTC (16 years, 2 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -2 lines
waiters gonna wait, so call seldestroy to wake them up when we go south

Revision 1.9.4.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:08 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.9.4.2: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.2: +4 -3 lines
sync with head.

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

Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:46 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -3 lines
Sync with HEAD.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Apr 11 09:36:47 2010 UTC (16 years, 7 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -3 lines
Call putterattach in modcmd init.  Fixes lockdebug panic.  Disable
unload, since putterdetach() is not implemented (i.e. current
implementation of modcmd fini is flawed), and I don't plan to fix
that now.

Revision 1.9.4.2: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:01 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.9.4.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.4.1: +9 -8 lines
sync with head

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Jan 28 18:12:55 2010 UTC (16 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -6 lines
Adjust some comments which were written when this was still a part of puffs.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Dec 20 09:36:05 2009 UTC (16 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3 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.25: 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.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
Rename fo_drain() to fo_abort(), 'drain' is used to mean 'wait for output
do drain' in many places, whereas fo_drain() was called in order to force
blocking read()/write() etc calls to return to userspace so that a close()
call from a different thread can complete.
In the sockets code comment out the broken code in the inner function,
it was being called from compat code.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Dec 7 13:41:44 2009 UTC (16 years, 11 months ago) by pooka
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
Mark putter as MODULE_CLASS_DRIVER to make it autoloadable.  This
fixes autoloading of puffs upon mount.

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

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

Revision 1.9.4.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:15 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +124 -36 lines
sync with head.

Revision 1.16.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:36:26 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.16.2.2: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.2.2: +56 -27 lines
Sync with HEAD.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Apr 11 23:05:26 2009 UTC (17 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-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.22: preferred, colored
Changes since revision 1.22: +7 -4 lines
Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Apr 11 15:47:33 2009 UTC (17 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +43 -18 lines
Fix PR/37878 and PR/37550: Provide stat(2) for all devices and don't use
fbadop_stat.

Revision 1.16.4.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
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.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +11 -10 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.21: 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.20: preferred, colored
Changes since revision 1.20: +11 -10 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.20: download - view: text, markup, annotated - select for diffs
Wed Mar 18 10:22:41 2009 UTC (17 years, 8 months ago) by cegger
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -4 lines
Ansify function definitions w/o arguments. Generated with sed.

Revision 1.16.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:31:51 2009 UTC (17 years, 8 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.16.2.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.1: +3 -3 lines
Sync with HEAD.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Jan 20 18:20:48 2009 UTC (17 years, 9 months ago) by drochner
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
Change major()/minor() to return 32-bit types again, called
devmajor_t/devminor_t, as proposed on tech-kern.
This avoids 64-bit arithmetics and 64-bit printf formats in parts
of the kernel where it is not really useful, and helps clarity.

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

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Dec 29 17:52:43 2008 UTC (17 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +6 -0 lines
Actually, revert previous - I doubt it would work with a non-rump kernel.
The filthy #ifdef _MODULE lives to stink another day.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Dec 29 17:47:08 2008 UTC (17 years, 10 months ago) by pooka
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -8 lines
die filthy #ifdef _MODULE, die!

Revision 1.14.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:03 2008 UTC (18 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +3 -5 lines
Sync with HEAD.

Revision 1.7.8.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:30 2008 UTC (18 years, 1 month ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.7.8.2: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.8.2: +1 -3 lines
Sync with HEAD.

Revision 1.9.6.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:10 2008 UTC (18 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.9.6.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.6.1: +3 -5 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Aug 8 13:02:10 2008 UTC (18 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3 lines
KASSERT works better with == instead of =

Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Mon Jul 28 14:37:27 2008 UTC (18 years, 3 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +2 -4 lines
Sync with head.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Jul 21 10:40:37 2008 UTC (18 years, 4 months ago) by pooka
Branches: MAIN
CVS tags: simonb-wapbl-nbase, simonb-wapbl-base
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -4 lines
Repeat after me: do not pollute sys with #ifdef _RUMPKERNEL

Revision 1.9.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:26 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +71 -10 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:19 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +71 -10 lines
sync with head

Revision 1.7.8.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:48 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.7.8.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.8.1: +69 -8 lines
Sync with HEAD.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri May 30 11:24:57 2008 UTC (18 years, 5 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl, haad-dm
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +8 -2 lines
Don't call devsw_attach/detach if _MODULE is not defined.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed May 21 14:03:31 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +44 -10 lines
Acquire kernel_lock in putter's fileops.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon May 19 19:52:09 2008 UTC (18 years, 6 months ago) by jmcneill
Branches: MAIN
CVS tags: hpcarm-cleanup-nbase
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -2 lines
Don't build as module if _RUMPKERNEL is defined.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon May 19 17:15:34 2008 UTC (18 years, 6 months ago) by ad
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -4 lines
Return result of devsw_detach().

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon May 19 16:59:55 2008 UTC (18 years, 6 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +22 -2 lines
Support building putter as a module.

Revision 1.7.8.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:54 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +23 -23 lines
Sync with HEAD.

Revision 1.4.4.6: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:39:00 2008 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.4.5: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.5: +22 -22 lines
sync with head.

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

Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:51 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.7.2.2: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.2: +3 -3 lines
sync with HEAD

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:54:59 2008 UTC (18 years, 8 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +22 -22 lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

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

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Mar 1 14:16:50 2008 UTC (18 years, 8 months ago) by rmind
Branches: MAIN
CVS tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 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.4.6.4: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:20 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.4.6.3: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.6.3: +3 -3 lines
Sync with HEAD.

Revision 1.4.4.4: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:44:29 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.4.3: preferred, colored
Changes since revision 1.4.4.3: +3 -3 lines
sync with head

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:54:20 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.1: +579 -0 lines
sync with HEAD

Revision 1.6.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:55:08 2008 UTC (18 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +3 -3 lines
Sync with HEAD

Revision 1.7.2.1
Wed Jan 2 05:27:21 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
FILE REMOVED
Changes since revision 1.7: +0 -579 lines
file putter.c was added on branch matt-armv6 on 2008-01-09 01:54:20 +0000

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jan 2 05:27:21 2008 UTC (18 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, matt-armv6, keiichi-mipv6
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
unstaticate putterdebug

Revision 1.4.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:37:56 2007 UTC (18 years, 11 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.4.2.3: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.3: +20 -14 lines
Sync with HEAD.

Revision 1.4.6.3: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:52 2007 UTC (18 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.4.6.2: preferred, colored
Changes since revision 1.4.6.2: +84 -19 lines
Sync with HEAD.

Revision 1.4.4.3: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:31:02 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.4.2: preferred, colored
Changes since revision 1.4.4.2: +84 -19 lines
sync with head

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Dec 3 15:24:06 2007 UTC (18 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +20 -14 lines
Allow EVFILT_WRITE kqfilters to be registered and map them to
seltrue_filtops.

Revision 1.4.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:55:45 2007 UTC (18 years, 11 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.2.2: preferred, colored
Changes since revision 1.4.2.2: +66 -7 lines
Sync with HEAD.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Nov 20 18:35:22 2007 UTC (19 years ago) by pooka
Branches: MAIN
CVS tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +66 -7 lines
Allow to register configuration routines to putter.  Once a
configuration routine has been attached to the putter device minor
number, the configuration routine will be called when the device
is opened.  This is required for subsystems which enter the kernel
only through the file descriptor and cannot configure themselves
via another route (like puffs does via the mount() syscall).  Keep
the minor number 0 for "wildcard" uses where we do not require a
hardwired config routine (e.g. the puffs case).

Revision 1.4.6.2: download - view: text, markup, annotated - select for diffs
Mon Nov 19 19:58:40 2007 UTC (19 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.4.6.1: preferred, colored
Changes since revision 1.4.6.1: +514 -0 lines
Try to fix sync botch.

Revision 1.4.4.2: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:29 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.4.1: preferred, colored
Changes since revision 1.4.4.1: +514 -0 lines
sync with head.

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:04:33 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.2.1: preferred, colored
Changes since revision 1.4.2.1: +514 -0 lines
Sync with HEAD.

Revision 1.4.6.1
Tue Nov 13 13:11:51 2007 UTC (19 years ago) by mjf
Branches: mjf-devfs
FILE REMOVED
Changes since revision 1.4: +0 -514 lines
file putter.c was added on branch mjf-devfs on 2007-11-19 19:58:40 +0000

Revision 1.4.4.1
Tue Nov 13 13:11:51 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.4: +0 -514 lines
file putter.c was added on branch yamt-lazymbuf on 2007-11-15 11:44:29 +0000

Revision 1.4.2.1
Tue Nov 13 13:11:51 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
FILE REMOVED
Changes since revision 1.4: +0 -514 lines
file putter.c was added on branch jmcneill-pm on 2007-11-14 19:04:33 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Nov 13 13:11:51 2007 UTC (19 years ago) by pooka
Branches: MAIN
Branch point for: yamt-lazymbuf, mjf-devfs, jmcneill-pm
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -21 lines
Don't specialcase minor device, treat all minors the same.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Nov 12 17:42:13 2007 UTC (19 years ago) by pooka
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -3 lines
Bounds-check responses from userspace.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Nov 12 16:39:33 2007 UTC (19 years ago) by pooka
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +16 -16 lines
* split the putter header into a kernel version and a userland version
  + install latter to /usr/include/dev/putter
* remove last dependencies to puffs from putter, it's completely
  independent now

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 14:30:56 2007 UTC (19 years ago) by pooka
Branches: MAIN
Move putter code from directly under dev/ to dev/putter/

no functional change

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>