bitkeeper revision 1.1108.1.16 (41010e2br7ouRoQI0b4MbAxS1GzgpA)

Allow specification of the domain id to use for a new domain.
This commit is contained in:
mjw@wray-m-3.hpl.hp.com committed 2004-07-23 13:10:03 +00:00
1 parent 33982265be
commit a45a1c42f6
4 files changed
+112 -17

No files matched your search

+5 -4
View File
@@ -44,13 +44,13 @@ static PyObject *pyxc_domain_create(PyObject *self,
unsigned int mem_kb = 0;
char *name = "(anon)";
int cpu = -1;
u32 dom;
u32 dom = 0;
int ret;
static char *kwd_list[] = { "mem_kb", "name", "cpu", NULL };
static char *kwd_list[] = { "dom", "mem_kb", "name", "cpu", NULL };
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "|isi", kwd_list,
&mem_kb, &name, &cpu) )
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "|iisi", kwd_list,
&dom, &mem_kb, &name, &cpu) )
return NULL;
if ( (ret = xc_domain_create(xc->xc_handle, mem_kb, name, cpu, &dom)) < 0 )
@@ -927,6 +927,7 @@ static PyMethodDef pyxc_methods[] = {
(PyCFunction)pyxc_domain_create,
METH_VARARGS | METH_KEYWORDS, "\n"
"Create a new domain.\n"
" dom [int, 0]: Domain identifier to use (allocated if zero).\n"
" mem_kb [int, 0]: Memory allocation, in kilobytes.\n"
" name [str, '(anon)']: Informative textual name.\n\n"
"Returns: [int] new domain identifier; -1 on error.\n" },
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.