| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "shared-forward.h" |
| 5 |
|
| 6 |
int cg_weight_parse(const char *s, uint64_t *ret); |
| 7 |
int cg_cpu_weight_parse(const char *s, uint64_t *ret); |
| 8 |
|
| 9 |
int cg_trim(const char *path, bool delete_root); |
| 10 |
|
| 11 |
int cg_create(const char *path); |
| 12 |
int cg_attach(const char *path, pid_t pid); |
| 13 |
int cg_fd_attach(int fd, pid_t pid); |
| 14 |
int cg_create_and_attach(const char *path, pid_t pid); |
| 15 |
|
| 16 |
int cg_set_access(const char *path, uid_t uid, gid_t gid); |
| 17 |
int cg_set_access_recursive(const char *path, uid_t uid, gid_t gid); |
| 18 |
|
| 19 |
int cg_enable(CGroupMask supported, CGroupMask mask, const char *p, CGroupMask *ret_result_mask); |
| 20 |
|
| 21 |
int cg_migrate(const char *from, const char *to, CGroupFlags flags); |
| 22 |
|
| 23 |
int cg_has_legacy(void); |