Home
last modified time | relevance | path

Searched refs:self (Results 1 – 24 of 24) sorted by relevance

/xen/tools/pygrub/src/
A DLiloConf.py15 def __repr__(self): argument
20 " initrd: %s\n" %(self.title, self.root, self.kernel,
21 self.args, self.initrd))
23 self._initrd = self._kernel = self._readonly = None
24 self._args = ""
25 self.title = ""
28 self.root = ""
51 self._kernel = (None, self.path + "/" + val)
57 self._initrd = (None, self.path + "/" + val)
135 setattr(self, self.commands[com], arg.strip())
[all …]
A DGrubConf.py56 (self.disk, self.part) = str.split(",", 2)
61 def __repr__(self): argument
63 return "d%dp%d" %(self.disk, self.part)
102 " initrd: %s\n" %(self.title, self.root, self.kernel,
103 self.args, self.initrd))
109 self._root = self._initrd = self._kernel = self._args = None
149 setattr(self, self.commands[com], arg.strip())
221 setattr(self, self.commands[com], arg.strip())
308 setattr(self, self.commands[com], arg.strip())
340 setattr(self, self.commands[com], arg.strip())
[all …]
A DExtLinuxConf.py23 def __repr__(self): argument
28 " initrd: %s\n" %(self.title, self.root, self.kernel,
29 self.args, self.initrd))
31 self._initrd = self._kernel = self._readonly = None
32 self._args = ""
33 self.title = ""
34 self.lines = []
35 self.path = path
36 self.root = ""
175 setattr(self, self.commands[com], arg.strip())
[all …]
A Dpygrub207 self.line.insert(self.pos, chr(ch))
217 if self.pos < len(self.line):
218 self.line.pop(self.pos)
220 if self.pos < len(self.line):
221 self.line.pop(self.pos)
223 self.pos = len(self.line)
225 if self.pos < len(self.line):
228 self.line = self.line[:self.pos]
279 self.start_image = self.selected_image
280 if self.selected_image < self.start_image:
[all …]
/xen/tools/libxl/
A Didl.py55 self.typename = self.namespace + typename
66 self.copy_fn = kwargs.setdefault('copy_fn', self.typename + "_copy")
80 if self.typename is not None and not self.private:
101 def hidden(self): argument
102 if self._hidden:
159 self.width = w
166 self.rawname = str.upper(enum.rawname) + "_" + self.valuename
167 self.name = str.upper(enum.value_namespace) + self.rawname
184 self.values.append(EnumerationValue(self, num, name,
346 return [self[x] for x in self.__ordered]
[all …]
/xen/xen/tools/kconfig/tests/
A Dconftest.py30 def __init__(self, request): argument
82 self.retcode = ps.returncode
93 self.config = None
105 print(self.stdout)
108 print(self.stderr)
110 if self.config is not None:
112 print(self.config)
114 return self.retcode
144 def defconfig(self, defconfig): argument
231 return self._read_and_compare(
[all …]
/xen/tools/misc/
A Dxenpvnetboot80 def prepare(self): argument
84 def cleanup(self): argument
98 def prepare(self): argument
100 self.srcdir = tempfile.mkdtemp(prefix='xenpvboot.', dir=self.tmpdir)
102 mount(self.location[4:], self.srcdir, '-o ro')
110 mount(self.location, self.srcdir, option)
112 def cleanup(self): argument
125 def prepare(self): argument
127 self.nfsdir = tempfile.mkdtemp(prefix='xenpvboot.', dir=self.tmpdir)
135 mount(os.path.join(self.nfsdir, iso), self.srcdir, option)
[all …]
/xen/tools/python/xen/migration/
A Dlibxc.py132 self.version = 0
136 def verify(self): argument
139 self.verify_ihdr()
140 self.verify_dhdr()
146 def verify_ihdr(self): argument
164 self.version = version
185 def verify_dhdr(self): argument
210 def verify_record(self): argument
448 if self.version < 3:
455 if self.version < 3:
[all …]
A Dlibxl.py75 def __init__(self, info, read): argument
76 VerifyBase.__init__(self, info, read)
79 def verify(self): argument
82 self.verify_hdr()
84 while self.verify_record() != REC_TYPE_end:
88 def verify_hdr(self): argument
117 def verify_record(self): argument
124 self.info("Libxl Record: %s, length %d" %
128 content = self.rdexact(contentsz)
144 def verify_record_end(self, content): argument
[all …]
A Dverify.py21 def __init__(self, info, read): argument
23 self.info = info
24 self.read = read
26 def rdexact(self, nr_bytes): argument
28 _ = self.read(nr_bytes)
33 def unpack_exact(self, fmt): argument
36 return unpack(fmt, self.rdexact(sz))
A Dtests.py16 def test_format_sizes(self): argument
30 self.assertEqual(calcsize(fmt), sz)
35 def test_format_sizes(self): argument
42 self.assertEqual(calcsize(fmt), sz)
/xen/tools/python/xen/lowlevel/xs/
A Dxs.c795 self->xh = NULL; in xspy_close()
872 *xh = xshandle(self); in parse_transaction_path()
961 if (self == NULL) in xshandle_new()
964 self->xh = NULL; in xshandle_new()
966 if (!self->watches) in xshandle_new()
969 return (PyObject *)self; in xshandle_new()
973 Py_DECREF(self); in xshandle_new()
989 if (!self->xh) in xshandle_init()
1001 if (self->xh) { in xshandle_dealloc()
1003 self->xh = NULL; in xshandle_dealloc()
[all …]
/xen/tools/python/xen/lowlevel/xc/
A Dxc.c762 XcObject *xc = (XcObject *)self; in pyxc_physdev_map_pirq()
1184 XcObject *xc = (XcObject *)self; in pyxc_shadow_control()
1207 XcObject *xc = (XcObject *)self; in pyxc_shadow_mem_control()
1401 XcObject *xc = (XcObject *)self; in pyxc_domain_irq_permission()
1424 XcObject *xc = (XcObject *)self; in pyxc_domain_iomem_permission()
2455 if (self == NULL) in PyXc_new()
2458 self->xc_handle = NULL; in PyXc_new()
2460 return (PyObject *)self; in PyXc_new()
2476 if (self->xc_handle) { in PyXc_dealloc()
2478 self->xc_handle = NULL; in PyXc_dealloc()
[all …]
/xen/tools/xenmon/
A Dxenmon.py121 def __init__(self): argument
123 self.gotten_sum = 0
182 … return [self.gotten_stats(passed), self.allocated_stats(passed), self.blocked_stats(passed),
183 self.waited_stats(passed), self.ec_stats(passed), self.io_stats(passed)]
541 self.opened = 0
548 self.file = open(self.filename, self.saved_mode)
550 self.file.write(self.delay_data)
556 def flush(self): argument
557 if self.opened:
560 def close(self): argument
[all …]
/xen/xen/tools/
A Dgen-cpuid.py14 def __init__(self, input, output): argument
16 self.source = input
17 self.input = open_file_or_fd(input, "r", 2)
18 self.output = open_file_or_fd(output, "w", 2)
21 self.names = {} # Value => Name mapping
22 self.values = {} # Name => Value mapping
23 self.raw = {
32 self.pv_def = set() # PV default features
34 self.hvm_hap_def = set() # HVM HAP default features
35 self.pv_max = set() # PV max features
[all …]
/xen/tools/python/scripts/
A Dconvert-legacy-stream61 def __init__(self, fmt): argument
63 self.p2m_size = 0
66 self.max_vcpu_id = 0
67 self.online_vcpu_map = []
68 self.width = 0
69 self.levels = 0
70 self.basic_len = 0
71 self.extd = False
72 self.xsave_len = 0
75 self.libxl = fmt == "libxl"
[all …]
/xen/tools/python/
A Dpylintrc176 # * methods without self as first argument
178 # * access only to existant members via self
/xen/docs/man/
A Dxl.conf.5.pod164 The self-balloon mechanism can deflate/inflate the balloon
A Dxl.1.pod.in990 domains. Xentop has a curses interface, and is reasonably self explanatory.
A Dxl.cfg.5.pod.in2068 concatenated together. Each table self describes its length so no additional
/xen/docs/specs/
A Dlibxl-migration-stream.pandoc36 self-contained, extensible stream with each layer responsible for its own
/xen/xen/xsm/flask/policy/
A Daccess_vectors129 # see also the domain2 relabel{from,to,self} permissions
/xen/tools/ocaml/xenstored/
A Dprocess.ml345 debug "Found no culprit for conflict in %s: must be self or not in history." con;
/xen/stubdom/
A Dlwip.patch-cvs1538 + /* Packet to self, enqueue it for loopback */

Completed in 52 milliseconds