Lines Matching refs:ret

291 	int ret;
296 ret = pool_pset_enable();
297 if (ret != 0)
298 return (ret);
322 return (ret);
331 int ret;
338 ret = pool_pset_disable();
339 if (ret != 0)
340 return (ret);
455 int ret;
463 ret = pool_do_bind(pool_default, P_POOLID, poolid, POOL_BIND_ALL);
464 if (ret == 0) {
470 ret = zone_walk(pool_destroy_zone_cb, &dzarg);
472 ASSERT(ret == 0);
482 return (ret);
491 int ret;
498 ret = pool_pool_create((poolid_t *)id);
503 ret = pool_pset_create((psetid_t *)id);
506 ret = EINVAL;
510 ret = ENOTSUP;
513 ret = EINVAL;
515 return (ret);
524 int ret;
531 ret = pool_pool_destroy((poolid_t)id);
536 ret = pool_pset_destroy((psetid_t)id);
539 ret = EINVAL;
543 ret = ENOTSUP;
546 ret = EINVAL;
548 return (ret);
557 int ret = 0;
565 ret = pool_enable();
566 if (ret != 0)
567 return (ret);
572 ret = pool_disable();
573 if (ret != 0)
574 return (ret);
579 ret = EINVAL;
581 return (ret);
590 int ret;
597 ret = pool_pset_assoc(poolid, (psetid_t)id);
598 if (ret == 0)
602 ret = EINVAL;
604 if (ret == 0)
606 return (ret);
615 int ret;
622 ret = pool_pset_assoc(poolid, PS_NONE);
623 if (ret == 0)
627 ret = EINVAL;
629 if (ret == 0)
631 return (ret);
641 int ret = EINVAL;
643 return (ret);
667 int ret;
675 ret = pool_pset_xtransfer((psetid_t)src_pset,
677 if (ret == 0) {
687 ret = EINVAL;
689 return (ret);
833 int ret = 0;
844 ret = ENOMEM;
848 return (ret);
860 int ret = 0;
892 ret = EINVAL;
894 return (ret);
980 int ret;
983 ret = pool_propput_common(pool_sys_prop, pair, pool_prop_sys);
984 if (ret == 0)
986 return (ret);
992 int ret;
995 ret = pool_proprm_common(pool_sys_prop, name, pool_prop_sys);
996 if (ret == 0)
998 return (ret);
1005 int ret;
1010 ret = pool_propput_common(pool->pool_props, pair, pool_prop_pool);
1011 if (ret == 0)
1013 return (ret);
1019 int ret;
1025 ret = pool_proprm_common(pool->pool_props, name, pool_prop_pool);
1026 if (ret == 0)
1028 return (ret);
1034 int ret;
1041 ret = pool_system_propput(pair);
1044 ret = pool_pool_propput((poolid_t)id, pair);
1049 ret = pool_pset_propput((psetid_t)id, pair);
1052 ret = EINVAL;
1056 ret = ENOTSUP;
1061 ret = pool_cpu_propput((processorid_t)id, pair);
1064 ret = EINVAL;
1068 ret = EINVAL;
1070 return (ret);
1076 int ret;
1083 ret = pool_system_proprm(name);
1086 ret = pool_pool_proprm((poolid_t)id, name);
1091 ret = pool_pset_proprm((psetid_t)id, name);
1094 ret = EINVAL;
1098 ret = ENOTSUP;
1103 ret = pool_cpu_proprm((processorid_t)id, name);
1106 ret = EINVAL;
1110 ret = EINVAL;
1112 return (ret);
1118 int ret;
1130 ret = EINVAL;
1135 ret = pool_pset_propget((psetid_t)id, name, nvl);
1138 ret = EINVAL;
1142 ret = ENOTSUP;
1147 ret = pool_cpu_propget((processorid_t)id, name, nvl);
1150 ret = EINVAL;
1154 ret = EINVAL;
1156 if (ret == 0)
1160 return (ret);
1229 int ret;
1251 ret = CL_ALLOC(buf, cid, KM_SLEEP);
1252 ASSERT(ret == 0);
1269 ret = CL_ENTERCLASS(t, cid, NULL, NULL, *buf);
1270 ASSERT(ret == 0);