Date: Tue, 7 Aug 2007 00:30:35 GMT From: "Constantine A. Murenin" <cnst@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 124787 for review Message-ID: <200708070030.l770UZ4f074257@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124787 Change 124787 by cnst@dale on 2007/08/07 00:30:22 sensordev_get(9)/sensor_find(9) are only used for sysctl(3) glue code, and on FreeBSD it is all located in kern_sensors.c, so no need to put prototypes in <sys/sensors.h>. Affected files ... .. //depot/projects/soc2007/cnst-sensors/sys.kern/kern_sensors.c#7 edit .. //depot/projects/soc2007/cnst-sensors/sys.sys/sensors.h#2 edit Differences ... ==== //depot/projects/soc2007/cnst-sensors/sys.kern/kern_sensors.c#7 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $P4: //depot/projects/soc2007/cnst-sensors/sys.kern/kern_sensors.c#6 $ */ +/* $P4: //depot/projects/soc2007/cnst-sensors/sys.kern/kern_sensors.c#7 $ */ /* $FreeBSD$ */ /* $OpenBSD: kern_sensors.c,v 1.19 2007/06/04 18:42:05 deraadt Exp $ */ /* $OpenBSD: kern_sysctl.c,v 1.154 2007/06/01 17:29:10 beck Exp $ */ @@ -38,6 +38,9 @@ int sensordev_count = 0; SLIST_HEAD(, ksensordev) sensordev_list = SLIST_HEAD_INITIALIZER(sensordev_list); +struct ksensordev *sensordev_get(int); +struct ksensor *sensor_find(int, enum sensor_type, int); + struct sensor_task { void *arg; void (*func)(void *); ==== //depot/projects/soc2007/cnst-sensors/sys.sys/sensors.h#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $P4: //depot/projects/soc2007/cnst-sensors/sys.sys/sensors.h#1 $ */ +/* $P4: //depot/projects/soc2007/cnst-sensors/sys.sys/sensors.h#2 $ */ /* $FreeBSD$ */ /* $OpenBSD: sensors.h,v 1.23 2007/03/22 16:55:31 deraadt Exp $ */ @@ -149,12 +149,10 @@ /* struct ksensordev */ void sensordev_install(struct ksensordev *); void sensordev_deinstall(struct ksensordev *); -struct ksensordev *sensordev_get(int); /* struct ksensor */ void sensor_attach(struct ksensordev *, struct ksensor *); void sensor_detach(struct ksensordev *, struct ksensor *); -struct ksensor *sensor_find(int, enum sensor_type, int); /* task scheduling */ int sensor_task_register(void *, void (*)(void *), int);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708070030.l770UZ4f074257>