xsutil.py

来自「xen虚拟机源代码安装包」· Python 代码 · 共 33 行

PY
33
字号
# Copyright (C) 2005 Christian Limpach <Christian.Limpach@cl.cam.ac.uk># This file is subject to the terms and conditions of the GNU General# Public License.  See the file "COPYING" in the main directory of# this archive for more details.import threadingimport xen.lowlevel.xsxs_lock = threading.Lock()xs_handle = Nonedef xshandle():    global xs_handle, xs_lock    if not xs_handle:        xs_lock.acquire()        if not xs_handle:            xs_handle = xen.lowlevel.xs.xs()        xs_lock.release()    return xs_handledef IntroduceDomain(domid, page, port):    return xshandle().introduce_domain(domid, page, port)def SetTarget(domid, target):    return xshandle().set_target(domid, target)def GetDomainPath(domid):    return xshandle().get_domain_path(domid)def ResumeDomain(domid):    return xshandle().resume_domain(domid)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?