libcgroup
Loading...
Searching...
No Matches
abstraction-map.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
9#ifndef __ABSTRACTION_MAP
10#define __ABSTRACTION_MAP
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
17 /*
18 * if the conversion isn't a one-to-one mapping or the mathematical
19 * conversion is unique, create a custom conversion function.
20 */
21 int (*cgroup_convert)(struct cgroup_controller * const dst_cgc, const char * const in_value,
22 const char * const out_setting, void *in_dflt, void *out_dflt);
23 char *in_setting;
24 void *in_dflt;
25 char *out_setting;
26 void *out_dflt;
27};
28
29extern const struct cgroup_abstraction_map cgroup_v1_to_v2_map[];
30extern const int cgroup_v1_to_v2_map_sz;
31
32extern const struct cgroup_abstraction_map cgroup_v2_to_v1_map[];
33extern const int cgroup_v2_to_v1_map_sz;
34
35#ifdef __cplusplus
36} /* extern "C" */
37#endif
38
39#endif /* __ABSTRACTION_MAP */
Definition abstraction-map.h:16
Definition libcgroup-internal.h:113