Searched defs:ct (Results 1 - 4 of 4) sorted by relevance
/lxc/src/python-lxc/examples/ |
H A D | pyconsole.py | 42 ct = lxc.Container(sys.argv[1]) variable 45 (ct.name, ttynum, ord('a') + escape-1)) 47 if not ct.defined: 48 sys.exit("Container %s not defined" % ct.name) 49 if not ct.running: 50 sys.exit("Container %s not running" % ct.name) 52 ct.console(ttynum, 0, 1, 2, escape)
|
H A D | pyconsole-vte.py | 38 def vte_con(ct, ttynum): 40 masterfd = ct.console_getfd(ttynum) 71 ct = lxc.Container(sys.argv[1]) variable 73 print("Container:%s tty:%d" % (ct.name, ttynum)) 74 if not ct.defined: 75 sys.exit("Container %s not defined" % ct.name) 76 if not ct.running: 77 sys.exit("Container %s not running" % ct.name) 79 vte_con(ct, ttynum)
|
/lxc/src/tests/ |
H A D | attach.c | 72 static void test_attach_lsm_set_config(struct lxc_container *ct) argument 74 ct->load_config(ct, NULL); 75 ct->set_config_item(ct, lsm_config_key, lsm_label); 76 ct->save_config(ct, NULL); 85 static int test_attach_lsm_func(struct lxc_container *ct) argument 103 ret = ct->attach(ct, test_attach_lsm_func_fun 131 test_attach_lsm_cmd(struct lxc_container *ct) argument 185 test_attach_lsm_set_config(struct lxc_container *ct) argument 186 test_attach_lsm_func(struct lxc_container *ct) argument 187 test_attach_lsm_cmd(struct lxc_container *ct) argument 196 test_attach_func(struct lxc_container *ct) argument 247 test_attach_cmd(struct lxc_container *ct) argument 288 test_ct_destroy(struct lxc_container *ct) argument 307 struct lxc_container *ct = NULL; local 352 struct lxc_container *ct; local [all...] |
/lxc/src/lxc/tools/ |
H A D | lxc_top.c | 61 struct ct { struct 71 static struct ct *ct = NULL; variable in typeref:struct:ct 265 static void stats_get(struct lxc_container *c, struct ct *ct, struct stats *total) argument 267 ct->c = c; 268 ct->stats->mem_used = stat_get_int(c, "memory.usage_in_bytes"); 269 ct->stats->mem_limit = stat_get_int(c, "memory.limit_in_bytes"); 270 ct->stats->kmem_used = stat_get_int(c, "memory.kmem.usage_in_bytes"); 271 ct [all...] |
Completed in 10 milliseconds