Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon Modify previous commit. The routine to deliv...
details: https://anonhg.NetBSD.org/src/rev/6ac95eda8fb5
branches: trunk
changeset: 753164:6ac95eda8fb5
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri Mar 19 02:19:13 2010 +0000
description:
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>
diffstat:
sys/dev/sysmon/sysmon_envsys_events.c | 10 +++++-----
sys/dev/sysmon/sysmon_envsysvar.h | 3 +--
sys/dev/sysmon/sysmonvar.h | 5 ++++-
3 files changed, 10 insertions(+), 8 deletions(-)
diffs (72 lines):
diff -r e360c2f69fbb -r 6ac95eda8fb5 sys/dev/sysmon/sysmon_envsys_events.c
--- a/sys/dev/sysmon/sysmon_envsys_events.c Fri Mar 19 02:17:41 2010 +0000
+++ b/sys/dev/sysmon/sysmon_envsys_events.c Fri Mar 19 02:19:13 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsys_events.c,v 1.86 2010/03/19 01:16:44 pgoyette Exp $ */
+/* $NetBSD: sysmon_envsys_events.c,v 1.87 2010/03/19 02:19:13 pgoyette Exp $ */
/*-
* Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.86 2010/03/19 01:16:44 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.87 2010/03/19 02:19:13 pgoyette Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -642,14 +642,14 @@
}
/*
- * sme_deliver_typed_event
+ * sysmon_envsys_sensor_event
*
* + Find the monitor event of a particular type for a given sensor
* on a device and deliver the event if one is required.
*/
void
-sme_deliver_typed_event(struct sysmon_envsys *sme, envsys_data_t *edata,
- int ev_type)
+sysmon_envsys_sensor_event(struct sysmon_envsys *sme, envsys_data_t *edata,
+ int ev_type)
{
sme_event_t *see;
diff -r e360c2f69fbb -r 6ac95eda8fb5 sys/dev/sysmon/sysmon_envsysvar.h
--- a/sys/dev/sysmon/sysmon_envsysvar.h Fri Mar 19 02:17:41 2010 +0000
+++ b/sys/dev/sysmon/sysmon_envsysvar.h Fri Mar 19 02:19:13 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmon_envsysvar.h,v 1.33 2010/03/19 01:16:44 pgoyette Exp $ */
+/* $NetBSD: sysmon_envsysvar.h,v 1.34 2010/03/19 02:19:13 pgoyette Exp $ */
/*-
* Copyright (c) 2007, 2008 Juan Romero Pardines.
@@ -131,7 +131,6 @@
void sme_events_check(void *);
void sme_events_worker(struct work *, void *);
void sme_deliver_event(sme_event_t *);
-void sme_deliver_typed_event(struct sysmon_envsys *, envsys_data_t *, int);
/*
* common functions to create/update objects in a dictionary.
diff -r e360c2f69fbb -r 6ac95eda8fb5 sys/dev/sysmon/sysmonvar.h
--- a/sys/dev/sysmon/sysmonvar.h Fri Mar 19 02:17:41 2010 +0000
+++ b/sys/dev/sysmon/sysmonvar.h Fri Mar 19 02:19:13 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysmonvar.h,v 1.33 2010/03/14 18:03:15 pgoyette Exp $ */
+/* $NetBSD: sysmonvar.h,v 1.34 2010/03/19 02:19:13 pgoyette Exp $ */
/*-
* Copyright (c) 2000 Zembu Labs, Inc.
@@ -205,6 +205,9 @@
uint32_t sysmon_envsys_get_max_value(bool (*)(const envsys_data_t*), bool);
+void sysmon_envsys_sensor_event(struct sysmon_envsys *, envsys_data_t *,
+ int);
+
void sysmon_envsys_init(void);
/*****************************************************************************
Home |
Main Index |
Thread Index |
Old Index