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>
This commit is contained in:
pgoyette 2010-03-19 02:19:13 +00:00
parent 291f4cc576
commit 3a92a7609d
3 changed files with 10 additions and 8 deletions

View File

@ -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 @@ out:
}
/*
* 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;

View File

@ -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_destroy(struct sysmon_envsys *);
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.

View File

@ -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 @@ int sysmon_envsys_sensor_detach(struct sysmon_envsys *, envsys_data_t *);
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);
/*****************************************************************************