Searched defs:item (Results 1 - 5 of 5) sorted by relevance

/lxc/src/lxc/
H A Dmainloop.c80 struct lxc_list *item; local
96 item = malloc(sizeof(*item));
97 if (!item)
100 item->elem = handler;
101 lxc_list_add(&descr->handlers, item);
H A Dcommands.c502 * lxc_cmd_get_config_item: Get config item the running container
505 * @item : the configuration item to retrieve (ex: lxc.network.0.veth.pair)
508 * Returns the item on success, NULL on failure. The caller must free() the
509 * returned item.
511 char *lxc_cmd_get_config_item(const char *name, const char *item, argument
517 .data = item,
518 .datalen = strlen(item)+1,
H A Dconf.c4773 struct lxc_list *item = NULL; local
4784 item = malloc(sizeof(*item));
4785 if (!item) {
4790 item->elem = it->elem;
4794 memsw_limit = item;
4798 item->elem = memsw_limit->elem;
4801 lxc_list_add_tail(result, item);
/lxc/src/lxc/tools/
H A Dlxc_top.c208 static uint64_t stat_get_int(struct lxc_container *c, const char *item) argument
214 len = c->get_cgroup_item(c, item, buf, sizeof(buf));
216 ERROR("unable to read cgroup item %s", item);
224 static uint64_t stat_match_get_int(struct lxc_container *c, const char *item, argument
233 len = c->get_cgroup_item(c, item, buf, sizeof(buf));
235 ERROR("unable to read cgroup item %s", item);
H A Dlxc_ls.c100 static char *ls_get_cgroup_item(struct lxc_container *c, const char *item);
101 static char *ls_get_config_item(struct lxc_container *c, const char *item,
295 static char *ls_get_config_item(struct lxc_container *c, const char *item, argument
299 return c->get_running_config_item(c, item);
301 size_t len = c->get_config_item(c, item, NULL, 0);
309 if ((size_t)c->get_config_item(c, item, val, len + 1) != len) {
581 static char *ls_get_cgroup_item(struct lxc_container *c, const char *item) argument
583 size_t len = c->get_cgroup_item(c, item, NULL, 0);
591 if ((size_t)c->get_cgroup_item(c, item, val, len + 1) != len) {

Completed in 440 milliseconds