20 #ifndef __PIPEWIRE_RTKIT_H__ 21 #define __PIPEWIRE_RTKIT_H__ 23 #include <sys/types.h> 30 #define RTKIT_SERVICE_NAME "org.freedesktop.RealtimeKit1" 31 #define RTKIT_OBJECT_PATH "/org/freedesktop/RealtimeKit1" int pw_rtkit_make_realtime(struct pw_rtkit_bus *system_bus, pid_t thread, int priority)
This is mostly equivalent to sched_setparam(thread, SCHED_RR, { .sched_priority = priority })...
Definition: rtkit.c:353
int pw_rtkit_get_min_nice_level(struct pw_rtkit_bus *system_bus, int *min_nice_level)
Retreive the minimum value of nice level available.
Definition: rtkit.c:368
void pw_rtkit_bus_free(struct pw_rtkit_bus *system_bus)
Free an RTKit bus.
Definition: rtkit.c:85
int pw_rtkit_make_high_priority(struct pw_rtkit_bus *system_bus, pid_t thread, int nice_level)
This is mostly equivalent to setpriority(PRIO_PROCESS, thread, nice_level).
Definition: rtkit.c:358
int pw_rtkit_get_max_realtime_priority(struct pw_rtkit_bus *system_bus)
Return the maximum value of realtime priority available.
Definition: rtkit.c:363
struct pw_rtkit_bus * pw_rtkit_bus_get_system(void)
Get an RTKit bus.
Definition: rtkit.c:60
long long pw_rtkit_get_rttime_usec_max(struct pw_rtkit_bus *system_bus)
Return the maximum value of RLIMIT_RTTIME to set before attempting a realtime request.
Definition: rtkit.c:373