Searched refs:list (Results 1 - 23 of 23) 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.h281 extern int lxc_append_string(char ***list, char *entry);
346 int lxc_setgroups(int size, gid_t list[]);
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_autostart.c27 #include "list.h"
43 args->list = 1;
70 {"list", no_argument, 0, 'L'},
89 -L, --list list all affected containers and wait delay\n\
93 -a, --all list all auto-started containers (ignore groups)\n\
95 -g, --groups list of groups (comma separated) to select\n\
107 * If the entry is NULL or the empty string and the list
152 * If a list is passed to it, it adds to it.
154 * and empty list entr
[all...]
H A Dlxc-top.lua140 -- note, this is a "mixed" table, ie both dictionary and list
159 -- get stats for all current containers and resort the list
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/templates/
H A Dlxc-archlinux.in211 -P,--packages preinstall additional packages, comma-separated list
212 -e,--enable_units enable systemd services, comma-separated list
213 -d,--disable_units disable systemd services, comma-separated list
H A Dlxc-altlinux.in113 chroot ${rootfs_path} chkconfig $service --list &>/dev/null && chroot ${rootfs_path} chkconfig $service on || true
120 chroot ${rootfs_path} chkconfig $service --list &>/dev/null && chroot ${rootfs_path} chkconfig $service off || true
181 # if no configuration file $profile -- fall back to default list of packages
H A Dlxc-download.in196 [ -l | --list ]: List all available images and exit.
227 options=$(getopt -o d:r:a:hl -l dist:,release:,arch:,help,list,variant:,\
240 -l|--list) DOWNLOAD_LIST_IMAGES="true"; shift 1;;
316 # Simply list images
H A Dlxc-ubuntu.in286 cat >> "$1/etc/apt/sources.list" << EOF
292 cat >> "$1/etc/apt/sources.list" << EOF
348 # Try to guess a list of langpacks to install
392 > $cache/partial-$arch/etc/apt/sources.list
579 # Write a new sources.list containing both native and multiarch entries
580 > ${rootfs}/etc/apt/sources.list
684 packages: list of packages to add comma separated
685 mirror,security-mirror: mirror for download and /etc/apt/sources.list
H A Dlxc-sparclinux.in56 btrfs subvolume list "$1" >/dev/null 2>&1; then
H A Dlxc-oracle.in52 btrfs subvolume list "$1" >/dev/null 2>&1; then
/lxc/src/python-lxc/lxc/
H A D__init__.py122 raise IndexError("list index out of range")
143 raise IndexError("list index out of range")
202 Append 'value' to 'key', assuming 'key' is a list.
203 If 'key' isn't a list, 'value' will be set as the value of 'key'.
282 A list is returned when multiple values are set.
294 A list is returned when multiple values are set.
307 Returns a list of valid sub-keys.
369 The value can be a list for the keys supporting multiple values.
376 # Check if it's a list
379 if isinstance(value, list)
[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/lua-lxc/test/
H A Dapitest.lua242 -- test clearing/setting a 'list type' item
249 -- note: clear_config_item only works on list type items
262 -- mount entries are a list type item
/lxc/src/lua-lxc/
H A Dlxc.lua190 -- it must be a list type item, make a table of it
192 -- make it a "mixed" table, ie both dictionary and list for ease of use
364 -- note, this is a "mixed" table, ie both dictionary and list
369 -- note, this is a "mixed" table, ie both dictionary and list
388 -- note, this is a "mixed" table, ie both dictionary and list
/lxc/src/python-lxc/examples/
H A Dapi_test.py86 assert(isinstance(capdrop, list))
/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 1367 milliseconds