Up to [local] / src / sys / sys
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.37 / (download) - annotate - [select for diffs], Wed Jul 15 07:13:57 2020 UTC (3 years, 10 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
HEAD
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)
POWE9 CPUs provide an energy sensor that accumulates the emount of energy used by the processor chip. Although we have a SENSOR_WATTHOUR sensor type its units are not really suitable for this sensor. So add a SENSOR_ENERGY type that uses micro Joules as its unit. ok deraadt@
Revision 1.36 / (download) - annotate - [select for diffs], Mon Dec 10 13:35:54 2018 UTC (5 years, 6 months ago) by landry
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5
Changes since 1.35: +3 -1 lines
Diff to previous 1.35 (colored)
Add a velocity sensor type (displayed as m/s) Change distance sensor type to be displayed as meters with 3 decimals instead of millimeters. ok mpi@ kettenis@
Revision 1.35 / (download) - annotate - [select for diffs], Sat Apr 8 04:06:01 2017 UTC (7 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2
Changes since 1.34: +3 -1 lines
Diff to previous 1.34 (colored)
Sensors are run as callbacks inside tasks. During suspend a sensor could be running inside a driver that will be force-detached, or due to tsleep end up disrupting the softstate/hardstate contract. At suspend time, quisce all these callbacks by waiting for completion. This issue has never been observed for real, but may be implicated in suspend/resume failures. ok kettenis guenther mlarkin
Revision 1.34 / (download) - annotate - [select for diffs], Thu Dec 18 20:30:58 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1,
OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9,
OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.33: +14 -14 lines
Diff to previous 1.33 (colored)
document power capacity units. from david higgs then change everything from mu to u, as more traditional. ok deraadt
Revision 1.33 / (download) - annotate - [select for diffs], Mon Nov 4 02:41:49 2013 UTC (10 years, 7 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.32: +3 -2 lines
Diff to previous 1.32 (colored)
dlg missed the header change in the sensor task commit unbreaks the build
Revision 1.32 / (download) - annotate - [select for diffs], Thu Sep 20 20:11:58 2012 UTC (11 years, 8 months ago) by yuo
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.31: +7 -1 lines
Diff to previous 1.31 (colored)
add more sensor types to sensor framework. - Pressure (10^-3 Pa) - distance (10^-6 m) - acceleration (10^-6 m/s^2) ok deraadt@ reyk@
Revision 1.31 / (download) - annotate - [select for diffs], Fri Sep 16 15:44:31 2011 UTC (12 years, 8 months ago) by yuo
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)
apply following changes to sensor framework: - change accuracy of SENSOR_FREQ from Hz to muHz - add SENSOR_VOLTS_AC entry to userland programs ok deraadt@
Revision 1.30 / (download) - annotate - [select for diffs], Wed Apr 21 19:40:59 2010 UTC (14 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)
scale angle by 1000000 to permit min.sec accuracy
Revision 1.29 / (download) - annotate - [select for diffs], Wed Apr 21 04:07:11 2010 UTC (14 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)
Add the "angle" sensor, measured in degrees; from Luis Pinto
Revision 1.28 / (download) - annotate - [select for diffs], Tue Apr 20 20:49:35 2010 UTC (14 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.27: +3 -5 lines
Diff to previous 1.27 (colored)
Get rid of MAXSENSORDEVICES. Gaps in sensordev lists are now handled by returning ENXIO instead of ENOENT, to essentially indicate hotplug sensor that has gone away. Accessing beyond the end of the sensordev list still returns ENOENT, so that you can see there are no further devices. ok kettenis oga
Revision 1.27 / (download) - annotate - [select for diffs], Tue Apr 20 19:44:07 2010 UTC (14 years, 1 month ago) by oga
Branch: MAIN
Changes since 1.26: +3 -1 lines
Diff to previous 1.26 (colored)
Add "frequency" type for sensors. (and teach userland how to print that type). Measured in Hz. ok deraadt@
Revision 1.26 / (download) - annotate - [select for diffs], Thu Apr 15 04:57:28 2010 UTC (14 years, 1 month ago) by yuo
Branch: MAIN
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)
add SENSOR_HUMIDITY to sensor framework to handle humidity values ok kettenis@ xsa@ sobrado@ krw@ deraadt@
Revision 1.25 / (download) - annotate - [select for diffs], Wed Aug 12 13:21:49 2009 UTC (14 years, 10 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)
Since SENSORS_WATTS now is in muW, say so in the comment.
Revision 1.24 / (download) - annotate - [select for diffs], Sun Jun 24 05:34:35 2007 UTC (16 years, 11 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2
Changes since 1.23: +4 -3 lines
Diff to previous 1.23 (colored)
rework sensor tasks to use the kernels generic workq rather than a special kernel thread of its own. the api has changed (which will be fixed in the manpage shortly) so all the users of sensor tasks that i can find have been fixed too. noone tested, so its going in to force people to run with it. "put it in" deraadt@
Revision 1.23 / (download) - annotate - [select for diffs], Thu Mar 22 16:55:31 2007 UTC (17 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +39 -17 lines
Diff to previous 1.22 (colored)
split userland & kernel struct sensor/sensordev so that the addition of new fields in the future is less disruptive. This is done similar to how struct proc is handled for ps(1). ok jmc (man page changes) tested fkr simon, and more suggestions from millert
Revision 1.22 / (download) - annotate - [select for diffs], Fri Feb 23 22:55:40 2007 UTC (17 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE,
OPENBSD_4_1
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)
add missing copyright; Constantine
Revision 1.21 / (download) - annotate - [select for diffs], Wed Dec 27 13:04:29 2006 UTC (17 years, 5 months ago) by mbalmer
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)
consistent naming of units, percentage -> percent. ok deraadt
Revision 1.20 / (download) - annotate - [select for diffs], Sat Dec 23 17:40:39 2006 UTC (17 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +51 -9 lines
Diff to previous 1.19 (colored)
new sensor api is two level, such that a device (ie. ipmi or lm0) has devices hanging off it; written by Constantine A. Murenin
Revision 1.19 / (download) - annotate - [select for diffs], Wed Nov 29 20:00:22 2006 UTC (17 years, 6 months ago) by mbalmer
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)
Reflect reality in a comment.
Revision 1.18 / (download) - annotate - [select for diffs], Mon Jul 3 21:17:37 2006 UTC (17 years, 11 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE,
OPENBSD_4_0
Changes since 1.17: +5 -6 lines
Diff to previous 1.17 (colored)
Get rid of rfact member of 'struct sensor'; pack the struct while we're there. ok dlg@, deraadt@
Revision 1.17 / (download) - annotate - [select for diffs], Tue Apr 25 03:14:19 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)
add a struct timeval to struct sensor. any sensor which wishes the user to know when it was last adjusted, can set a timestamp in here. if tv_sec is 0, the timestamp is invalid (maintaining the norm); ok dlg kettenis
Revision 1.16 / (download) - annotate - [select for diffs], Thu Apr 20 21:00:20 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)
add SENSOR_TIMEDELTA sensor; ok dlg
Revision 1.15 / (download) - annotate - [select for diffs], Sun Mar 12 13:48:32 2006 UTC (18 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.14: +1 -3 lines
Diff to previous 1.14 (colored)
sensors_head is only used in kern_sensors.c, so its unnecessay to declare it in sensors.h. from Constantine A. Murenin
Revision 1.14 / (download) - annotate - [select for diffs], Sat Jan 28 09:53:37 2006 UTC (18 years, 4 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE,
OPENBSD_3_9
Changes since 1.13: +6 -7 lines
Diff to previous 1.13 (colored)
get rid of the sensors globals. theyre were only used by sysctl for locating and finding the correct sensor to spit out. instead provide a a sensor_get function that wraps up the access to the vars. theyre now safe inside kern_sensors.c. theres also a touch of whitespace tweaking ok grange@
Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 19 17:08:40 2006 UTC (18 years, 4 months ago) by grange
Branch: MAIN
Changes since 1.12: +3 -5 lines
Diff to previous 1.12 (colored)
Replace SENSOR_ADD() macro with a pair of functions sensor_add()/sensor_del() so that sensors can be attached and detached dynamicaly. ok kettenis@ deraadt@ dlg@
Revision 1.12 / (download) - annotate - [select for diffs], Wed Nov 30 15:46:32 2005 UTC (18 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.11: +14 -2 lines
Diff to previous 1.11 (colored)
add a sensor type for drive status and hook esm up with it. ok marco@ grange@ deraadt@
Revision 1.11 / (download) - annotate - [select for diffs], Mon Nov 21 13:47:52 2005 UTC (18 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)
rename the sensor globals to names that are not obvious to avoid collisions with local variable names someone might make. this has bitten me twice now and caused me to lose about 4 hours scratching my head when nsensors just magically corrupts and gets bigger. at least my ram isnt screwed. ok marco@
Revision 1.10 / (download) - annotate - [select for diffs], Tue Nov 15 22:12:07 2005 UTC (18 years, 6 months ago) by kettenis
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)
Add support for light sensors. ok dlg@
Revision 1.9 / (download) - annotate - [select for diffs], Thu Nov 10 08:20:20 2005 UTC (18 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.8: +5 -1 lines
Diff to previous 1.8 (colored)
first go at a generic kthread for sensors to be run out of. its a bit hairy at the moment, but its going into the tree so it can be worked on and used.
Revision 1.8 / (download) - annotate - [select for diffs], Sun Oct 23 13:52:13 2005 UTC (18 years, 7 months ago) by kettenis
Branch: MAIN
Changes since 1.7: +5 -5 lines
Diff to previous 1.7 (colored)
Document units. ok dlg@
Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 5 03:07:41 2005 UTC (18 years, 10 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE,
OPENBSD_3_8
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)
add a sensor type that can report percentage ok deraadt@
Revision 1.6 / (download) - annotate - [select for diffs], Wed Aug 3 14:53:39 2005 UTC (18 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.5: +12 -1 lines
Diff to previous 1.5 (colored)
extend the sensors framework to allow it to report the state of the sensor, not just its value. ok henning@ marco@ deraadt@ beck@ fixes and tweaks grange@
Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 8 05:01:47 2005 UTC (19 years, 2 months ago) by jolan
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)
interger->integer
Revision 1.1.2.3 / (download) - annotate - [select for diffs], Sat Jun 5 23:13:10 2004 UTC (20 years ago) by niklas
Branch: SMP
Changes since 1.1.2.2: +12 -2 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)
Merge with the trunk
Revision 1.1.2.2 / (download) - annotate - [select for diffs], Thu Feb 19 11:01:34 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.1.2.1: +10 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)
Merge of current from two weeks agointo the SMP branch
Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 10 19:53:34 2004 UTC (20 years, 4 months ago) by grange
Branch: MAIN
CVS Tags: SMP_SYNC_B,
SMP_SYNC_A,
OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6,
OPENBSD_3_5_BASE,
OPENBSD_3_5
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)
Add flags field to the sensor structure and an only flag SENSOR_FINVALID which allows to drop information from broken, unwired, disabled, etc sensors. ok hshoexer@
Revision 1.3 / (download) - annotate - [select for diffs], Sat Feb 7 18:20:22 2004 UTC (20 years, 4 months ago) by grange
Branch: MAIN
Changes since 1.2: +11 -3 lines
Diff to previous 1.2 (colored)
Add a few more sensors types like in NetBSD. Not used for now.
Revision 1.2 / (download) - annotate - [select for diffs], Mon Jan 12 14:10:53 2004 UTC (20 years, 5 months ago) by grange
Branch: MAIN
Changes since 1.1: +11 -1 lines
Diff to previous 1.1 (colored)
Move sensors externs to sys/sensors.h and introduce a macro SENSOR_ADD to hide all operations with these externs. ok markus@
Revision 1.1.2.1 / (download) - annotate - [select for diffs], Mon May 12 19:50:24 2003 UTC (21 years, 1 month ago) by ho
Branch: SMP
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
dummy message
Revision 1.1 / (download) - annotate - [select for diffs], Fri Apr 25 20:06:41 2003 UTC (21 years, 1 month ago) by grange
Branch: MAIN
CVS Tags: UBC_SYNC_A,
UBC,
OPENBSD_3_4_BASE,
OPENBSD_3_4
Branch point for: SMP
sysctl front-end for the hardware monitoring sensors. This adds new node hw.sensors; information from the sensors can be obtained via hw.sensors.n, where n is a sensor number. All values are read only for now. Documentation and back-end drivers are comming. Tested by henning@ and millert@. Four oks from henning@ and one from millert@.