@@ -172,10 +172,6 @@ typedef int (*cg_kill_log_func_t)(pid_t pid, int sig, void *userdata);
172172int cg_kill (const char * controller , const char * path , int sig , CGroupFlags flags , Set * s , cg_kill_log_func_t kill_log , void * userdata );
173173int cg_kill_recursive (const char * controller , const char * path , int sig , CGroupFlags flags , Set * s , cg_kill_log_func_t kill_log , void * userdata );
174174
175- int cg_migrate (const char * cfrom , const char * pfrom , const char * cto , const char * pto , CGroupFlags flags );
176- int cg_migrate_recursive (const char * cfrom , const char * pfrom , const char * cto , const char * pto , CGroupFlags flags );
177- int cg_migrate_recursive_fallback (const char * cfrom , const char * pfrom , const char * cto , const char * pto , CGroupFlags flags );
178-
179175int cg_split_spec (const char * spec , char * * controller , char * * path );
180176int cg_mangle_path (const char * path , char * * result );
181177
@@ -184,15 +180,8 @@ int cg_get_path_and_check(const char *controller, const char *path, const char *
184180
185181int cg_pid_get_path (const char * controller , pid_t pid , char * * path );
186182
187- int cg_trim (const char * controller , const char * path , bool delete_root );
188-
189183int cg_rmdir (const char * controller , const char * path );
190184
191- int cg_create (const char * controller , const char * path );
192- int cg_attach (const char * controller , const char * path , pid_t pid );
193- int cg_attach_fallback (const char * controller , const char * path , pid_t pid );
194- int cg_create_and_attach (const char * controller , const char * path , pid_t pid );
195-
196185int cg_set_attribute (const char * controller , const char * path , const char * attribute , const char * value );
197186int cg_get_attribute (const char * controller , const char * path , const char * attribute , char * * ret );
198187int cg_get_keyed_attribute (const char * controller , const char * path , const char * attribute , char * * keys , char * * values );
@@ -240,13 +229,6 @@ int cg_slice_to_path(const char *unit, char **ret);
240229
241230typedef const char * (* cg_migrate_callback_t )(CGroupMask mask , void * userdata );
242231
243- int cg_create_everywhere (CGroupMask supported , CGroupMask mask , const char * path );
244- int cg_attach_everywhere (CGroupMask supported , const char * path , pid_t pid , cg_migrate_callback_t callback , void * userdata );
245- int cg_attach_many_everywhere (CGroupMask supported , const char * path , Set * pids , cg_migrate_callback_t callback , void * userdata );
246- int cg_migrate_everywhere (CGroupMask supported , const char * from , const char * to , cg_migrate_callback_t callback , void * userdata );
247- int cg_trim_everywhere (CGroupMask supported , const char * path , bool delete_root );
248- int cg_enable_everywhere (CGroupMask supported , CGroupMask mask , const char * p , CGroupMask * ret_result_mask );
249-
250232int cg_mask_supported (CGroupMask * ret );
251233int cg_mask_from_string (const char * s , CGroupMask * ret );
252234int cg_mask_to_string (CGroupMask mask , char * * ret );
@@ -263,16 +245,8 @@ static inline int cg_unified(void) {
263245 return cg_unified_cached (true);
264246}
265247
266- bool cg_is_unified_wanted (void );
267- bool cg_is_legacy_wanted (void );
268- bool cg_is_hybrid_wanted (void );
269-
270248const char * cgroup_controller_to_string (CGroupController c ) _const_ ;
271249CGroupController cgroup_controller_from_string (const char * s ) _pure_ ;
272250
273- int cg_weight_parse (const char * s , uint64_t * ret );
274- int cg_cpu_shares_parse (const char * s , uint64_t * ret );
275- int cg_blkio_weight_parse (const char * s , uint64_t * ret );
276-
277251bool is_cgroup_fs (const struct statfs * s );
278252bool fd_is_cgroup_fs (int fd );
0 commit comments