The NetBSD Project

CVS log for src/sys/dev/sysmon/sysmonvar.h

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Dec 31 14:44:50 2021 UTC (4 years, 10 months ago) by riastradh
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.52: preferred, colored
Changes since revision 1.52: +3 -1 lines
sysmon(9): Document lock order.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Fri Dec 31 14:30:04 2021 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +11 -6 lines
sysmon(9): Fix callout/thread synchronization.

Callout may ONLY take sme_work_mtx, at IPL_SOFTCLOCK; MUST NOT touch
sme_mtx at IPL_NONE.  All state the callout needs is serialized by
sme_work_mtx now:

- calls to sme_schedule_callout
- calls to sme_schedule_halt
- struct sysmon_envsys::sme_events_timeout
- struct sysmon_envsys::sme_events_list
- struct sysmon_envsys::sme_callout_state
- struct envsys_data::flags
  => yes, this is a little silly -- used for ENVSYS_FNEED_REFRESH
  => should maybe separate the static driver-defined features from
     the state flags needed by sysmon_envsys but not important now

Sleeping under sme_work_mtx (except on other adaptive locks at
IPL_SOFTCLOCK) is forbidden.  Calling out to the driver under
sme_work_mtx is forbidden.

This should properly fix:

https://mail-index.netbsd.org/tech-kern/2015/10/14/msg019511.html
PR kern/56592

Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Dec 31 11:05:41 2021 UTC (4 years, 10 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -4 lines
sysmon: Delete trailing whitespace.  No functional change intended.

Revision 1.43.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:33 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.43.2.1: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.2.1: +35 -8 lines
update from HEAD

Revision 1.49.10.1: download - view: text, markup, annotated - select for diffs
Sat Sep 23 17:22:48 2017 UTC (9 years, 1 month 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, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +7 -2 lines
Pull up following revision(s) (requested by pgoyette in ticket #281):
	sys/dev/sysmon/sysmon_envsys.c: 1.140-1.141
	sys/dev/sysmon/sysmon_envsys_events.c: 1.120-1.121
	sys/dev/sysmon/sysmonvar.h: 1.50
Fixes a problem that some driver(e.g. acpitz(4) or coretemp(5)) which
use sysmon_envsys sleep waiting at "rndsrc" when "drvctl -d".
Don't call rnd_detach_source() in sme_remove_event() which is called
from sme_event_unregister_all(). Instead, call rnd_detach_source() in
sysmon_envsys_sensor_detach() and call sysmon_envsys_sensor_detach()
before sme_event_unregister_sensor(). Each sensor(envsys_data) has each
rnd_src, but some sme_events point to the same rnd_src in a sensor.
Calling rnd_detach_souce() twice with the same rnd_src brokes a reference
count in rnd_src. OK'd by pgoyette@.
--
Improve tracking of the state of an event's callout, and protect all
queries or modifications of the state with the sme_mtx mutex.
Detach the rndsrc before re-attaching it (with potentially new values).
Clean up some lock-ordering issues.
And a couple of KNF issues for good measure!
Should address PR kern/52533

Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Sep 11 06:02:09 2017 UTC (9 years, 2 months ago) by pgoyette
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, 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-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, 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, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, 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
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +7 -2 lines
Improve tracking of the state of an event's callout, and protect all
queries or modifications of the state with the sme_mtx mutex.

Detach the rndsrc before re-attaching it (with potentially new values).

Clean up some lock-ordering issues.

And a couple of KNF issues for good measure!

Should address PR kern/52533

XXX Pullup-8 along with the previous fixes from msaitoh@
XXX http://mail-index.netbsd.org/source-changes/2017/09/06/msg088028.html
~
~

Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:13 2015 UTC (11 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.1: +28 -9 lines
Sync with HEAD

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Apr 23 23:22:03 2015 UTC (11 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, netbsd-8-base, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +23 -4 lines
Modularize sysmon and its components

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Apr 18 14:44:44 2015 UTC (11 years, 7 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -2 lines
use unsigned type for flag bits.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Apr 13 16:33:25 2015 UTC (11 years, 7 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -2 lines
Convert sys/dev to use <sys/rndsource.h>.

Revision 1.44.12.2: download - view: text, markup, annotated - select for diffs
Mon Apr 6 18:45:30 2015 UTC (11 years, 7 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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
Diff to: previous 1.44.12.1: preferred, colored; branchpoint 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44.12.1: +5 -1 lines
Pull up following revision(s) (requested by hannken in ticket #666):
	sys/dev/sysmon/sysmon_envsys.c: revision 1.129
	sys/dev/sysmon/sysmon_envsys_events.c: revision 1.114
	sys/dev/sysmon/sysmonvar.h: revision 1.46
Add a counter of busy events and stop enqueueing more work if a device =
is busy.
Protect this counter with a new short time lock "sme_work_mtx" and
keep "sme_mtx" as long time lock.
Removes a deadlock where an active event holds "sme_mtx", the callout
"sme_events_check" blocks on "sme_mtx" and callout processing stops.

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:13 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -1 lines
Sync with HEAD

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Mar 14 09:52:49 2015 UTC (11 years, 8 months ago) by hannken
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -1 lines
Add a counter of busy events and stop enqueueing more work if a device is busy.
Protect this counter with a new short time lock "sme_work_mtx" and
keep "sme_mtx" as long time lock.

Removes a deadlock where an active event holds "sme_mtx", the callout
"sme_events_check" blocks on "sme_mtx" and callout processing stops.

Revision 1.41.8.1: download - view: text, markup, annotated - select for diffs
Sun Dec 7 15:09:31 2014 UTC (11 years, 11 months ago) by martin
Branches: netbsd-6
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +1 -2 lines
Pull up following revision(s) (requested by ozaki-r in ticket #1201):
	sys/kern/kern_ktrace.c: revision 1.166
	sys/dev/isa/aps.c: revision 1.16
	sys/dev/sysmon/sysmonvar.h: revision 1.45
	sys/dev/ir/irframe_tty.c: revision 1.60
	sys/dev/sysmon/sysmon_envsys_events.c: revision 1.111-1.112 (patch)
	sys/dev/pci/pccbb.c: revision 1.207
	sys/dev/wscons/wskbd.c: revision 1.135
	sys/dev/usb/ohci.c: revision 1.254
	sys/net/if_ecosubr.c: revision 1.41
	sys/dev/pcmcia/btbc.c: revision 1.17
	sys/arch/x86/x86/via_padlock.c: revision 1.23
	sys/dev/sdmmc/sdmmc.c: revision 1.23 (patch)
	sys/dev/bluetooth/btkbd.c: revision 1.17
	sys/dev/bluetooth/bcsp.c: revision 1.25
	sys/arch/x86/pci/fwhrng.c: revision 1.8
	sys/dev/ic/nslm7x.c: revision 1.61
	share/man/man9/callout.9: revision 1.28 (patch)

Replace callout_stop with callout_halt and ensure the callout
is not running before destroying it.

Revision 1.44.12.1: download - view: text, markup, annotated - select for diffs
Mon Dec 1 11:38:42 2014 UTC (11 years, 11 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -2 lines
Pull up following revision(s) (requested by ozaki-r in ticket #279):
	sys/kern/kern_ktrace.c: revision 1.166
	sys/dev/isa/aps.c: revision 1.16
	sys/dev/sysmon/sysmonvar.h: revision 1.45
	sys/dev/ir/irframe_tty.c: revision 1.60
	sys/dev/sysmon/sysmon_envsys_events.c: revision 1.111
	sys/dev/sysmon/sysmon_envsys_events.c: revision 1.112
	sys/dev/pci/pccbb.c: revision 1.207
	sys/dev/wscons/wskbd.c: revision 1.135
	sys/dev/usb/ohci.c: revision 1.254
	sys/net/if_ecosubr.c: revision 1.41
	sys/dev/pcmcia/btbc.c: revision 1.17
	sys/arch/x86/x86/via_padlock.c: revision 1.23
	sys/dev/sdmmc/sdmmc.c: revision 1.23
	sys/dev/bluetooth/btkbd.c: revision 1.17
	sys/dev/bluetooth/bcsp.c: revision 1.25
	sys/arch/x86/pci/fwhrng.c: revision 1.8
	sys/dev/ic/nslm7x.c: revision 1.61
	share/man/man9/callout.9: revision 1.28
Replace callout_stop with callout_halt
In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.
Discussed with martin@ and riastradh@.
Make it clear that we should use not callout_stop but callout_halt
before callout_destroy
Replace callout_stop with callout_halt
In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.
In this case, we need to pass an interlock to callout_halt to wait for
the callout complete.
Reviewed by riastradh@.
Kill sme_callout_mtx and use sme_mtx instead
We can use sme_mtx for the callout as well. Actually we should do so
because sme_events_list and some other data that are touched in the
callout should be protected by sme_mtx, not sme_callout_mtx.
Discussed with riastradh@ in
http://mail-index.netbsd.org/tech-kern/2014/11/11/msg017956.html
Replace callout_stop with callout_halt
In order to call callout_destroy for a callout safely, we have to ensure
the function of the callout is not running and pending. To do so, we should
use callout_halt, not callout_stop.
In this case, we need to pass an interlock to callout_halt to wait for
the callout complete. And also we make sure that SME_CALLOUT_INITIALIZED
is unset before calling callout_halt to prevent the callout from calling
callout_schedule. This is the same as what we did in sys/netinet6/mld6.c@1.61.
Reviewed by riastradh@.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Nov 22 15:00:05 2014 UTC (11 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -2 lines
Kill sme_callout_mtx and use sme_mtx instead

We can use sme_mtx for the callout as well. Actually we should do so
because sme_events_list and some other data that are touched in the
callout should be protected by sme_mtx, not sme_callout_mtx.

Discussed with riastradh@ in http://mail-index.netbsd.org/tech-kern/2014/11/11/msg017956.html

Revision 1.27.16.1: download - view: text, markup, annotated - select for diffs
Sat Feb 15 10:16:32 2014 UTC (12 years, 9 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +4 -3 lines
move sysmon_wdog_setmode prototype to sysmonvar.h

Revision 1.43.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:32 2013 UTC (13 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +23 -6 lines
resync with head

Revision 1.41.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:33 2013 UTC (13 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.41.2.1: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.2.1: +23 -6 lines
sync with (a bit old) head

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:39:06 2012 UTC (13 years, 11 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, 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-7-base, khorben-n900, agc-symver-base, agc-symver
Branch point for: netbsd-7
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +23 -6 lines
Replace a couple of many-line #define with equivalent code loops.

No functional change intended, and atf tests (using swsensor(4)) still
pass 100%

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:03 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +8 -1 lines
sync with head

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Jul 16 13:55:01 2012 UTC (14 years, 4 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -1 lines
Extend previous changes so that even sensors which don't use a refresh()
callback to update the value can be polled to provide rnd(4) entropy.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sun Jul 15 18:33:07 2012 UTC (14 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +7 -1 lines
If a sensor is flagged as capable of providing rnd(4) with entropy,
hook the sensor into rnd subsystem, and make sure we periodically
refresh the sensor whether or not it is being actively monitored.

Revision 1.40.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:09 2011 UTC (15 years, 4 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +3 -3 lines
Catchup with rmind-uvmplock merge.

Revision 1.33.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 12 00:24:26 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.33.2.2: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.2.2: +2 -2 lines
sync with head

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

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Jun 4 13:24:33 2011 UTC (15 years, 5 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-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, 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, netbsd-6
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3 lines
Since nothing actually records or maintains an average sensor value,
remove value_avg from the prop_dict.  We can't completely remove it
because there's one driver that uses this field for its own private
purposes, so for now we just rename the member.

Revision 1.33.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:54:08 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.33.2.1: preferred, colored
Changes since revision 1.33.2.1: +2 -1 lines
sync with head

Revision 1.27.20.1: download - view: text, markup, annotated - select for diffs
Fri Jan 7 02:31:00 2011 UTC (15 years, 10 months ago) by matt
Branches: matt-nb5-pq3
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +2 -1 lines
Allow kernel ticklers to turn themselves on at boot.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Jan 4 01:51:06 2011 UTC (15 years, 10 months ago) by matt
Branches: MAIN
CVS tags: jruoho-x86intr-base, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr, cherry-xenmp
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -1 lines
add support for autostarting watchdogs (wdog was started by firmware
and can't be disabled).  Add critical pool hooks for kernel tickled
watchdogs.

Revision 1.26.4.4: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:12 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.26.4.3: preferred, colored; branchpoint 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.4.3: +13 -2 lines
sync with head.

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

Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:50 2010 UTC (16 years, 6 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +82 -3 lines
Sync with HEAD.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Apr 11 01:12:28 2010 UTC (16 years, 7 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, matt-mips64-premerge-20101231
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +5 -4 lines
Use a typedef to define the prototype of the per-sensor callback.

Update manpage for the prototype, and fix a fubar'd Cross-reference.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Apr 1 12:16:14 2010 UTC (16 years, 7 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -1 lines
Permit creation of an event-monitor for alarm limits even if the limits
are not currently set (and, in case of battery capacity sensors, if there
is no value_max).  Ensure that such an event-monitor does not trigger the
delivery of any actual events.

Provide a mechanism for sensors to set their limits at time other than
system startup (for example, when a battery is inserted).

This allows us to boot a system with a battery missing, install the
battery some time later, and automatically monitor it without requiring
any user intervention to create the event-monitor.  (The actual changes
for battery sensors to use this new capability will come later.)

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Mar 27 13:34:16 2010 UTC (16 years, 7 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -4 lines
Constify the args to sysmon_envsys_foreach_sensor()'s callback function.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Mar 27 13:23:18 2010 UTC (16 years, 7 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -2 lines
Fix the locking protocol in sysmon_envsys_foreach_sensor(), and add an
additional argument to control whether or not the sensors are refreshed
before invoking the callback routine.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Mar 26 20:31:06 2010 UTC (16 years, 7 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -1 lines
Add a routine to iterate over all the sensors on the system.  This will
be needed to update acpiapm_get_powstat() which is currently slightly
broken due to recent rearrangement of acpi_bat(4)'s sensors.  (This
approach is in lieu of exporting proplists between kernel entities, and
avoids exposing some internal sysmon_envsys details.)

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Mar 19 02:19:13 2010 UTC (16 years, 8 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -1 lines
Modify previous commit.  The routine to deliver events is intended to be
exported to device drivers, so rename it and move the declaration to
<dev/sysmon/sysmonvar.h>

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Mar 14 18:03:15 2010 UTC (16 years, 8 months ago) by pgoyette
Branches: MAIN
Branch point for: rmind-uvmplock
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -2 lines
Retire the 'monitor' member of the envsys_data_t.  It was only used in
one place, and functioned as a logical OR of the ENVSYS_FMON* flag bits.

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

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Feb 28 20:04:04 2010 UTC (16 years, 8 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +69 -1 lines
Move definitions of internal data structures and flag bits to avoid
exposing them to user-land.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Feb 14 23:06:02 2010 UTC (16 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
Remove the flags member of the limits structure.  Its value was only
meaningful for a few limited function calls;  all persitent storage
of limit-present flags is maintained in the edata->upropset member.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Jan 31 21:36:38 2010 UTC (16 years, 9 months ago) by martin
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -1 lines
Add a convenience function to find the maximum value currently reported
by a set (selected via a passed callback predicate) of sensors.
This provides an easy way to query the current temperature of a thermal
zone, for example, from within the kernel - assuming the caller knows
the topology.

Revision 1.27.12.1: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:21 2009 UTC (17 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +10 -2 lines
Sync with HEAD.

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

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Jun 14 19:43:12 2009 UTC (17 years, 5 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +5 -3 lines
Ooops - {get,set}_limits() need to be sensor-specific.  Pass an extra
argument to them to identify the individual sensor being processed.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Jun 13 16:08:25 2009 UTC (17 years, 5 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +8 -2 lines
Add capability to send sensor limit values to the driver so they can
be programmed into device registers.  This way we can let the hardware
help us out instead of having to always compare the value against each
limit.  (Driver updates for some sensors to take advantage of this
capability will be forthcoming.)

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

Revision 1.26.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:30 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +2 -1 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.23.6.3: download - view: text, markup, annotated - select for diffs
Thu Jun 5 19:14:35 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.23.6.2: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.6.2: +1 -0 lines
Sync with HEAD.

Also fix build.

Revision 1.26.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.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +2 -1 lines
sync with head

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Jun 3 15:00:57 2008 UTC (18 years, 5 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-nfs-mp-base4, yamt-nfs-mp-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: matt-nb5-pq3, matt-nb5-mips64, jym-xensuspend
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -1 lines
Add SME_POLL_ONLY flag, which informs sme to only refresh the sensor when
it is polled (and not from GTREDATA).

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

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Apr 4 10:10:20 2008 UTC (18 years, 7 months ago) by hannken
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -2 lines
Update includes.  Builds again on sparc64.

Ok: Juan Romero Pardines <xtraeme@netbsd.org>

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

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Apr 1 12:25:30 2008 UTC (18 years, 7 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +12 -3 lines
Introduce per-device locking/synchronization and maintain only a
global mutex for the linked list of devices and the global proplib
dictionary.

This has improved locking contention a lot when multiple devices with
multiple monitoring events are running:

New:

 0.30      35      0.33 sme_global_mtx         sysmonioctl_envsys+28b
 0.10      10      0.11 00000000cd97feac       sysmon_envsys_acquire+4c
 0.08       6      0.09 00000000cd97feac       sme_update_dictionary+24f
 0.01       4      0.01 00000000cd97feac       sme_events_worker+2f
 0.01      10      0.01 00000000cd97fe2c       sysmon_envsys_acquire+4c
 0.00       1      0.00 00000000cd97fe2c       sysmon_envsys_release+3b
28.38      94      9.16 sme_global_mtx         sysmonioctl_envsys+28b
 4.54      74      1.47 00000000cd97fe2c       sysmon_envsys_acquire+4c
 0.06       3      0.02 00000000cd97fe2c       sysmon_envsys_release+3b
 0.03       1      0.01 00000000cd97fe2c       sme_events_worker+2f
 1.40      19      0.45 00000000cd97bee4       sysmon_envsys_acquire+4c

Old:

 4.25     313      4.74 sme_mtx                <all>
 3.12     185      3.49 sme_mtx                sme_events_worker+21
 1.12     128      1.25 sme_mtx                sysmonioctl_envsys+29b
34.75    1423     59.52 sme_mtx                <all>
22.08     477     37.82 sme_mtx                sysmonioctl_envsys+29b
12.67     946     21.70 sme_mtx                sme_events_worker+21

Revision 1.10.16.8: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:39:01 2008 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.16.7: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.16.7: +4 -1 lines
sync with head.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Mar 23 16:09:41 2008 UTC (18 years, 7 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -1 lines
Fix some problems reported by <drochner> a while ago on tech-kern:

sme_events_worker: skip sensors with invalid state.
sme_acadapter_check:

	* use a boolean to check if an SME_CLASS_ACADAPTER was found.
	* Always refresh sensor data before checking value_cur.

Introduce the SME_INIT_REFRESH flag. If a device sets this it will mean
that after interrupts are enabled in the autoconf(9) process, sensor
data will be refreshed once.

Revision 1.10.16.7: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:44:39 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.16.6: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.16.6: +2 -2 lines
sync with head

Revision 1.15.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:54:35 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.15.8.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.8.1: +39 -27 lines
sync with HEAD

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

Revision 1.20.2.3: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:45:28 2007 UTC (18 years, 10 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.20.2.2: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.2: +2 -2 lines
Sync with HEAD.

Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:47:23 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22: +2 -2 lines
Sync with head.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Dec 16 21:07:46 2007 UTC (18 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2 lines
In sysmon_wdog_unregister(), do not return until all of the watchdog
timer's users are gone.  A signal cancels the unregister:
sysmon_wdog_unregister() leaves the watchdog registered.

The only user of sysmon_wdog_unregister() that I can find is in
elansc(4), so this looks like a safe change to make.

Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:59 2007 UTC (18 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.2.1: +1 -2 lines
Sync with HEAD.

Revision 1.10.16.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:31:27 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.16.5: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.16.5: +38 -26 lines
sync with head

Revision 1.15.6.5: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:55:50 2007 UTC (18 years, 11 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.15.6.4: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.6.4: +38 -26 lines
Sync with HEAD.

Revision 1.19.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:19:42 2007 UTC (18 years, 11 months ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.19.2.2: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.2: +1 -2 lines
Sync with HEAD

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Nov 20 17:24:32 2007 UTC (19 years ago) by xtraeme
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, bouyer-xeni386
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -2 lines
After comments from Andrew Doran:

- The mutex for the callout handler must run at IPL_SOFTCLOCK.
- Just stop the callout in sysmon_envsys_unregister() and don't wait
  for the callout to finish.

Revision 1.20.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:48:25 2007 UTC (19 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +39 -26 lines
Sync with HEAD.

Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Sun Nov 18 19:35:43 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.19.2.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.2.1: +38 -25 lines
Sync with HEAD

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Nov 16 08:00:16 2007 UTC (19 years ago) by xtraeme
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +39 -26 lines
Extend the envsys2 API (one more time, sorry) as defined in:

http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html

sysmon_envsys_create() and sysmon_envsys_destroy() were added to
create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events).

sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were
added to attach/detach sensors to a specified sysmon_envsys device.

The events framework is now per device and configurable via the
ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8).

Update all users and documentation to reflect these changes.

Revision 1.10.16.5: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:33 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.16.4: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.16.4: +1 -2 lines
sync with head.

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:01:40 2007 UTC (19 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +1 -2 lines
Sync with HEAD

Revision 1.15.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:30:22 2007 UTC (19 years ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +21 -8 lines
sync with HEAD

Revision 1.15.6.4: download - view: text, markup, annotated - select for diffs
Sun Nov 4 21:03:30 2007 UTC (19 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.15.6.3: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.6.3: +1 -2 lines
Sync with HEAD.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Nov 3 23:25:20 2007 UTC (19 years ago) by xtraeme
Branches: MAIN
CVS tags: jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +1 -2 lines
Remove sysmon_envsys_find() proto, it's defined on sysmon_envsysvar.h.

Revision 1.10.16.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:34:23 2007 UTC (19 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.16.3: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.16.3: +8 -7 lines
sync with head.

Revision 1.15.6.3: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:47:39 2007 UTC (19 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.15.6.2: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.6.2: +7 -1 lines
Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:20 2007 UTC (19 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +7 -1 lines
sync with head.

Revision 1.13.2.4: download - view: text, markup, annotated - select for diffs
Fri Oct 12 17:03:15 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.13.2.3: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.3: +7 -1 lines
Sync with head.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Oct 10 23:25:40 2007 UTC (19 years, 1 month ago) by xtraeme
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base
Branch point for: bouyer-xenamd64
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +7 -1 lines
Fix the problems described in:
http://mail-index.netbsd.org/current-users/2007/07/16/0012.html

- Introduce sme_class into the sysmon_envsys struct to specify a
  class; currently there are two classes: SME_CLASS_ACADAPTER and
  SME_CLASS_BATTERY.

- Add a new envsys event: PENVSYS_EVENT_LOW_POWER that is reached when
  all SME_CLASS_BATTERY devices are in CRITICAL/LOW state and there's not
  any SME_CLASS_ACADAPTER connected.

- Add the 'low-power' event into the sensor_battery script that will
  shutdown the system gracefully via 'shutdown -p'. If powerd(8) is
  not running, cpu_reboot(9) with RB_POWERDOWN is used.

- Make acpiacad(4) a SME_CLASS_ACADAPTER device and acpibat(4) a
  SME_CLASS_BATTERY device.

Update the documentation accordingly to these changes.

Revision 1.13.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:42:07 2007 UTC (19 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.13.2.2: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.2: +15 -7 lines
Sync with head.

Revision 1.15.6.2: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:28:41 2007 UTC (19 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.15.6.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.6.1: +2 -7 lines
Sync with HEAD.

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 10 10:55:25 2007 UTC (19 years, 2 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.1: +2 -7 lines
Sync with HEAD.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Sep 8 00:21:43 2007 UTC (19 years, 2 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -7 lines
- Build unconditionally compatibility code, there's no point to have it
  disabled, because some drivers depend in the old code yet.
- Use a new mutex for sysmon_envsys_next_sensor_index (used in
  compatibility code), otherwise bad things happen with LKMs. Thanks
  to this, the hack for LKMs has been removed.
- Check in advance if the driver doesn't exist already on the list
  before adding the sensors in the dictionary.
- Don't forget to call sme_event_unregister_all() if
  sysmon_envsys_unregister() fails after adding the array into the global
  dictionary or when creating sensors.
- Modify and add some DPRINTFs.

The lm(4) lkm works without known problems registering and unregistering
it multiple times.

Revision 1.15.6.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:48:40 2007 UTC (19 years, 2 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +14 -1 lines
Sync with HEAD.

Revision 1.10.16.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:38:52 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.16.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.16.2: +42 -22 lines
sync with head.

Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:22:01 2007 UTC (19 years, 2 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +14 -1 lines
Sync with HEAD.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Sep 2 00:41:25 2007 UTC (19 years, 2 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -1 lines
Convert the sysmon watchdog framework to use mutex(9) rather than
simple_locks and initialize them on init_main via sysmon_wdog_init().

All the sysmon code now is cleaned up and doesn't use old style locking.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Aug 30 23:46:29 2007 UTC (19 years, 2 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +12 -1 lines
More misc changes for sysmon_envsys(9):

- Add the SLIST for sensor descriptions and sme_uniqsensors into the
  struct sysmon_envsys (it's per device now).
- Use only one common struct with three members for the static tables
  (there's no need to have different structs just for them).
- While initializing/destroying the events framework, use the
  strategy specified by Andrew Doran in:
  http://mail-index.netbsd.org/tech-kern/2007/06/21/0025.html).

(forgot in previous)

Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:21:46 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.1: +27 -18 lines
Sync with head.

Revision 1.13.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:08:26 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +26 -19 lines
Sync with head.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Jul 1 07:37:01 2007 UTC (19 years, 4 months ago) by xtraeme
Branches: MAIN
CVS tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +26 -17 lines
Imported envsys 2, a brief description of the new features:
(Part 1: API)

* Support for detachable sensors.
* Cleaned up the API for simplicity and efficiency.
* Ability to send capacity/critical/warning events to powerd(8).
* Adapted all the code to the new locking order.
* Compatibility with the old envsys API: the ENVSYS_GTREINFO
  and ENVSYS_GTREDATA ioctl(2)s are supported.
* Added support for a 'dictionary based communication channel' between
  sysmon_power(9) and powerd(8), that means there is no 32 bytes event
  size restriction anymore.
* Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40.
* All drivers with the n^2 gtredata bug were fixed, PR kern/36226.

Tested by:

blymn: smsc(4).
bouyer: ipmi(4), mfi(4).
kefren: ug(4).
njoly: viaenv(4), adt7463.c.
riz: owtemp(4).
xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Sun May 27 14:30:28 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -3 lines
Sync with head.

Revision 1.12.10.2: download - view: text, markup, annotated - select for diffs
Thu May 17 13:41:34 2007 UTC (19 years, 6 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.12.10.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.10.1: +1 -3 lines
sync with head.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue May 8 20:04:42 2007 UTC (19 years, 6 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-idlelwp-base8
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -3 lines
Remove duplicate sysmonioctl_envsys() prototype.

Revision 1.12.10.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:57:13 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -5 lines
Sync with HEAD.

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

Revision 1.10.16.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:49:38 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.10.16.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.16.1: +3 -1 lines
sync with head.

Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:55:16 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +3 -1 lines
sync with head

Revision 1.11.8.1: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:45:19 2006 UTC (20 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +3 -1 lines
sync with head

Revision 1.11.16.1: download - view: text, markup, annotated - select for diffs
Thu Jul 13 17:49:43 2006 UTC (20 years, 4 months ago) by gdamore
Branches: gdamore-uart
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +3 -1 lines
Merge from HEAD.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Jul 8 20:26:06 2006 UTC (20 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, rpaulo-netinet-merge-pcb-base, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, 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, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -1 lines
expose the ioctl internal function now used by the acpi_apm code.

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

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:23:56 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, gdamore-uart-base, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb, gdamore-uart
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +15 -14 lines
merge ktrace-lwp.

Revision 1.8.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:33:42 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.8.2.3: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.3: +15 -14 lines
Fix the sync with head I botched.

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

Revision 1.8.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:51:29 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.8.2.1: preferred, colored
Changes since revision 1.8.2.1: +5 -1 lines
Sync with HEAD

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Aug 11 15:07:14 2003 UTC (23 years, 3 months ago) by yamt
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, yamt-km-base2, yamt-km-base, yamt-km, 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, 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, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -2 lines
do wakeup() only when someone is waiting for us.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Aug 11 14:24:41 2003 UTC (23 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -1 lines
introduce SME_FLAG_BUSY and set it during operations
instead of keeping sysmon_envsys_list_slock spinlock held
because some drivers might sleep in sysmon_envsys ops,

XXX sysmon_envsys_lock is now redundant

Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:22 2003 UTC (23 years, 4 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +15 -14 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.8: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:30:51 2003 UTC (23 years, 4 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +13 -14 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:45 2003 UTC (23 years, 4 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +15 -14 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.6: download - view: text, markup, annotated - select for diffs
Fri Apr 18 01:31:35 2003 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +12 -6 lines
* Add a generic power management event API, defined in <sys/power.h>.
  Right now, only power switch state change events are supported.  This
  is a work-in-progress.
* Add support to sysmon for delivering power mangement events to userland.
  Add poll, kqueue, and read entry points to sysmon.
* Adapt ACPI to use the new generic <sys/power.h> event types.

This provides the kernel support for a forthcoming powerd(8) which can
do nice things like gracefully shut the system down when an ACPI power
button is pressed.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Apr 17 01:02:21 2003 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +24 -1 lines
Start at a power management framework for sysmon.  Right now we just
provide some VERY basic support for power/sleep buttons and lid switches;
if someone presses the power button, shut down the system semi-gracefully.

Eventually, we will send events for all types of button/lid events down
to a userland power management daemon, which will be able to define a
separate policy for each button/switch.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Apr 10 18:04:20 2003 UTC (23 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +18 -10 lines
Group things in this file a bit more logically.

Revision 1.3.8.1: download - view: text, markup, annotated - select for diffs
Tue Sep 18 19:13:51 2001 UTC (25 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +7 -7 lines
Various changes to make cloning devices possible:

	* Add an extra argument (struct vnode **) to VOP_OPEN. If it is
	  not NULL, specfs will create a cloned (aliased) vnode during
	  the call, and return it there. The caller should release and
	  unlock the original vnode if a new vnode was returned. The
	  new vnode is returned locked.

	* Add a flag field to the cdevsw and bdevsw structures.
	  DF_CLONING indicates that it wants a new vnode for each
	  open (XXX is there a better way? devprop?)

	* If a device is cloning, always call the close entry
	  point for a VOP_CLOSE.


Also, rewrite cons.c to do the right thing with vnodes. Use VOPs
rather then direct device entry calls. Suggested by mycroft@

Light to moderate testing done an i386 system (arch doesn't matter
though, these are MI changes).

Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:04:55 2000 UTC (25 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.3.2.2: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.2: +32 -1 lines
Sync with HEAD.

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:43:12 2000 UTC (26 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.1: +65 -0 lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.3.2.1
Sun Nov 5 04:06:14 2000 UTC (26 years ago) by bouyer
Branches: thorpej_scsipi
FILE REMOVED
Changes since revision 1.3: +0 -96 lines
file sysmonvar.h was added on branch thorpej_scsipi on 2000-11-20 11:43:12 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Nov 5 04:06:14 2000 UTC (26 years ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf, 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, nathanw_sa_end, nathanw_sa_before_merge, nathanw_sa_base, nathanw_sa, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, kqueue, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Branch point for: thorpej_scsipi, thorpej-devvp
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +14 -1 lines
Split the envsys and watchdog parts of sysmon into their own
files.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Nov 4 18:37:19 2000 UTC (26 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +19 -1 lines
Add a watchog timer framework to the system monitor.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 30 17:54:16 2000 UTC (26 years, 3 months ago) by bouyer
Branches: netbsd-1-5
CVS tags: 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
Diff to: previous 1.1.2.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +65 -0 lines
Pull up (requested by thorpej):
lm_pnpbios.c 1.2->1.3
files 1.374->1.375
nslm7x.c 1.3->1.4
nslm7xvar.h 1.2->1.3
lm_isa.c 1.2->1.3
files.pci 1.96->1.97
viaenv.c 1.2->1.3
sysmon.c 1.1
sysmonvar.h 1.1

Add a clearing-house pseudo-device for system monitoring devices
such as the LM78 and VT82C686A (and eventually ACPI).  Multiple
sensor devices can be hooked registered with `sysmon', and eventually
sysmon will also handle hardware (and software) watchdog timers.

Convert the `lm' and `viaenv' drivers to the new interface.

Revision 1.1.2.1
Sat Jun 24 00:37:20 2000 UTC (26 years, 4 months ago) by bouyer
Branches: netbsd-1-5
FILE REMOVED
Changes since revision 1.1: +0 -65 lines
file sysmonvar.h was added on branch netbsd-1-5 on 2000-07-30 17:54:16 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Jun 24 00:37:20 2000 UTC (26 years, 4 months ago) by thorpej
Branches: MAIN
Branch point for: netbsd-1-5
Add a clearing-house pseudo-device for system monitoring devices
such as the LM78 and VT82C686A (and eventually ACPI).  Multiple
sensor devices can be hooked registered with `sysmon', and eventually
sysmon will also handle hardware (and software) watchdog timers.

Convert the `lm' and `viaenv' drivers to the new interface.

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>