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

/lxc/src/lxc/tools/
H A Dlxc_autostart.c264 static struct lxc_list *get_config_list(struct lxc_container *c, char *key) { argument
269 len = c->get_config_item(c, key, NULL, 0);
277 if (c->get_config_item(c, key, value, len + 1) != len) {
293 static int get_config_integer(struct lxc_container *c, char *key) { argument
298 len = c->get_config_item(c, key, NULL, 0);
306 if (c->get_config_item(c, key, value, len + 1) != len) {
H A Dlxc_info.c47 static char **key = NULL; variable
56 newk = realloc(key, (keys + 1) * sizeof(key[0]));
59 key = newk;
60 key[keys] = arg;
261 static void print_info_msg_int(const char *key, int value) argument
264 printf("%-15s %d\n", key, value);
269 printf("%-15s %d\n", key, value);
274 static void print_info_msg_str(const char *key, const char *value) argument
277 printf("%-15s %s\n", key, valu
[all...]
/lxc/src/lua-lxc/
H A Dcore.c303 const char *key = luaL_checkstring(L, 2); local
305 lua_pushboolean(L, !!c->clear_config_item(c, key));
312 const char *key = luaL_checkstring(L, 2); local
316 len = c->get_cgroup_item(c, key, NULL, 0);
321 if (c->get_cgroup_item(c, key, value, len + 1) != len)
335 const char *key = luaL_checkstring(L, 2); local
339 len = c->get_config_item(c, key, NULL, 0);
344 if (c->get_config_item(c, key, value, len + 1) != len)
358 const char *key = luaL_checkstring(L, 2); local
361 lua_pushboolean(L, !!c->set_cgroup_item(c, key, valu
368 const char *key = luaL_checkstring(L, 2); local
378 const char *key = NULL; local
544 const char *key = luaL_checkstring(L, 2); local
[all...]
/lxc/src/lxc/
H A Dcriu.c337 char *fmt, *key, *val, *mntdata; local
352 key = mntent.mnt_dir;
356 key = mntent.mnt_dir;
360 ret = snprintf(arg, sizeof(arg), fmt, key, val);
H A Dconfile.c275 extern struct lxc_config_t *lxc_getconfig(const char *key) argument
280 if (!strncmp(config[i].name, key,
355 * the key 'lxc.network.' was found. So we make sure next
357 * the key), and call it.
359 static int config_network_nic(const char *key, const char *value, argument
362 char *copy = strdup(key), *p;
376 if (*(key+12) < '0' || *(key+12) > '9')
378 p = strchr(key+12, '.');
384 ERROR("unknown key
394 config_network(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
407 config_network_type(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
476 get_network_netdev_idx(const char *key) argument
492 get_netdev_from_key(const char *key, struct lxc_list *network) argument
509 lxc_list_nicconfigs(struct lxc_conf *c, const char *key, char *retv, int inlen) argument
554 network_netdev(const char *key, const char *value, struct lxc_list *network) argument
656 config_network_flags(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
670 config_network_link(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
682 config_network_name(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
694 config_network_veth_pair(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
710 config_network_macvlan_mode(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
726 config_network_hwaddr(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
754 config_network_vlan_id(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
773 config_network_mtu(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
785 config_network_ipv4(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
876 config_network_ipv4_gateway(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
914 config_network_ipv6(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
978 config_network_ipv6_gateway(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1016 config_network_script_up(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1028 config_network_script_down(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1054 config_seccomp(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1060 config_init_cmd(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1066 config_init_uid(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1078 config_init_gid(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1090 config_hook(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1130 config_personality(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1143 config_pts(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1152 config_start(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1176 config_monitor(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1188 config_group(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1234 config_environment(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1261 config_tty(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1270 config_ttydir(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1276 config_kmsg(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1288 config_lsm_aa_profile(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1294 config_lsm_aa_incomplete(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1308 config_lsm_se_context(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1314 config_logfile(const char *key, const char *value, struct lxc_conf *c) argument
1327 config_loglevel(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1347 config_autodev(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1408 config_haltsignal(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1420 config_rebootsignal(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1432 config_stopsignal(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1444 config_cgroup(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1503 config_idmap(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1564 config_fstab(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1572 config_mount_auto(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1638 config_mount(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1663 config_cap_keep(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1712 config_cap_drop(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1758 config_console(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1764 config_console_logfile(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1871 config_includefile(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1880 config_rootfs(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1886 config_rootfs_mount(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1892 config_rootfs_options(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1898 config_rootfs_backend(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1913 config_pivotdir(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1920 config_utsname(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
1955 char *key; local
2210 lxc_get_cgroup_entry(struct lxc_conf *c, char *retv, int inlen, const char *key) argument
2236 lxc_get_item_hooks(struct lxc_conf *c, char *retv, int inlen, const char *key) argument
2399 lxc_get_item_nic(struct lxc_conf *c, char *retv, int inlen, const char *key) argument
2518 lxc_get_config_item(struct lxc_conf *c, const char *key, char *retv, int inlen) argument
2606 lxc_clear_config_item(struct lxc_conf *c, const char *key) argument
2648 do_append_unexp_config_line(struct lxc_conf *conf, const char *key, const char *v) argument
2665 clear_unexp_config_line(struct lxc_conf *conf, const char *key, bool rm_subkeys) argument
2702 const char *key = "lxc.mount.entry"; local
2798 const char *key = "lxc.hook"; local
2913 const char *key = "lxc.network.hwaddr"; local
2972 config_ephemeral(const char *key, const char *value, struct lxc_conf *lxc_conf) argument
[all...]
H A Dconf.c4188 int lxc_clear_nic(struct lxc_conf *c, const char *key) argument
4195 p1 = strchr(key, '.');
4199 ret = sscanf(key, "%d", &idx);
4289 int lxc_clear_cgroups(struct lxc_conf *c, const char *key) argument
4295 if (strcmp(key, "lxc.cgroup") == 0)
4297 else if (strncmp(key, "lxc.cgroup.", sizeof("lxc.cgroup.")-1) == 0)
4298 k = key + sizeof("lxc.cgroup.")-1;
4358 int lxc_clear_hooks(struct lxc_conf *c, const char *key) argument
4365 if (strcmp(key, "lxc.hook") == 0)
4367 else if (strncmp(key, "lx
[all...]
H A Dlxccontainer.c103 static bool do_lxcapi_set_config_item(struct lxc_container *c, const char *key, const char *v);
1665 static void do_clear_unexp_config_line(struct lxc_conf *conf, const char *key) argument
1667 if (strcmp(key, "lxc.cgroup") == 0)
1668 clear_unexp_config_line(conf, key, true);
1669 else if (strcmp(key, "lxc.network") == 0)
1670 clear_unexp_config_line(conf, key, true);
1671 else if (strcmp(key, "lxc.hook") == 0)
1672 clear_unexp_config_line(conf, key, true);
1674 clear_unexp_config_line(conf, key, false);
1675 if (!do_append_unexp_config_line(conf, key, ""))
1679 do_lxcapi_clear_config_item(struct lxc_container *c, const char *key) argument
1986 do_lxcapi_get_config_item(struct lxc_container *c, const char *key, char *retv, int inlen) argument
2001 do_lxcapi_get_running_config_item(struct lxc_container *c, const char *key) argument
2016 do_lxcapi_get_keys(struct lxc_container *c, const char *key, char *retv, int inlen) argument
2453 set_config_item_locked(struct lxc_container *c, const char *key, const char *v) argument
2469 do_lxcapi_set_config_item(struct lxc_container *c, const char *key, const char *v) argument
2616 lxc_get_global_config_item(const char *key) argument
[all...]
/lxc/src/lxc/bdev/
H A Dlxcbtrfs.h206 struct btrfs_ioctl_search_key key; member in struct:btrfs_ioctl_search_args
/lxc/src/lxc/cgroups/
H A Dcgmanager.c858 char *controller, *key, *cgroup = NULL, *cglast; local
865 key = strchr(controller, '.');
866 if (!key) {
872 *key = '\0';
998 char *controller, *key, *cgroup = NULL; local
1005 key = strchr(controller, '.');
1006 if (!key) {
1012 *key = '\0';
/lxc/src/python-lxc/
H A Dlxc.c335 static char *kwlist[] = {"key", NULL};
336 char* key = NULL; local
340 &key))
343 value = lxc_get_global_config_item(key);
346 PyErr_SetString(PyExc_KeyError, "Invalid configuration key");
718 static char *kwlist[] = {"key", NULL};
719 char *key = NULL; local
722 &key))
725 if (self->container->clear_config_item(self->container, key)) {
902 static char *kwlist[] = {"key", NUL
903 char* key = NULL; local
939 char* key = NULL; local
993 char* key = NULL; local
1141 char* key = NULL; local
1277 char *key = NULL; local
1295 char *key = NULL; local
[all...]

Completed in 51 milliseconds