⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xsutil.py

📁 xen虚拟机源代码安装包
💻 PY
字号:
# 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -