Lines Matching refs:ret

144 	ret := C.libxl_ctx_alloc(&ctx.ctx, C.LIBXL_VERSION, 0,
146 if ret != 0 {
147 return ctx, Error(ret)
180 ret := C.libxl_ctx_free(ctx.ctx)
181 if ret != 0 {
182 return Error(ret)
212 if ret := C.libxl_name_to_domid(Ctx.ctx, cname, &domid); ret != 0 {
213 return DomidInvalid, Error(ret)
436 ret := C.libxl_cpuid_parse_config(ccpl, s)
437 if ret != 0 {
583 ret := C.libxl_scheduler_from_string(cname, &cs)
584 if ret != 0 {
585 err = Error(-ret)
622 ret := C.libxl_cpupool_info(Ctx.ctx, &c_cpupool, C.uint32_t(Poolid))
623 if ret != 0 {
624 err = Error(-ret)
655 ret := C.libxl_cpupool_create(Ctx.ctx, name, C.libxl_scheduler(Scheduler),
657 if ret != 0 {
658 err = Error(-ret)
669 ret := C.libxl_cpupool_destroy(Ctx.ctx, C.uint32_t(Poolid))
670 if ret != 0 {
671 err = Error(-ret)
680 ret := C.libxl_cpupool_cpuadd(Ctx.ctx, C.uint32_t(Poolid), C.int(Cpu))
681 if ret != 0 {
682 err = Error(-ret)
698 ret := C.libxl_cpupool_cpuadd_cpumap(Ctx.ctx, C.uint32_t(Poolid), &cbm)
699 if ret != 0 {
700 err = Error(-ret)
709 ret := C.libxl_cpupool_cpuremove(Ctx.ctx, C.uint32_t(Poolid), C.int(Cpu))
710 if ret != 0 {
711 err = Error(-ret)
727 ret := C.libxl_cpupool_cpuremove_cpumap(Ctx.ctx, C.uint32_t(Poolid), &cbm)
728 if ret != 0 {
729 err = Error(-ret)
741 ret := C.libxl_cpupool_rename(Ctx.ctx, name, C.uint32_t(Poolid))
742 if ret != 0 {
743 err = Error(-ret)
754 ret := C.libxl_cpupool_cpuadd_node(Ctx.ctx, C.uint32_t(Poolid), C.int(Node), &ccpus)
755 if ret != 0 {
756 err = Error(-ret)
769 ret := C.libxl_cpupool_cpuremove_node(Ctx.ctx, C.uint32_t(Poolid), C.int(Node), &ccpus)
770 if ret != 0 {
771 err = Error(-ret)
782 ret := C.libxl_cpupool_movedomain(Ctx.ctx, C.uint32_t(Poolid), C.uint32_t(Id))
783 if ret != 0 {
784 err = Error(-ret)
943 ret := C.libxl_get_max_cpus(Ctx.ctx)
944 if ret < 0 {
945 err = Error(-ret)
948 maxCpus = int(ret)
954 ret := C.libxl_get_online_cpus(Ctx.ctx)
955 if ret < 0 {
956 err = Error(-ret)
959 onCpus = int(ret)
965 ret := C.libxl_get_max_nodes(Ctx.ctx)
966 if ret < 0 {
967 err = Error(-ret)
970 maxNodes = int(ret)
977 ret := C.libxl_get_free_memory(Ctx.ctx, &cmem)
979 if ret < 0 {
980 err = Error(-ret)
995 ret := C.libxl_get_physinfo(Ctx.ctx, &cphys)
997 if ret < 0 {
998 err = Error(ret)
1022 ret := C.libxl_domain_info(Ctx.ctx, &cdi, C.uint32_t(Id))
1024 if ret != 0 {
1025 err = Error(-ret)
1035 ret := C.libxl_domain_unpause(Ctx.ctx, C.uint32_t(Id), nil)
1037 if ret != 0 {
1038 err = Error(-ret)
1045 ret := C.libxl_domain_pause(Ctx.ctx, C.uint32_t(id), nil)
1047 if ret != 0 {
1048 err = Error(-ret)
1055 ret := C.libxl_domain_shutdown(Ctx.ctx, C.uint32_t(id), nil)
1057 if ret != 0 {
1058 err = Error(-ret)
1065 ret := C.libxl_domain_reboot(Ctx.ctx, C.uint32_t(id), nil)
1067 if ret != 0 {
1068 err = Error(-ret)
1129ret := C.libxl_console_get_tty(Ctx.ctx, C.uint32_t(id), C.int(consNum), C.libxl_console_type(conTy…
1130 if ret != 0 {
1131 err = Error(-ret)
1144 ret := C.libxl_primary_console_get_tty(Ctx.ctx, C.uint32_t(domid), &cpath)
1145 if ret != 0 {
1146 err = Error(-ret)
1164 ret := C.libxl_device_nic_add(Ctx.ctx, C.uint32_t(domid), &cnic, nil)
1165 if ret != 0 {
1166 return Error(ret)
1181 ret := C.libxl_device_nic_remove(Ctx.ctx, C.uint32_t(domid), &cnic, nil)
1182 if ret != 0 {
1183 return Error(ret)
1198 ret := C.libxl_device_pci_add(Ctx.ctx, C.uint32_t(domid), &cpci, nil)
1199 if ret != 0 {
1200 return Error(ret)
1215 ret := C.libxl_device_pci_remove(Ctx.ctx, C.uint32_t(domid), &cpci, nil)
1216 if ret != 0 {
1217 return Error(ret)
1232 ret := C.libxl_device_usbdev_add(Ctx.ctx, C.uint32_t(domid), &cusbdev, nil)
1233 if ret != 0 {
1234 return Error(ret)
1249 ret := C.libxl_device_usbdev_remove(Ctx.ctx, C.uint32_t(domid), &cusbdev, nil)
1250 if ret != 0 {
1251 return Error(ret)
1267 ret := C.libxl_domain_create_new(Ctx.ctx, &cconfig, &cdomid, nil, nil)
1268 if ret != 0 {
1269 return Domid(0), Error(ret)