Searched refs:cmd (Results 1 - 21 of 21) sorted by relevance

/lxc/src/lxc/
H A Dcommands.c66 * adding information to the end of cmd.data, then you must introduce a new
133 static const char *lxc_cmd_str(lxc_cmd_t cmd) argument
147 if (cmd >= LXC_CMD_MAX)
148 return "Unknown cmd";
149 return cmdname[cmd];
156 * @cmd : command to put response in
169 static int lxc_cmd_rsp_recv(int sock, struct lxc_cmd_rr *cmd) argument
172 struct lxc_cmd_rsp *rsp = &cmd->rsp;
177 lxc_cmd_str(cmd->req.cmd), strerro
279 lxc_cmd(const char *name, struct lxc_cmd_rr *cmd, int *stopped, const char *lxcpath, const char *hashed_sock_name) argument
351 struct lxc_cmd_rr cmd = { local
391 struct lxc_cmd_rr cmd = { local
421 struct lxc_cmd_rr cmd = { local
456 struct lxc_cmd_rr cmd = { local
515 struct lxc_cmd_rr cmd = { local
569 struct lxc_cmd_rr cmd = { local
610 struct lxc_cmd_rr cmd = { local
672 struct lxc_cmd_rr cmd = { local
707 struct lxc_cmd_rr cmd = { local
780 struct lxc_cmd_rr cmd = { local
818 struct lxc_cmd_rr cmd = { local
[all...]
H A Dgenl.c59 genlmsghdr->cmd = CTRL_CMD_GETFAMILY;
82 if (genlmsghdr->cmd != CTRL_CMD_NEWFAMILY)
H A Dcommands.h50 lxc_cmd_t cmd; member in struct:lxc_cmd_req
H A Dnetwork.c207 char *cmd; local
213 cmd = on_path("iw", NULL);
214 if (!cmd)
216 free(cmd);
1424 char *cmd; local
1427 cmd = on_path("ovs-vsctl", NULL);
1428 if (!cmd)
1430 free(cmd);
H A Dstart.c597 int *cmd = arg; local
600 ret = reboot(*cmd);
609 int ret, cmd, v, flags; local
627 cmd = v ? LINUX_REBOOT_CMD_CAD_ON : LINUX_REBOOT_CMD_CAD_OFF;
634 pid = __clone2(container_reboot_supported, stack, stack_size, flags, &cmd);
637 pid = clone(container_reboot_supported, stack, flags, &cmd);
H A Dattach.c693 /* Fetch the current profile path over the cmd interface. */
1289 lxc_attach_command_t* cmd = (lxc_attach_command_t*)payload; local
1291 execvp(cmd->program, cmd->argv);
1292 SYSERROR("Failed to exec \"%s\".", cmd->program);
H A Dlxccontainer.h819 * \param cmd One of the MIGRATE_ contstants.
825 int (*migrate)(struct lxc_container *c, unsigned int cmd, struct migrate_opts *opts, unsigned int size);
H A Dutils.h318 char *on_path(const char *cmd, const char *rootfs);
H A Dutils.c1202 char *on_path(const char *cmd, const char *rootfs) { argument
1220 ret = snprintf(cmdpath, MAXPATHLEN, "%s/%s/%s", rootfs, entry, cmd);
1222 ret = snprintf(cmdpath, MAXPATHLEN, "%s/%s", entry, cmd);
H A Dconfile.c2875 #define DO(cmd) { \
2876 if (!(cmd)) { \
H A Dlxccontainer.c3968 static int do_lxcapi_migrate(struct lxc_container *c, unsigned int cmd, argument
4004 switch (cmd) {
4027 ERROR("invalid migrate command %u", cmd);
/lxc/src/tests/
H A Dreboot.c38 int *cmd = arg; local
40 if (reboot(*cmd))
41 printf("failed to reboot(%d): %m\n", *cmd);
45 static int test_reboot(int cmd, int sig) argument
52 ret = clone(do_reboot, stack, CLONE_NEWPID | SIGCHLD, &cmd);
/lxc/config/apparmor/
H A Dlxc-generate-aa-rules.py75 (cmd, path) = x.split(' ')
78 if cmd == "block":
80 elif cmd == "allow":
83 print("Unknown command: %s" % cmd)
/lxc/src/lxc/tools/
H A Dlxc_device.c104 char *cmd, *dev_name, *dst_name; local
152 cmd = my_args.argv[0];
159 if (strcmp(cmd, "add") == 0) {
170 } else if (strcmp(cmd, "del") == 0) {
H A Dlxc-start-ephemeral.in393 cmd = ["ssh",
398 cmd += ["-l", args.user]
401 cmd += ["-i", args.key]
404 ssh_cmd = cmd + [ip] + args.command
H A Dlxc_unshare.c69 static void usage(char *cmd) argument
71 fprintf(stderr, "%s <options> command [command_arguments]\n", basename(cmd));
/lxc/src/python-lxc/lxc/
H A D__init__.py446 def attach_run_command(cmd):
454 if isinstance(cmd, tuple):
455 return _lxc.attach_run_command(cmd)
456 elif isinstance(cmd, list):
457 return _lxc.attach_run_command((cmd[0], cmd))
459 return _lxc.attach_run_command((cmd, [cmd]))
/lxc/src/lxc/bdev/
H A Dlxclvm.c186 char *cmd, output[12]; local
190 cmd = alloca(len);
192 ret = snprintf(cmd, len, lvscmd, path);
196 f = lxc_popen(cmd);
/lxc/src/python-lxc/
H A Dlxc.c295 lxc_attach_command_t cmd = { local
300 if (!PyArg_ParseTuple(arg, "sO", (const char**)&cmd.program, &args_obj))
303 cmd.argv = convert_tuple_to_char_pointer_array(args_obj);
310 if (!cmd.argv)
313 rv = lxc_attach_run_command(&cmd);
315 for (i = 0; cmd.argv[i]; i++)
316 free(cmd.argv[i]);
317 free(cmd.argv);
1464 "cmd", NULL};
1796 "cmd
[all...]
/lxc/templates/
H A Dlxc-sparclinux.in438 for cmd in $cmds; do
439 which $cmd >/dev/null 2>&1
441 die "The $cmd command is required, please install it"
H A Dlxc-oracle.in620 for cmd in $cmds; do
621 which $cmd >/dev/null 2>&1
623 die "The $cmd command is required, please install it"

Completed in 97 milliseconds