Lines Matching +full:shared +full:- +full:memory
29 * Interfaces to allocate, control, and free a shared memory lock
30 * XXXX Could we use a semaphore or a shared memory condition variable
47 * prb_shmem_init() - Allocates and initializes the shared memory region
58 if (shmem_fd == -1) { in prb_shmem_init()
66 if (smp == (struct shmem_msg *) - 1) { in prb_shmem_init()
72 /* sets the shared memory region to cause waiting */ in prb_shmem_init()
73 smp->spin = B_TRUE; in prb_shmem_init()
81 * prb_shmem_wait() - spins until the shared memory flag is cleared
86 return (smp->spin); in getspin()
106 * prb_shmem_clear() - clears the shared memory flag and allows waiters to
114 smp->spin = B_FALSE; in prb_shmem_clear()
120 * prb_shmem_free() - Unmaps the shared memory region.
128 DBG((void) fprintf(stderr, "couldn't munmap shared memory\n")); in prb_shmem_free()