Userspace Resource Manager
Loading...
Searching...
No Matches
UrmAPIs.h
Go to the documentation of this file.
1// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
2// SPDX-License-Identifier: BSD-3-Clause
3
7
15
16#ifndef RESOURCE_TUNER_CLIENT_H
17#define RESOURCE_TUNER_CLIENT_H
18
19#ifdef __cplusplus
20#include <cstdint>
21#include <cstring>
22extern "C" {
23#else
24#include <stdio.h>
25#include <stdint.h>
26#endif
27
28#include "UrmPlatformAL.h"
29
45int64_t tuneResources(int64_t duration, int32_t prop, int32_t numRes, SysResource* resourceList);
46
56int8_t retuneResources(int64_t handle, int64_t duration);
57
66int8_t untuneResources(int64_t handle);
67
80int8_t getProp(const char* prop, char* buffer, size_t bufferSize, const char* defValue);
81
111int64_t tuneSignal(uint32_t sigId,
112 uint32_t sigType,
113 int64_t duration,
114 int32_t properties,
115 const char* appName,
116 const char* scenario,
117 int32_t numArgs,
118 uint32_t* list);
119
147int8_t relaySignal(uint32_t sigId,
148 uint32_t sigType,
149 int64_t duration,
150 int32_t properties,
151 const char* appName,
152 const char* scenario,
153 int32_t numArgs,
154 uint32_t* list);
155
164int8_t untuneSignal(int64_t handle);
165
176int8_t retuneSignal(int64_t handle, int64_t duration);
177
178#ifdef __cplusplus
179}
180#endif
181
182#endif
183
int8_t untuneSignal(int64_t handle)
Release (or free) the signal with the given handle.
int64_t tuneResources(int64_t duration, int32_t prop, int32_t numRes, SysResource *resourceList)
Tune Resource Values for finite or finite duration.
int64_t tuneSignal(uint32_t sigId, uint32_t sigType, int64_t duration, int32_t properties, const char *appName, const char *scenario, int32_t numArgs, uint32_t *list)
Tune the signal with the given ID.
int8_t retuneResources(int64_t handle, int64_t duration)
Modify the duration of a previously issued Tune Request.
int8_t relaySignal(uint32_t sigId, uint32_t sigType, int64_t duration, int32_t properties, const char *appName, const char *scenario, int32_t numArgs, uint32_t *list)
Relay the signal to all the features subscribed to the signal with the given ID.
int8_t getProp(const char *prop, char *buffer, size_t bufferSize, const char *defValue)
Gets a property from the Config Store.
int8_t retuneSignal(int64_t handle, int64_t duration)
Modify the duration of a previously issued Tune Signal (tuneSignal).
int8_t untuneResources(int64_t handle)
Release (or free) the Request with the given handle.
Used to store information regarding Resources / Tunables which need to be Provisioned as part of the ...