/**
* lxcContainerExecInit:
- * @vmDef: Ptr to vm definition structure
+ * @vmDef: pointer to vm definition structure
*
* Exec the container init string. The container init will replace then
* be running in the current process
/**
* lxcContainerSetStdio:
- * @control: the conrol FD
- * @ttyPath: Name of tty to set as the container console
+ * @control: control FD from parent
+ * @ttyfd: FD of tty to set as the container console
*
* Sets the given tty as the primary conosole for the container as well as
* stdout, stdin and stderr.
/**
* lxcContainerSendContinue:
- * @monitor: control FD to child
+ * @control: control FD to child
*
* Sends the continue message via the socket pair stored in the vm
* structure.
/**
* lxcContainerWaitForContinue:
- * @control: control FD from parent
+ * @control: Control FD from parent
*
* This function will wait for the container continue message from the
* parent process. It will send this message on the socket pair stored in
/**
- * lxcEnableInterfaces:
- * @vm: Pointer to vm structure
+ * lxcContainerEnableInterfaces:
+ * @nveths: number of interfaces
+ * @veths: interface names
*
* This function will enable the interfaces for this container.
*
/**
- * lxcChild:
- * @argv: Pointer to container arguments
+ * lxcContainerChild:
+ * @data: pointer to container arguments
*
* This function is run in the process clone()'d in lxcStartContainer.
* Perform a number of container setup tasks:
/**
* lxcContainerStart:
- * @driver: pointer to driver structure
- * @vm: pointer to virtual machine structure
+ * @def: pointer to virtual machine structure
+ * @nveths: number of interfaces
+ * @veths: interface names
+ * @control: control FD to the container
+ * @ttyPath: path of tty to set as the container console
*
* Starts a container process by calling clone() with the namespace flags
*
} lxcTtyForwardFd_t;
/**
- * lxcTtyForward:
- * @appPty: Open fd for application facing Pty
- * @contPty: Open fd for container facing Pty
+ * lxcControllerMain
+ * @monitor: server socket fd to accept client requests
+ * @client: initial client which is the libvirtd daemon
+ * @appPty: open fd for application facing Pty
+ * @contPty: open fd for container facing Pty
*
* Forwards traffic between fds. Data read from appPty will be written to contPty
* This process loops forever.
/**
* lxcCleanupInterfaces:
- * @conn: pointer to connection
- * @vm: pointer to virtual machine structure
+ * @nveths: number of interfaces
+ * @veths: interface names
*
* Cleans up the container interfaces by deleting the veth device pairs.
*
/**
* lxcVmCleanup:
- * @vm: Ptr to VM to clean up
+ * @conn: pointer to connection
+ * @driver: pointer to driver structure
+ * @vm: pointer to VM to clean up
*
* waitpid() on the container process. kill and wait the tty process
* This is called by both lxcDomainDestroy and lxcSigHandler when a
*
* Returns 0 on success or -1 in case of error
*/
-static int lxcVMCleanup(virConnectPtr conn,
+static int lxcVmCleanup(virConnectPtr conn,
lxc_driver_t *driver,
virDomainObjPtr vm)
{
/**
* lxcSetupInterfaces:
+ * @conn: pointer to connection
* @def: pointer to virtual machine structure
+ * @nveths: number of interfaces
+ * @veths: interface names
*
* Sets up the container interfaces by creating the veth device pairs and
* attaching the parent end to the appropriate bridge. The container end
vm->state = VIR_DOMAIN_SHUTDOWN;
- return lxcVMCleanup(conn, driver, vm);
+ return lxcVmCleanup(conn, driver, vm);
}
static void lxcMonitorEvent(int watch,
/**
* lxcDomainShutdown:
- * @dom: Ptr to domain to shutdown
+ * @dom: pointer to domain to shutdown
*
* Sends SIGINT to container root process to request it to shutdown
*
/**
* lxcDomainDestroy:
- * @dom: Ptr to domain to destroy
+ * @dom: pointer to domain to destroy
*
* Sends SIGKILL to container root process to terminate the container
*
/**
* moveInterfaceToNetNs:
- * @interface: name of device
+ * @iface: name of device
* @pidInNs: PID of process in target net namespace
*
* Moves the given device into the target net namespace specified by the given
* pid using this command:
- * ip link set interface netns pidInNs
+ * ip link set @iface netns @pidInNs
*
* Returns 0 on success or -1 in case of error
*/