Lines Matching refs:result
195 int result; in stub_xc_domain_create() local
256 result = xc_domain_create(_H(xch), &domid, &cfg); in stub_xc_domain_create()
259 if (result < 0) in stub_xc_domain_create()
297 int result; in dom_op() local
302 result = fn(_H(xch), c_domid); in dom_op()
304 if (result) in dom_op()
328 int result; in stub_xc_domain_resume_fast() local
333 result = xc_domain_resume(_H(xch), c_domid, 1); in stub_xc_domain_resume_fast()
335 if (result) in stub_xc_domain_resume_fast()
355 CAMLlocal5(result, tmp, arch_config, x86_arch_config, emul_list); in alloc_domaininfo()
358 result = caml_alloc_tuple(17); in alloc_domaininfo()
360 Store_field(result, 0, Val_int(info->domain)); in alloc_domaininfo()
361 Store_field(result, 1, Val_bool(info->flags & XEN_DOMINF_dying)); in alloc_domaininfo()
362 Store_field(result, 2, Val_bool(info->flags & XEN_DOMINF_shutdown)); in alloc_domaininfo()
363 Store_field(result, 3, Val_bool(info->flags & XEN_DOMINF_paused)); in alloc_domaininfo()
364 Store_field(result, 4, Val_bool(info->flags & XEN_DOMINF_blocked)); in alloc_domaininfo()
365 Store_field(result, 5, Val_bool(info->flags & XEN_DOMINF_running)); in alloc_domaininfo()
366 Store_field(result, 6, Val_bool(info->flags & XEN_DOMINF_hvm_guest)); in alloc_domaininfo()
367 Store_field(result, 7, Val_int((info->flags >> XEN_DOMINF_shutdownshift) in alloc_domaininfo()
369 Store_field(result, 8, caml_copy_nativeint(info->tot_pages)); in alloc_domaininfo()
370 Store_field(result, 9, caml_copy_nativeint(info->max_pages)); in alloc_domaininfo()
371 Store_field(result, 10, caml_copy_int64(info->shared_info_frame)); in alloc_domaininfo()
372 Store_field(result, 11, caml_copy_int64(info->cpu_time)); in alloc_domaininfo()
373 Store_field(result, 12, Val_int(info->nr_online_vcpus)); in alloc_domaininfo()
374 Store_field(result, 13, Val_int(info->max_vcpu_id)); in alloc_domaininfo()
375 Store_field(result, 14, caml_copy_int32(info->ssidref)); in alloc_domaininfo()
382 Store_field(result, 15, tmp); in alloc_domaininfo()
401 Store_field(result, 16, arch_config); in alloc_domaininfo()
404 CAMLreturn(result); in alloc_domaininfo()
410 CAMLlocal2(result, temp); in stub_xc_domain_getinfolist()
422 result = temp = Val_emptylist; in stub_xc_domain_getinfolist()
436 result = caml_alloc_small(2, Tag_cons); in stub_xc_domain_getinfolist()
437 Field(result, 0) = Val_int(0); in stub_xc_domain_getinfolist()
438 Field(result, 1) = temp; in stub_xc_domain_getinfolist()
439 temp = result; in stub_xc_domain_getinfolist()
441 Store_field(result, 0, alloc_domaininfo(info + i)); in stub_xc_domain_getinfolist()
445 CAMLreturn(result); in stub_xc_domain_getinfolist()
451 CAMLlocal1(result); in stub_xc_domain_getinfo()
461 result = alloc_domaininfo(&info); in stub_xc_domain_getinfo()
462 CAMLreturn(result); in stub_xc_domain_getinfo()
468 CAMLlocal1(result); in stub_xc_vcpu_getinfo()
481 result = caml_alloc_tuple(5); in stub_xc_vcpu_getinfo()
482 Store_field(result, 0, Val_bool(info.online)); in stub_xc_vcpu_getinfo()
483 Store_field(result, 1, Val_bool(info.blocked)); in stub_xc_vcpu_getinfo()
484 Store_field(result, 2, Val_bool(info.running)); in stub_xc_vcpu_getinfo()
485 Store_field(result, 3, caml_copy_int64(info.cpu_time)); in stub_xc_vcpu_getinfo()
486 Store_field(result, 4, caml_copy_int32(info.cpu)); in stub_xc_vcpu_getinfo()
488 CAMLreturn(result); in stub_xc_vcpu_getinfo()
601 int result; in stub_xc_evtchn_alloc_unbound() local
607 result = xc_evtchn_alloc_unbound(_H(xch), c_local_domid, in stub_xc_evtchn_alloc_unbound()
611 if (result < 0) in stub_xc_evtchn_alloc_unbound()
613 CAMLreturn(Val_int(result)); in stub_xc_evtchn_alloc_unbound()
828 CAMLlocal1(result); in stub_xc_version_version()
847 result = caml_alloc_tuple(3); in stub_xc_version_version()
849 Store_field(result, 0, Val_int(packed >> 16)); in stub_xc_version_version()
850 Store_field(result, 1, Val_int(packed & 0xffff)); in stub_xc_version_version()
851 Store_field(result, 2, caml_copy_string(extra)); in stub_xc_version_version()
853 CAMLreturn(result); in stub_xc_version_version()
860 CAMLlocal1(result); in stub_xc_version_compile_info()
871 result = caml_alloc_tuple(4); in stub_xc_version_compile_info()
873 Store_field(result, 0, caml_copy_string(ci.compiler)); in stub_xc_version_compile_info()
874 Store_field(result, 1, caml_copy_string(ci.compile_by)); in stub_xc_version_compile_info()
875 Store_field(result, 2, caml_copy_string(ci.compile_domain)); in stub_xc_version_compile_info()
876 Store_field(result, 3, caml_copy_string(ci.compile_date)); in stub_xc_version_compile_info()
878 CAMLreturn(result); in stub_xc_version_compile_info()
926 CAMLlocal1(result); in stub_map_foreign_range()
931 result = caml_alloc(sizeof(struct mmap_interface), Abstract_tag); in stub_map_foreign_range()
932 intf = (struct mmap_interface *) result; in stub_map_foreign_range()
945 CAMLreturn(result); in stub_map_foreign_range()