File Index
Files and directories
Sign in
FILE

thermal_thresholds.h

File preview with syntax highlighting.

linux-6.19.14/drivers/thermal/thermal_thresholds.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef __THERMAL_THRESHOLDS_H__
 3#define __THERMAL_THRESHOLDS_H__
 4
 5struct user_threshold {
 6	struct list_head list_node;
 7	int temperature;
 8	int direction;
 9};
10
11int thermal_thresholds_init(struct thermal_zone_device *tz);
12void thermal_thresholds_exit(struct thermal_zone_device *tz);
13void thermal_thresholds_handle(struct thermal_zone_device *tz, int *low, int *high);
14void thermal_thresholds_flush(struct thermal_zone_device *tz);
15int thermal_thresholds_add(struct thermal_zone_device *tz, int temperature, int direction);
16int thermal_thresholds_delete(struct thermal_zone_device *tz, int temperature, int direction);
17int thermal_thresholds_for_each(struct thermal_zone_device *tz,
18				int (*cb)(struct user_threshold *, void *arg), void *arg);
19#endif
~/ Read-only file preview.