Lines Matching defs:kret
370 kern_return_t kret = KERN_INVALID_ADDRESS; /* default fail */
453 * this here to prevent locking later. We use the value of kret to
467 kret = semaphore_create(kernel_task, &new_pinfo->psem_semobject, SYNC_POLICY_FIFO, value);
469 if (kret != KERN_SUCCESS) {
470 switch (kret) {
621 * kret signals whether or not we successfully created a
625 if (kret == KERN_SUCCESS) {
810 kern_return_t kret;
840 kret = semaphore_wait(pinfo->psem_semobject);
841 switch (kret) {
870 kern_return_t kret;
904 kret = semaphore_timedwait(pinfo->psem_semobject, MACH_TIMESPEC_ZERO);
905 switch (kret) {
935 kern_return_t kret;
965 kret = semaphore_signal(pinfo->psem_semobject);
966 switch (kret) {
1058 kern_return_t kret;
1060 kret = semaphore_destroy(kernel_task, pinfo->psem_semobject);
1065 switch (kret) {