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


Default branch: MAIN


Revision 1.40.6.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:09 2011 UTC (11 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:26 2011 UTC (11 months, 2 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33.2.2: +2 -2 lines
Diff to previous 1.33.2.2 (colored) next main 1.34 (colored)

sync with head

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:39 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Sync with HEAD.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Jun 4 13:24:33 2011 UTC (11 months, 3 weeks ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6, 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-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, HEAD
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

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) - annotate - [select for diffs], Sat Mar 5 20:54:08 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33.2.1: +2 -1 lines
Diff to previous 1.33.2.1 (colored)

sync with head

Revision 1.27.20.1 / (download) - annotate - [select for diffs], Fri Jan 7 02:31:00 2011 UTC (16 months, 2 weeks ago) by matt
Branch: matt-nb5-pq3
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Allow kernel ticklers to turn themselves on at boot.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jan 4 01:51:06 2011 UTC (16 months, 3 weeks ago) by matt
Branch: MAIN
CVS Tags: jruoho-x86intr-base, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr, cherry-xenmp
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

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) - annotate - [select for diffs], Wed Aug 11 22:54:12 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.26.4.3: +13 -2 lines
Diff to previous 1.26.4.3 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored)

sync with head.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:43 2010 UTC (23 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.33: +11 -1 lines
Diff to previous 1.33 (colored)

sync with head

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:50 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.30: +82 -3 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Apr 11 01:12:28 2010 UTC (2 years, 1 month ago) by pgoyette
Branch: 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
Changes since 1.38: +5 -4 lines
Diff to previous 1.38 (colored)

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) - annotate - [select for diffs], Thu Apr 1 12:16:14 2010 UTC (2 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.37: +3 -1 lines
Diff to previous 1.37 (colored)

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) - annotate - [select for diffs], Sat Mar 27 13:34:16 2010 UTC (2 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

Constify the args to sysmon_envsys_foreach_sensor()'s callback function.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Mar 27 13:23:18 2010 UTC (2 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored)

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) - annotate - [select for diffs], Fri Mar 26 20:31:06 2010 UTC (2 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.34: +4 -1 lines
Diff to previous 1.34 (colored)

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) - annotate - [select for diffs], Fri Mar 19 02:19:13 2010 UTC (2 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.33: +4 -1 lines
Diff to previous 1.33 (colored)

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) - annotate - [select for diffs], Sun Mar 14 18:03:15 2010 UTC (2 years, 2 months ago) by pgoyette
Branch: MAIN
Branch point for: rmind-uvmplock
Changes since 1.32: +3 -2 lines
Diff to previous 1.32 (colored)

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) - annotate - [select for diffs], Thu Mar 11 15:04:04 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.26.4.2: +73 -3 lines
Diff to previous 1.26.4.2 (colored) to branchpoint 1.26 (colored)

sync with head

Revision 1.32 / (download) - annotate - [select for diffs], Sun Feb 28 20:04:04 2010 UTC (2 years, 2 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Changes since 1.31: +69 -1 lines
Diff to previous 1.31 (colored)

Move definitions of internal data structures and flag bits to avoid
exposing them to user-land.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Feb 14 23:06:02 2010 UTC (2 years, 3 months ago) by pgoyette
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

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) - annotate - [select for diffs], Sun Jan 31 21:36:38 2010 UTC (2 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.29: +3 -1 lines
Diff to previous 1.29 (colored)

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) - annotate - [select for diffs], Thu Jul 23 23:32:21 2009 UTC (2 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.27: +10 -2 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD.

Revision 1.26.4.2 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:29 2009 UTC (2 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.26.4.1: +10 -2 lines
Diff to previous 1.26.4.1 (colored) to branchpoint 1.26 (colored)

sync with head

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jun 14 19:43:12 2009 UTC (2 years, 11 months ago) by pgoyette
Branch: 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
Changes since 1.28: +5 -3 lines
Diff to previous 1.28 (colored)

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) - annotate - [select for diffs], Sat Jun 13 16:08:25 2009 UTC (2 years, 11 months ago) by pgoyette
Branch: MAIN
Changes since 1.27: +8 -2 lines
Diff to previous 1.27 (colored)

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) - annotate - [select for diffs], Mon May 4 08:13:19 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

sync with head.

Revision 1.26.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:30 2008 UTC (3 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.23.6.3 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:35 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.23.6.2: +1 -0 lines
Diff to previous 1.23.6.2 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

Sync with HEAD.

Also fix build.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:19 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

sync with head

Revision 1.27 / (download) - annotate - [select for diffs], Tue Jun 3 15:00:57 2008 UTC (3 years, 11 months ago) by jmcneill
Branch: 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-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, 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-nb5-mips64, 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, jym-xensuspend
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

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) - annotate - [select for diffs], Mon Jun 2 13:23:52 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.23.6.1: +2 -1 lines
Diff to previous 1.23.6.1 (colored) to branchpoint 1.23 (colored)

Sync with HEAD.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Apr 4 10:10:20 2008 UTC (4 years, 1 month ago) by hannken
Branch: 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
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

Update includes.  Builds again on sparc64.

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

Revision 1.23.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:57 2008 UTC (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.23: +15 -3 lines
Diff to previous 1.23 (colored)

Sync with HEAD.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Apr 1 12:25:30 2008 UTC (4 years, 1 month ago) by xtraeme
Branch: MAIN
Changes since 1.24: +12 -3 lines
Diff to previous 1.24 (colored)

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) - annotate - [select for diffs], Mon Mar 24 09:39:01 2008 UTC (4 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.16.7: +4 -1 lines
Diff to previous 1.10.16.7 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Mar 23 16:09:41 2008 UTC (4 years, 2 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored)

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) - annotate - [select for diffs], Mon Jan 21 09:44:39 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.16.6: +2 -2 lines
Diff to previous 1.10.16.6 (colored) to branchpoint 1.10 (colored)

sync with head

Revision 1.15.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:35 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.15.8.1: +39 -27 lines
Diff to previous 1.15.8.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

sync with HEAD

Revision 1.22.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:16 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Sync with HEAD

Revision 1.20.2.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:45:28 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.20.2.2: +2 -2 lines
Diff to previous 1.20.2.2 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Sync with HEAD.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:47:23 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Dec 16 21:07:46 2007 UTC (4 years, 5 months ago) by dyoung
Branch: 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
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

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) - annotate - [select for diffs], Sat Dec 8 18:19:59 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.20.2.1: +1 -2 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored)

Sync with HEAD.

Revision 1.10.16.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:31:27 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.16.5: +38 -26 lines
Diff to previous 1.10.16.5 (colored) to branchpoint 1.10 (colored)

sync with head

Revision 1.15.6.5 / (download) - annotate - [select for diffs], Wed Nov 21 21:55:50 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.15.6.4: +38 -26 lines
Diff to previous 1.15.6.4 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Sync with HEAD.

Revision 1.19.2.3 / (download) - annotate - [select for diffs], Wed Nov 21 21:19:42 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.19.2.2: +1 -2 lines
Diff to previous 1.19.2.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Sync with HEAD

Revision 1.22 / (download) - annotate - [select for diffs], Tue Nov 20 17:24:32 2007 UTC (4 years, 6 months ago) by xtraeme
Branch: 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
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

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) - annotate - [select for diffs], Mon Nov 19 00:48:25 2007 UTC (4 years, 6 months ago) by mjf
Branch: mjf-devfs
Changes since 1.20: +39 -26 lines
Diff to previous 1.20 (colored)

Sync with HEAD.

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Sun Nov 18 19:35:43 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.19.2.1: +38 -25 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored)

Sync with HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Fri Nov 16 08:00:16 2007 UTC (4 years, 6 months ago) by xtraeme
Branch: MAIN
Changes since 1.20: +39 -26 lines
Diff to previous 1.20 (colored)

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) - annotate - [select for diffs], Thu Nov 15 11:44:33 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.16.4: +1 -2 lines
Diff to previous 1.10.16.4 (colored) to branchpoint 1.10 (colored)

sync with head.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:40 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored)

Sync with HEAD

Revision 1.15.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:30:22 2007 UTC (4 years, 6 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.15: +21 -8 lines
Diff to previous 1.15 (colored)

sync with HEAD

Revision 1.15.6.4 / (download) - annotate - [select for diffs], Sun Nov 4 21:03:30 2007 UTC (4 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.15.6.3: +1 -2 lines
Diff to previous 1.15.6.3 (colored) to branchpoint 1.15 (colored)

Sync with HEAD.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Nov 3 23:25:20 2007 UTC (4 years, 6 months ago) by xtraeme
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored)

Remove sysmon_envsys_find() proto, it's defined on sysmon_envsysvar.h.

Revision 1.10.16.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:34:23 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.16.3: +8 -7 lines
Diff to previous 1.10.16.3 (colored) to branchpoint 1.10 (colored)

sync with head.

Revision 1.15.6.3 / (download) - annotate - [select for diffs], Fri Oct 26 15:47:39 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.15.6.2: +7 -1 lines
Diff to previous 1.15.6.2 (colored) to branchpoint 1.15 (colored)

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) - annotate - [select for diffs], Sun Oct 14 11:48:20 2007 UTC (4 years, 7 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.18: +7 -1 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

sync with head.

Revision 1.13.2.4 / (download) - annotate - [select for diffs], Fri Oct 12 17:03:15 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.13.2.3: +7 -1 lines
Diff to previous 1.13.2.3 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

Sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 10 23:25:40 2007 UTC (4 years, 7 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.18: +7 -1 lines
Diff to previous 1.18 (colored)

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) - annotate - [select for diffs], Tue Oct 9 13:42:07 2007 UTC (4 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.13.2.2: +15 -7 lines
Diff to previous 1.13.2.2 (colored) to branchpoint 1.13 (colored)

Sync with head.

Revision 1.15.6.2 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:41 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.15.6.1: +2 -7 lines
Diff to previous 1.15.6.1 (colored) to branchpoint 1.15 (colored)

Sync with HEAD.

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Mon Sep 10 10:55:25 2007 UTC (4 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.15.2.1: +2 -7 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Sync with HEAD.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Sep 8 00:21:43 2007 UTC (4 years, 8 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Changes since 1.17: +2 -7 lines
Diff to previous 1.17 (colored)

- 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) - annotate - [select for diffs], Mon Sep 3 16:48:40 2007 UTC (4 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.15: +14 -1 lines
Diff to previous 1.15 (colored)

Sync with HEAD.

Revision 1.10.16.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:38:52 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.16.2: +42 -22 lines
Diff to previous 1.10.16.2 (colored) to branchpoint 1.10 (colored)

sync with head.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:22:01 2007 UTC (4 years, 8 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.15: +14 -1 lines
Diff to previous 1.15 (colored)

Sync with HEAD.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Sep 2 00:41:25 2007 UTC (4 years, 8 months ago) by xtraeme
Branch: MAIN
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

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) - annotate - [select for diffs], Thu Aug 30 23:46:29 2007 UTC (4 years, 8 months ago) by xtraeme
Branch: MAIN
Changes since 1.15: +12 -1 lines
Diff to previous 1.15 (colored)

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) - annotate - [select for diffs], Sun Jul 15 13:21:46 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.13.2.1: +27 -18 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored)

Sync with head.

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:26 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.13: +26 -19 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

Sync with head.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jul 1 07:37:01 2007 UTC (4 years, 10 months ago) by xtraeme
Branch: 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
Changes since 1.14: +26 -17 lines
Diff to previous 1.14 (colored)

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) - annotate - [select for diffs], Sun May 27 14:30:28 2007 UTC (5 years ago) by ad
Branch: vmlocking
Changes since 1.13: +1 -3 lines
Diff to previous 1.13 (colored)

Sync with head.

Revision 1.12.10.2 / (download) - annotate - [select for diffs], Thu May 17 13:41:34 2007 UTC (5 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.12.10.1: +1 -3 lines
Diff to previous 1.12.10.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

sync with head.

Revision 1.14 / (download) - annotate - [select for diffs], Tue May 8 20:04:42 2007 UTC (5 years ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.13: +1 -3 lines
Diff to previous 1.13 (colored)

Remove duplicate sysmonioctl_envsys() prototype.

Revision 1.12.10.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:57:13 2007 UTC (5 years, 2 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)

Sync with HEAD.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:45 2007 UTC (5 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.10.16.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:38 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10.16.1: +3 -1 lines
Diff to previous 1.10.16.1 (colored) to branchpoint 1.10 (colored)

sync with head.

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:55:16 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

sync with head

Revision 1.11.8.1 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:19 2006 UTC (5 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

sync with head

Revision 1.11.16.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:43 2006 UTC (5 years, 10 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Merge from HEAD.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jul 8 20:26:06 2006 UTC (5 years, 10 months ago) by christos
Branch: 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
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored)

expose the ioctl internal function now used by the acpi_apm code.

Revision 1.10.16.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:07:30 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.10: +15 -14 lines
Diff to previous 1.10 (colored)

sync with head.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 11 12:23:56 2005 UTC (6 years, 5 months ago) by christos
Branch: 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
Changes since 1.10: +15 -14 lines
Diff to previous 1.10 (colored)

merge ktrace-lwp.

Revision 1.8.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:33:42 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.3: +15 -14 lines
Diff to previous 1.8.2.3 (colored) next main 1.9 (colored)

Fix the sync with head I botched.

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:51:34 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.2: +14 -15 lines
Diff to previous 1.8.2.2 (colored)

Sync with HEAD.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:29 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.8.2.1: +5 -1 lines
Diff to previous 1.8.2.1 (colored)

Sync with HEAD

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 11 15:07:14 2003 UTC (8 years, 9 months ago) by yamt
Branch: 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, matt-timespec, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

do wakeup() only when someone is waiting for us.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 11 14:24:41 2003 UTC (8 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored)

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) - annotate - [select for diffs], Wed Jul 2 15:26:22 2003 UTC (8 years, 10 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.8: +15 -14 lines
Diff to previous 1.8 (colored)

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) - annotate - [select for diffs], Sun Jun 29 22:30:51 2003 UTC (8 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.7: +13 -14 lines
Diff to previous 1.7 (colored)

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) - annotate - [select for diffs], Sat Jun 28 14:21:45 2003 UTC (8 years, 11 months ago) by darrenr
Branch: MAIN
Changes since 1.6: +15 -14 lines
Diff to previous 1.6 (colored)

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) - annotate - [select for diffs], Fri Apr 18 01:31:35 2003 UTC (9 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.5: +12 -6 lines
Diff to previous 1.5 (colored)

* 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) - annotate - [select for diffs], Thu Apr 17 01:02:21 2003 UTC (9 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.4: +24 -1 lines
Diff to previous 1.4 (colored)

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) - annotate - [select for diffs], Thu Apr 10 18:04:20 2003 UTC (9 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.3: +18 -10 lines
Diff to previous 1.3 (colored)

Group things in this file a bit more logically.

Revision 1.3.8.1 / (download) - annotate - [select for diffs], Tue Sep 18 19:13:51 2001 UTC (10 years, 8 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.3: +7 -7 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

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) - annotate - [select for diffs], Wed Nov 22 16:04:55 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.3.2.2: +32 -1 lines
Diff to previous 1.3.2.2 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Sync with HEAD.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Mon Nov 20 11:43:12 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.3.2.1: +65 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored)

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 (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.3: +0 -96 lines
FILE REMOVED

file sysmonvar.h was added on branch thorpej_scsipi on 2000-11-20 11:43:12 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Sun Nov 5 04:06:14 2000 UTC (11 years, 6 months ago) by thorpej
Branch: 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, ifpoll, 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
Changes since 1.2: +14 -1 lines
Diff to previous 1.2 (colored)

Split the envsys and watchdog parts of sysmon into their own
files.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Nov 4 18:37:19 2000 UTC (11 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +19 -1 lines
Diff to previous 1.1 (colored)

Add a watchog timer framework to the system monitor.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sun Jul 30 17:54:16 2000 UTC (11 years, 9 months ago) by bouyer
Branch: 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
Changes since 1.1.2.1: +65 -0 lines
Diff to previous 1.1.2.1 (colored) next main 1.2 (colored)

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 (11 years, 11 months ago) by bouyer
Branch: netbsd-1-5
Changes since 1.1: +0 -65 lines
FILE REMOVED

file sysmonvar.h was added on branch netbsd-1-5 on 2000-07-30 17:54:16 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jun 24 00:37:20 2000 UTC (11 years, 11 months ago) by thorpej
Branch: 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.

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>