• Home
  • Engineering
  • Training
  • Docs
  • Community
  • Company
  • twitter
  • mastodon
  • linkedin
  • github

Bootlin logo

Elixir Cross Referencer

Open Menu / drivers / thermal / thermal_thresholds.h

Projects

  • linux

Versions

  • FIXME
    • FIXME
      • next-20260811
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __THERMAL_THRESHOLDS_H__
#define __THERMAL_THRESHOLDS_H__

struct user_threshold {
	struct list_head list_node;
	int temperature;
	int direction;
};

int thermal_thresholds_init(struct thermal_zone_device *tz);
void thermal_thresholds_exit(struct thermal_zone_device *tz);
void thermal_thresholds_handle(struct thermal_zone_device *tz, int *low, int *high);
void thermal_thresholds_flush(struct thermal_zone_device *tz);
int thermal_thresholds_add(struct thermal_zone_device *tz, int temperature, int direction);
int thermal_thresholds_delete(struct thermal_zone_device *tz, int temperature, int direction);
int thermal_thresholds_for_each(struct thermal_zone_device *tz,
				int (*cb)(struct user_threshold *, void *arg), void *arg);
#endif
linux next-20260811 Download file Top powered by Elixir a26ba81