Zephyr Project API 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
device_runtime.h File Reference
#include <zephyr/device.h>
#include <zephyr/kernel.h>

Go to the source code of this file.

Functions

int pm_device_runtime_auto_enable (const struct device *dev)
 Automatically enable device runtime based on devicetree properties.
 
int pm_device_runtime_enable (const struct device *dev)
 Enable device runtime PM.
 
int pm_device_runtime_disable (const struct device *dev)
 Disable device runtime PM.
 
int pm_device_runtime_get (const struct device *dev)
 Resume a device based on usage count.
 
int pm_device_runtime_put (const struct device *dev)
 Suspend a device based on usage count.
 
int pm_device_runtime_put_async (const struct device *dev, k_timeout_t delay)
 Suspend a device based on usage count (asynchronously).
 
bool pm_device_runtime_is_enabled (const struct device *dev)
 Check if device runtime is enabled for a given device.
 
int pm_device_runtime_usage (const struct device *dev)
 Return the current device usage counter.