From: drakenclimber Date: Thu, 3 Feb 2022 22:07:41 +0000 (+0000) Subject: deploy: 5e523a31f3880b771dbb8b924c04ad39b24d5b1a X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad927180f3a237bd2c841529d0ba3066484df30b;p=thirdparty%2Flibcgroup.git deploy: 5e523a31f3880b771dbb8b924c04ad39b24d5b1a --- diff --git a/abstraction-common_8h_source.html b/abstraction-common_8h_source.html new file mode 100644 index 00000000..d757566a --- /dev/null +++ b/abstraction-common_8h_source.html @@ -0,0 +1,174 @@ + + + + + + + +libcgroup: src/abstraction-common.h Source File + + + + + + + + + +
+
+ + + + + + +
+
libcgroup +
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+
+
abstraction-common.h
+
+
+
1 
+
8 /*
+
9  * This library is free software; you can redistribute it and/or modify it
+
10  * under the terms of version 2.1 of the GNU Lesser General Public License as
+
11  * published by the Free Software Foundation.
+
12  *
+
13  * This library is distributed in the hope that it will be useful, but WITHOUT
+
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+
15  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+
16  * for more details.
+
17  *
+
18  * You should have received a copy of the GNU Lesser General Public License
+
19  * along with this library; if not, see <http://www.gnu.org/licenses>.
+
20  */
+
21 #ifndef __ABSTRACTION_COMMON
+
22 #define __ABSTRACTION_COMMON
+
23 
+
24 #ifdef __cplusplus
+
25 extern "C" {
+
26 #endif
+
27 
+
28 #include "config.h"
+
29 #include <libcgroup.h>
+
30 #include "libcgroup-internal.h"
+
31 
+
43 int cgroup_strtol(const char * const in_str, int base,
+
44  long int * const out_value);
+
45 
+
55 int cgroup_convert_int(struct cgroup_controller * const dst_cgc,
+
56  const char * const in_value,
+
57  const char * const out_setting,
+
58  void *in_dflt, void *out_dflt);
+
59 
+
70 int cgroup_convert_name_only(struct cgroup_controller * const dst_cgc,
+
71  const char * const in_value,
+
72  const char * const out_setting,
+
73  void *in_dflt, void *out_dflt);
+
74 
+
84 int cgroup_convert_passthrough(struct cgroup_controller * const dst_cgc,
+
85  const char * const in_value,
+
86  const char * const out_setting,
+
87  void *in_dflt, void *out_dflt);
+
88 
+
99 int cgroup_convert_unmappable(struct cgroup_controller * const dst_cgc,
+
100  const char * const in_value,
+
101  const char * const out_setting,
+
102  void *in_dflt, void *out_dflt);
+
103 
+
104 /* cpu */
+
105 int cgroup_convert_cpu_nto1(struct cgroup_controller * const out_cgc,
+
106  struct cgroup_controller * const in_cgc);
+
107 
+
108 int cgroup_convert_cpu_quota_to_max(
+
109  struct cgroup_controller * const dst_cgc,
+
110  const char * const in_value,
+
111  const char * const out_setting,
+
112  void *in_dflt, void *out_dflt);
+
113 
+
114 int cgroup_convert_cpu_period_to_max(
+
115  struct cgroup_controller * const dst_cgc,
+
116  const char * const in_value,
+
117  const char * const out_setting,
+
118  void *in_dflt, void *out_dflt);
+
119 
+
120 int cgroup_convert_cpu_max_to_quota(
+
121  struct cgroup_controller * const dst_cgc,
+
122  const char * const in_value,
+
123  const char * const out_setting,
+
124  void *in_dflt, void *out_dflt);
+
125 
+
126 int cgroup_convert_cpu_max_to_period(
+
127  struct cgroup_controller * const dst_cgc,
+
128  const char * const in_value,
+
129  const char * const out_setting,
+
130  void *in_dflt, void *out_dflt);
+
131 
+
132 /* cpuset */
+
133 int cgroup_convert_cpuset_to_exclusive(
+
134  struct cgroup_controller * const dst_cgc,
+
135  const char * const in_value,
+
136  const char * const out_setting,
+
137  void *in_dflt, void *out_dflt);
+
138 
+
139 int cgroup_convert_cpuset_to_partition(
+
140  struct cgroup_controller * const dst_cgc,
+
141  const char * const in_value,
+
142  const char * const out_setting,
+
143  void *in_dflt, void *out_dflt);
+
144 
+
145 
+
146 #ifdef __cplusplus
+
147 } /* extern "C" */
+
148 #endif
+
149 
+
150 #endif /* __ABSTRACTION_COMMON */
+
Definition: libcgroup-internal.h:106
+
+ + + + diff --git a/abstraction-map_8h_source.html b/abstraction-map_8h_source.html new file mode 100644 index 00000000..95a166a5 --- /dev/null +++ b/abstraction-map_8h_source.html @@ -0,0 +1,126 @@ + + + + + + + +libcgroup: src/abstraction-map.h Source File + + + + + + + + + +
+
+ + + + + + +
+
libcgroup +
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+
+
abstraction-map.h
+
+
+
1 
+
8 /*
+
9  * This library is free software; you can redistribute it and/or modify it
+
10  * under the terms of version 2.1 of the GNU Lesser General Public License as
+
11  * published by the Free Software Foundation.
+
12  *
+
13  * This library is distributed in the hope that it will be useful, but WITHOUT
+
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+
15  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+
16  * for more details.
+
17  *
+
18  * You should have received a copy of the GNU Lesser General Public License
+
19  * along with this library; if not, see <http://www.gnu.org/licenses>.
+
20  */
+
21 #ifndef __ABSTRACTION_MAP
+
22 #define __ABSTRACTION_MAP
+
23 
+
24 #ifdef __cplusplus
+
25 extern "C" {
+
26 #endif
+
27 
+ +
29  /* if the conversion isn't a one-to-one mapping or the mathematical
+
30  * conversion is unique, create a custom conversion function.
+
31  */
+
32  int (*cgroup_convert)(struct cgroup_controller * const dst_cgc,
+
33  const char * const in_value,
+
34  const char * const out_setting,
+
35  void *in_dflt, void *out_dflt);
+
36  char *in_setting;
+
37  void *in_dflt;
+
38  char *out_setting;
+
39  void *out_dflt;
+
40 };
+
41 
+
42 extern const struct cgroup_abstraction_map cgroup_v1_to_v2_map[];
+
43 extern const int cgroup_v1_to_v2_map_sz;
+
44 
+
45 extern const struct cgroup_abstraction_map cgroup_v2_to_v1_map[];
+
46 extern const int cgroup_v2_to_v1_map_sz;
+
47 
+
48 #ifdef __cplusplus
+
49 } /* extern "C" */
+
50 #endif
+
51 
+
52 #endif /* __ABSTRACTION_MAP */
+
Definition: abstraction-map.h:28
+
Definition: libcgroup-internal.h:106
+
+ + + + diff --git a/annotated.html b/annotated.html index 3a1dfcf9..c25f8cdd 100644 --- a/annotated.html +++ b/annotated.html @@ -73,24 +73,25 @@ $(function() {  Ccg_mount_point  Ccg_mount_table_s  Ccgroup - Ccgroup_controller - Ccgroup_dictionary - Ccgroup_dictionary_item - Ccgroup_dictionary_iterator - Ccgroup_file_info - Ccgroup_group_spec - Ccgroup_mount_point - Ccgroup_rule - Ccgroup_rule_list - Ccgroup_rules_data - Ccgroup_stat - Ccgroup_string_list - Ccgroup_tree_handle - Ccontrol_value - Ccontroller_data - Cext_cgroup_record - Cparent_info - Cunchanged_pid + Ccgroup_abstraction_map + Ccgroup_controller + Ccgroup_dictionary + Ccgroup_dictionary_item + Ccgroup_dictionary_iterator + Ccgroup_file_info + Ccgroup_group_spec + Ccgroup_mount_point + Ccgroup_rule + Ccgroup_rule_list + Ccgroup_rules_data + Ccgroup_stat + Ccgroup_string_list + Ccgroup_tree_handle + Ccontrol_value + Ccontroller_data + Cext_cgroup_record + Cparent_info + Cunchanged_pid diff --git a/classes.html b/classes.html index 20885cd3..9360f560 100644 --- a/classes.html +++ b/classes.html @@ -75,7 +75,7 @@ $(function() {
black_list_type
C
-
cg_mount_point
cg_mount_table_s
cgroup
cgroup_controller
cgroup_dictionary
cgroup_dictionary_item
cgroup_dictionary_iterator
cgroup_file_info
cgroup_group_spec
cgroup_mount_point
cgroup_rule
cgroup_rule_list
cgroup_rules_data
cgroup_stat
cgroup_string_list
cgroup_tree_handle
control_value
controller_data
+
cg_mount_point
cg_mount_table_s
cgroup
cgroup_abstraction_map
cgroup_controller
cgroup_dictionary
cgroup_dictionary_item
cgroup_dictionary_iterator
cgroup_file_info
cgroup_group_spec
cgroup_mount_point
cgroup_rule
cgroup_rule_list
cgroup_rules_data
cgroup_stat
cgroup_string_list
cgroup_tree_handle
control_value
controller_data
E
ext_cgroup_record
diff --git a/config_8h_source.html b/config_8h_source.html index 4c821c80..6ba64fc7 100644 --- a/config_8h_source.html +++ b/config_8h_source.html @@ -121,7 +121,7 @@ $(function() {
void cgroup_templates_cache_set_source_files(struct cgroup_string_list *tmpl_files)
Definition: config.c:1624
int cgroup_config_unload_config(const char *pathname, int flags)
Definition: config.c:1256
Definition: tools-common.h:45
-
Definition: libcgroup-internal.h:106
+
Definition: libcgroup-internal.h:114