Lines Matching defs:si_p
2474 td_syncinfo_t *si_p)
2497 si_p->si_type = TD_SYNC_MUTEX;
2498 si_p->si_shared_type =
2500 (void) memcpy(si_p->si_flags, &generic_so.lock.mutex_flag,
2502 si_p->si_state.mutex_locked =
2504 si_p->si_size = sizeof (generic_so.lock);
2505 si_p->si_has_waiters = generic_so.lock.mutex_waiters;
2506 si_p->si_rcount = generic_so.lock.mutex_rcount;
2507 si_p->si_prioceiling = generic_so.lock.mutex_ceiling;
2508 if (si_p->si_state.mutex_locked) {
2509 if (si_p->si_shared_type & USYNC_PROCESS)
2510 si_p->si_ownerpid =
2512 si_p->si_owner.th_ta_p = sh_p->sh_ta_p;
2513 si_p->si_owner.th_unique = generic_so.lock.mutex_owner;
2517 si_p->si_type = TD_SYNC_COND;
2518 si_p->si_shared_type =
2520 (void) memcpy(si_p->si_flags, generic_so.condition.flags.flag,
2522 si_p->si_size = sizeof (generic_so.condition);
2523 si_p->si_has_waiters =
2532 si_p->si_type = TD_SYNC_SEMA;
2533 si_p->si_shared_type =
2535 si_p->si_state.sem_count = generic_so.semaphore.count;
2536 si_p->si_size = sizeof (generic_so.semaphore);
2537 si_p->si_has_waiters =
2540 si_p->si_data = (psaddr_t)generic_so.semaphore.count;
2549 si_p->si_type = TD_SYNC_RWLOCK;
2550 si_p->si_shared_type =
2552 si_p->si_size = sizeof (generic_so.rwlock);
2556 si_p->si_state.nreaders = -1;
2557 si_p->si_is_wlock = 1;
2558 si_p->si_owner.th_ta_p = sh_p->sh_ta_p;
2559 si_p->si_owner.th_unique =
2561 if (si_p->si_shared_type & USYNC_PROCESS)
2562 si_p->si_ownerpid =
2565 si_p->si_state.nreaders = (rwstate & URW_READERS_MASK);
2567 si_p->si_has_waiters = ((rwstate & URW_HAS_WAITERS) != 0);
2570 si_p->si_data = (psaddr_t)generic_so.rwlock.readers;
2577 si_p->si_ta_p = sh_p->sh_ta_p;
2578 si_p->si_sv_addr = sh_p->sh_unique;
2584 * information for the synchronization variable into *si_p.
2588 __td_sync_get_info(const td_synchandle_t *sh_p, td_syncinfo_t *si_p)
2593 if (si_p == NULL)
2595 (void) memset(si_p, 0, sizeof (*si_p));
2603 return_val = sync_get_info_common(sh_p, ph_p, si_p);