Lines Matching defs:shm
35 # include <sys/shm.h>
111 struct shmTime *shm; /* pointer to shared memory segment */
231 up->shm = getShmTime(unit, up->forall);
237 if (up->shm != 0) {
239 up->shm->precision = PRECISION;
240 peer->precision = up->shm->precision;
241 up->shm->valid = 0;
242 up->shm->nsamples = NSAMPLES;
306 (void)shmdt((char *)up->shm);
310 UnmapViewOfFile(up->shm);
345 } else if (NULL == up->shm) { /* is this possible at all? */
386 volatile struct shmTime *shm = shm_in;
392 * This is the main routine. It snatches the time from the shm
395 if (shm == NULL) {
410 if (shm->valid == 0) {
415 cnt = shm->count;
423 memcpy(&shmcopy, (void*)(uintptr_t)shm, sizeof(struct shmTime));
424 shm->valid = 0;
432 if (shmcopy.mode > 0 && cnt != shm->count) {
525 volatile struct shmTime *shm;
540 if ((shm = up->shm) == NULL) {
543 shm = up->shm = getShmTime(unit, up->forall);
544 if (shm == NULL) {
552 status = shm_query(shm, &shm_stat);
568 refnumtoa(&peer->srcadr), shm->mode));
571 shm->mode);