maa: add maa_set_priority call
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
11
api/maa.h
11
api/maa.h
@@ -195,6 +195,17 @@ maa_result_t maa_init() __attribute__((constructor));
|
||||
maa_result_t maa_init();
|
||||
#endif
|
||||
|
||||
/**
|
||||
* This function attempts to set the maa process to a given priority and the
|
||||
* scheduler to SCHED_RR. Highest * priority is typically 99 and minimum is 0.
|
||||
* This function * will set to MAX if * priority is > MAX. Function will return
|
||||
* -1 on failure.
|
||||
|
||||
* @param priority Value from typically 0 to 99
|
||||
* @return The priority value set
|
||||
*/
|
||||
int maa_set_priority(const unsigned int priority);
|
||||
|
||||
/** Get the version string of maa autogenerated from git tag
|
||||
*
|
||||
* The version returned may not be what is expected however it is a reliable
|
||||
|
||||
Reference in New Issue
Block a user