Searched defs:list (Results 1 - 10 of 10) sorted by relevance

/lxc/src/lxc/
H A Dlist.h36 * Iterate through an lxc list. An example for an idiom would be:
40 * lxc_list_for_each(iterator, list) {
52 * Iterate safely through an lxc list. An example for an appropriate use case
56 * lxc_list_for_each_safe(iterator, list, list->next) {
67 /* Initalize list. */
68 static inline void lxc_list_init(struct lxc_list *list) argument
70 list->elem = NULL;
71 list->next = list
76 lxc_list_add_elem(struct lxc_list *list, void *elem) argument
82 lxc_list_first_elem(struct lxc_list *list) argument
88 lxc_list_last_elem(struct lxc_list *list) argument
94 lxc_list_empty(struct lxc_list *list) argument
119 lxc_list_add(struct lxc_list *head, struct lxc_list *list) argument
133 lxc_list_add_tail(struct lxc_list *head, struct lxc_list *list) argument
148 lxc_list_del(struct lxc_list *list) argument
159 lxc_list_len(struct lxc_list *list) argument
[all...]
H A Darguments.h102 int list; member in struct:lxc_arguments
H A Dconfile.c412 struct lxc_list *list; local
427 list = malloc(sizeof(*list));
428 if (!list) {
434 lxc_list_init(list);
435 list->elem = netdev;
437 lxc_list_add_tail(network, list);
790 struct lxc_list *list; local
807 list = malloc(sizeof(*list));
919 struct lxc_list *list; local
[all...]
H A Dutils.c430 /* first determine size of argument list, we don't want to reallocate
1938 static int lxc_append_null_to_list(void ***list) argument
1943 if (*list)
1944 for (; (*list)[newentry]; newentry++) {
1948 tmp = realloc(*list, (newentry + 2) * sizeof(void **));
1952 *list = tmp;
1953 (*list)[newentry + 1] = NULL;
1958 int lxc_append_string(char ***list, char *entry) argument
1963 newentry = lxc_append_null_to_list((void ***)list);
1971 (*list)[newentr
2074 lxc_setgroups(int size, gid_t list[]) argument
[all...]
H A Dconf.c878 * Build a space-separate list of ptys to pass to systemd.
1836 char *list[] = {"create=dir", local
1841 for (i=0; list[i]; i++) {
1842 if (!(p = strstr(mntent->mnt_opts, list[i])))
4764 * Return the list of cgroup_settings sorted according to the following rules
4782 /*Iterate over the cgroup settings and copy them to the output list*/
H A Dlxccontainer.c1738 static bool add_to_clist(struct lxc_container ***list, struct lxc_container *c, int pos, bool sort) argument
1740 struct lxc_container **newlist = realloc(*list, (pos+1) * sizeof(struct lxc_container *));
1746 *list = newlist;
1810 /* Grab the list of interfaces */
1812 SYSERROR("failed to get interfaces list");
1902 /* Grab the list of interfaces */
1904 SYSERROR("failed to get interfaces list");
3838 /* add or remove device to/from cgroup access list */
/lxc/src/lxc/tools/
H A Dlxc_ls.c146 size_t ls_arr, size_t termwidth, bool list);
183 lxc-ls list containers\n\
188 -F, --fancy-format comma separated list of columns to show in the fancy output\n\
191 --active list only active containers\n\
192 --running list only running containers\n\
193 --frozen list only frozen containers\n\
194 --stopped list only stopped containers\n\
195 --nesting=NUM list nested containers up to NUM (default is 5) levels of nesting\n\
197 -g --groups comma separated list of groups a container must have to be displayed\n",
753 size_t size, size_t termwidth, bool list)
752 ls_print_names(struct ls *l, struct lengths *lht, size_t size, size_t termwidth, bool list) argument
[all...]
/lxc/src/lxc/cgroups/
H A Dcgfsng.c34 * a comman-separated list of controllers.
62 * @controllers: either NULL, or a null-terminated list of all
170 * now available for use (keeping the list null-terminated).
172 static int append_null_to_list(void ***list) argument
176 if (*list)
177 for (; (*list)[newentry]; newentry++);
179 *list = must_realloc(*list, (newentry + 2) * sizeof(void **));
180 (*list)[newentry + 1] = NULL;
188 static bool string_in_list(char **list, cons argument
940 must_append_string(char ***list, char *entry) argument
[all...]
H A Dcgmanager.c47 #include "list.h"
821 static bool lxc_list_controllers(char ***list) argument
827 if (cgmanager_list_controllers_sync(NULL, cgroup_manager, list) != 0) {
840 static bool lxc_list_controllers(char ***list) argument
1122 * return true if inword is in the comma-delimited list cgroup_use
1141 * inlist is a comma-delimited list of cgroups; so is checklist. Return
1248 static char *get_last_controller_in_list(char *list) argument
1252 while ((p = strchr(list, ',')) != NULL)
1253 list = p + 1;
1255 return list;
[all...]
/lxc/src/python-lxc/
H A Dlxc.c42 /* not a list or tuple */
44 PyErr_SetString(PyExc_TypeError, "Expected list or tuple.");
306 "attach_run_command must be a list.");
370 PyObject *list = NULL; local
410 PyErr_SetString(PyExc_ValueError, "failure to list containers");
415 list = PyTuple_New(list_count);
421 PyTuple_SET_ITEM(list, i, PyUnicode_FromString(names[i]));
426 return list;
1065 /* Free the list of IPs */
1125 /* Free the list o
1400 PyObject *list = NULL; local
[all...]

Completed in 545 milliseconds