Searched defs:active_cnt (Results 1 - 2 of 2) sorted by relevance

/lxc/src/lxc/tools/
H A Dlxc_top.c406 static void ct_realloc(int active_cnt) argument
410 if (active_cnt > ct_alloc_cnt) {
412 ct = realloc(ct, sizeof(*ct) * active_cnt);
417 for (i = 0; i < active_cnt; i++) {
424 ct_alloc_cnt = active_cnt;
463 int i, active_cnt; local
467 active_cnt = list_active_containers(my_args.lxcpath[0], NULL, &active);
468 ct_realloc(active_cnt);
471 for (i = 0; i < active_cnt; i++)
474 ct_sort(active_cnt);
[all...]
/lxc/src/lxc/
H A Dlxccontainer.c4450 int i, ret, active_cnt, ct_cnt, ct_list_cnt; local
4459 active_cnt = list_active_containers(lxcpath, &active_name, NULL);
4460 if (active_cnt < 0) {
4461 ret = active_cnt;
4465 for (i = 0; i < active_cnt; i++) {
4478 active_cnt = 0;
4516 for (i = 0; i < active_cnt; i++) {

Completed in 608 milliseconds