mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
libxl: remove dead code libxl__domain_shutdown_reason
There is no user in tree. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
ec55a3ae01
commit
72b42bc623
2 files changed
-18
No files matched your search
@@ -42,23 +42,6 @@ libxl_domain_type libxl__domain_type(libxl__gc *gc, uint32_t domid)
|
||||
return LIBXL_DOMAIN_TYPE_PV;
|
||||
}
|
||||
|
||||
int libxl__domain_shutdown_reason(libxl__gc *gc, uint32_t domid)
|
||||
{
|
||||
libxl_ctx *ctx = libxl__gc_owner(gc);
|
||||
xc_domaininfo_t info;
|
||||
int ret;
|
||||
|
||||
ret = xc_domain_getinfolist(ctx->xch, domid, 1, &info);
|
||||
if (ret != 1)
|
||||
return -1;
|
||||
if (info.domain != domid)
|
||||
return -1;
|
||||
if (!(info.flags & XEN_DOMINF_shutdown))
|
||||
return -1;
|
||||
|
||||
return (info.flags >> XEN_DOMINF_shutdownshift) & XEN_DOMINF_shutdownmask;
|
||||
}
|
||||
|
||||
int libxl__domain_cpupool(libxl__gc *gc, uint32_t domid)
|
||||
{
|
||||
xc_domaininfo_t info;
|
||||
|
||||
@@ -1043,7 +1043,6 @@ _hidden int libxl__file_reference_unmap(libxl__file_reference *f);
|
||||
|
||||
/* from xl_dom */
|
||||
_hidden libxl_domain_type libxl__domain_type(libxl__gc *gc, uint32_t domid);
|
||||
_hidden int libxl__domain_shutdown_reason(libxl__gc *gc, uint32_t domid);
|
||||
_hidden int libxl__domain_cpupool(libxl__gc *gc, uint32_t domid);
|
||||
_hidden libxl_scheduler libxl__domain_scheduler(libxl__gc *gc, uint32_t domid);
|
||||
_hidden int libxl__sched_set_params(libxl__gc *gc, uint32_t domid,
|
||||
|
||||