Searched defs:name (Results 1 - 25 of 47) sorted by relevance

12

/lxc/src/lxc/
H A Dconfile.h36 char *name; member in struct:lxc_config_t
H A Dmonitor.h41 char name[NAME_MAX+1]; member in struct:lxc_msg
48 extern void lxc_monitor_send_state(const char *name, lxc_state_t state,
50 extern void lxc_monitor_send_exit_code(const char *name, int exit_code,
H A Dfreezer.c42 lxc_state_t freezer_state(const char *name, const char *lxcpath) argument
45 if (lxc_cgroup_get("freezer.state", v, 100, name, lxcpath) < 0)
53 static int do_freeze_thaw(int freeze, const char *name, const char *lxcpath) argument
58 if (lxc_cgroup_set("freezer.state", state, name, lxcpath) < 0) {
59 ERROR("Failed to freeze %s:%s", lxcpath, name);
63 if (lxc_cgroup_get("freezer.state", v, 100, name, lxcpath) < 0) {
64 ERROR("Failed to get new freezer state for %s:%s", lxcpath, name);
70 if (name)
71 lxc_monitor_send_state(name, freeze ? FROZEN : THAWED, lxcpath);
78 int lxc_freeze(const char *name, cons argument
84 lxc_unfreeze(const char *name, const char *lxcpath) argument
[all...]
H A Dexecute.c74 argv[i++] = "--name";
75 argv[i++] = (char *)handler->name;
113 int lxc_execute(const char *name, char *const argv[], int quiet, argument
125 return __lxc_start(name, conf, &execute_start_ops, &args, lxcpath, backgrounded);
H A Dstart.h47 char *name; member in struct:lxc_handler
66 extern int lxc_poll(const char *name, struct lxc_handler *handler);
67 extern int lxc_set_state(const char *name, struct lxc_handler *handler, lxc_state_t state);
68 extern void lxc_abort(const char *name, struct lxc_handler *handler);
69 extern struct lxc_handler *lxc_init(const char *name, struct lxc_conf *, const char *);
70 extern void lxc_fini(const char *name, struct lxc_handler *handler);
H A Dstate.c72 lxc_state_t lxc_getstate(const char *name, const char *lxcpath) argument
74 extern lxc_state_t freezer_state(const char *name, const char *lxcpath);
76 lxc_state_t state = freezer_state(name, lxcpath);
78 state = lxc_cmd_get_state(name, lxcpath);
166 if (strcmp(lxcname, msg.name)) {
H A Dmonitor.c130 void lxc_monitor_send_state(const char *name, lxc_state_t state, argument
134 strncpy(msg.name, name, sizeof(msg.name));
135 msg.name[sizeof(msg.name) - 1] = 0;
140 void lxc_monitor_send_exit_code(const char *name, int exit_code, argument
144 strncpy(msg.name, name, sizeof(msg.name));
[all...]
H A Dlog.h93 const char* name; member in struct:lxc_log_appender
104 const char *name; member in struct:lxc_log_category
158 static inline int lxc_log_priority_to_int(const char* name) argument
160 if (!strcasecmp("TRACE", name)) return LXC_LOG_PRIORITY_TRACE;
161 if (!strcasecmp("DEBUG", name)) return LXC_LOG_PRIORITY_DEBUG;
162 if (!strcasecmp("INFO", name)) return LXC_LOG_PRIORITY_INFO;
163 if (!strcasecmp("NOTICE", name)) return LXC_LOG_PRIORITY_NOTICE;
164 if (!strcasecmp("WARN", name)) return LXC_LOG_PRIORITY_WARN;
165 if (!strcasecmp("ERROR", name)) return LXC_LOG_PRIORITY_ERROR;
166 if (!strcasecmp("CRIT", name)) retur
[all...]
H A Dlxclock.c161 struct lxc_lock *lxc_newlock(const char *lxcpath, const char *name) argument
169 if (!name) {
180 l->u.f.fname = lxclock_name(lxcpath, name);
H A Dcommands.c80 const char *name; local
86 name = lxcname;
87 if (!name)
88 name = "";
107 ret = snprintf(path, len, "%s/%s/command", lxcpath, name);
115 /* ret >= len; lxcpath or name is too long. hash both */
116 tmplen = strlen(name) + strlen(lxcpath) + 2;
118 ret = snprintf(tmppath, tmplen, "%s/%s", lxcpath, name);
126 ERROR("Command socket name too long");
264 * @name
279 lxc_cmd(const char *name, struct lxc_cmd_rr *cmd, int *stopped, const char *lxcpath, const char *hashed_sock_name) argument
348 lxc_try_cmd(const char *name, const char *lxcpath) argument
388 lxc_cmd_get_init_pid(const char *name, const char *lxcpath) argument
418 lxc_cmd_get_clone_flags(const char *name, const char *lxcpath) argument
452 lxc_cmd_get_cgroup_path(const char *name, const char *lxcpath, const char *subsystem) argument
511 lxc_cmd_get_config_item(const char *name, const char *item, const char *lxcpath) argument
566 lxc_cmd_get_state(const char *name, const char *lxcpath) argument
607 lxc_cmd_stop(const char *name, const char *lxcpath) argument
669 lxc_cmd_console_winch(const char *name, const char *lxcpath) argument
703 lxc_cmd_console(const char *name, int *ttynum, int *fd, const char *lxcpath) argument
980 lxc_cmd_init(const char *name, struct lxc_handler *handler, const char *lxcpath) argument
1016 lxc_cmd_mainloop_add(const char *name, struct lxc_epoll_descr *descr, struct lxc_handler *handler) argument
[all...]
/lxc/src/tests/
H A Dmay_control.c26 printf("Usage: %s name [lxcpath]\n", me);
32 const char *lxcpath = NULL, *name; local
38 name = argv[1];
41 c = lxc_container_new(name, lxcpath);
44 printf("You may%s control %s\n", may ? "" : " not", name);
H A Dcgpath.c45 * @group : name of the container group or NULL for default "lxc"
46 * @name : name of the container
49 const char *group, const char *name)
57 sprintf(relpath, "%s/%s", group ? group : "lxc", name);
59 if ((c = lxc_container_new(name, lxcpath)) == NULL) {
60 TSTERR("container %s couldn't instantiate", name);
64 TSTERR("container %s does not exist", name);
68 cgrelpath = lxc_cmd_get_cgroup_path(c->name, c->config_path, "freezer");
80 c->name,
48 test_running_container(const char *lxcpath, const char *group, const char *name) argument
121 test_container(const char *lxcpath, const char *group, const char *name, const char *template) argument
[all...]
H A Dconsole.c114 * @group : name of the container group or NULL for default "lxc"
115 * @name : name of the container
119 const char *group, const char *name,
134 if ((c = lxc_container_new(name, lxcpath)) == NULL) {
135 TSTERR("instantiating container %s", name);
141 c = lxc_container_new(name, lxcpath);
144 TSTERR("creating container %s", name);
152 TSTERR("starting container %s", name);
118 test_console(const char *lxcpath, const char *group, const char *name, const char *template) argument
H A Dattach.c298 * @group : name of the container group or NULL for default "lxc"
299 * @name : name of the container
303 const char *group, const char *name,
317 if ((ct = lxc_container_new(name, lxcpath)) == NULL) {
318 TSTERR("instantiating container %s", name);
324 ct = lxc_container_new(name, lxcpath);
327 TSTERR("creating container %s", name);
336 TSTERR("starting container %s", name);
349 static int test_attach(const char *lxcpath, const char *name, cons argument
302 test_ct_create(const char *lxcpath, const char *group, const char *name, const char *template) argument
[all...]
H A Dconcurrent.c74 char name[NAME_MAX+1]; local
78 sprintf(name, "lxc-test-concurrent-%d", args->thread_id);
81 c = lxc_container_new(name, NULL);
83 fprintf(stderr, "Unable to instantiate container (%s)\n", name);
89 c->set_config_item(c, "lxc.logfile", name);
95 fprintf(stderr, "Creating the container (%s) failed...\n", name);
103 fprintf(stderr, "Starting the container (%s) failed...\n", name);
107 fprintf(stderr, "Waiting the container (%s) to start failed...\n", name);
115 fprintf(stderr, "Stopping the container (%s) failed...\n", name);
119 fprintf(stderr, "Waiting the container (%s) to stop failed...\n", name);
[all...]
/lxc/src/lxc/lsm/
H A Dlsm.h32 const char *name; member in struct:lsm_drv
/lxc/src/lxc/tools/
H A Dlxc_config.c29 char *name; member in struct:lxc_config_items
34 { .name = "lxc.default_config", },
35 { .name = "lxc.lxcpath", },
36 { .name = "lxc.bdev.lvm.vg", },
37 { .name = "lxc.bdev.lvm.thin_pool", },
38 { .name = "lxc.bdev.zfs.root", },
39 { .name = "lxc.cgroup.use", },
40 { .name = "lxc.cgroup.pattern", },
41 { .name = NULL, },
55 for (i = &items[0]; i->name;
[all...]
H A Dlxc_init.c46 { "name", required_argument, NULL, 'n' },
64 " -n, --name=NAME NAME of the container\n"
85 char *lxcpath = NULL, *name = NULL, *logpriority = NULL; local
90 name = optarg;
107 err = lxc_log_init(name, name ? NULL : "none", logpriority,
H A Dlxc_unshare.c50 static int sethostname(const char * name, size_t len) argument
53 return syscall(__NR_sethostname, name, len);
76 fprintf(stderr, "\t -i <iface> : Interface name to be moved into container (presumably with NETWORK unsharing set)\n");
85 char name[MAXPATHLEN]; local
93 if (sscanf(optarg, "%s", name) < 1)
96 pwent = getpwnam(name);
98 ERROR("invalid username %s", name);
H A Dlxc_info.c85 --name=NAME\n\
90 -n, --name=NAME NAME of the container\n\
98 .name = NULL,
242 const char *name; member in struct:__anon20
250 for (i = 0; lxstat[i].name; i++) {
255 printf("%-15s %s\n", lxstat[i].name, buf);
287 static int print_info(const char *name, const char *lxcpath) argument
292 c = lxc_container_new(name, lxcpath);
295 name ? name
[all...]
H A Dlxc_usernsexec.c58 static void usage(const char *name) argument
60 printf("usage: %s [-h] [-m <uid-maps>] -- [command [arg ..]]\n", name);
/lxc/src/include/
H A Dopenpty.c37 int openpty (int *amaster, int *aslave, char *name, struct termios *termp, argument
68 if (name != NULL)
69 strcpy(name, buf);
/lxc/src/lxc/cgroups/
H A Dcgroup.h42 const char *name; member in struct:cgroup_ops
44 void *(*init)(const char *name);
53 int (*set)(const char *filename, const char *value, const char *name, const char *lxcpath);
54 int (*get)(const char *filename, char *value, size_t len, const char *name, const char *lxcpath);
58 bool (*attach)(const char *name, const char *lxcpath, pid_t pid);
65 extern bool cgroup_attach(const char *name, const char *lxcpath, pid_t pid);
H A Dcgroup.c44 INFO("cgroup driver %s", ops->name);
57 INFO("Initialized cgroup driver %s", ops->name);
68 INFO("cgroup driver %s initing for %s", ops->name, handler->name);
69 handler->cgroup_data = ops->init(handler->name);
174 WARN("CGROUP driver %s doesn't implement nrtasks", ops->name);
179 bool cgroup_attach(const char *name, const char *lxcpath, pid_t pid) argument
182 return ops->attach(name, lxcpath, pid);
186 int lxc_cgroup_set(const char *filename, const char *value, const char *name, const char *lxcpath) argument
189 return ops->set(filename, value, name, lxcpat
193 lxc_cgroup_get(const char *filename, char *value, size_t len, const char *name, const char *lxcpath) argument
[all...]
/lxc/src/lxc/bdev/
H A Dlxcbtrfs.c47 extern char *dir_new_path(char *src, const char *oldname, const char *name,
56 char *get_btrfs_subvol_path(int fd, u64 dir_id, u64 objid, char *name, argument
74 name, strerror(e));
79 name);
81 if (args.name[0]) {
86 len = strlen(args.name) + name_len + 2;
90 strcpy(retpath, args.name);
92 strncat(retpath, name, name_len);
100 strncat(retpath, name, name_len);
248 strncpy(args.name,
489 update_tree_node(struct mytree_node *n, u64 id, u64 parent, char *name, int name_len, char *dirname) argument
514 add_btrfs_tree_node(struct my_btrfs_tree *tree, u64 id, u64 parent, char *name, int name_len, char *dirname) argument
601 char *name; local
[all...]

Completed in 873 milliseconds

12