667
697
if (p->block_size < PA_PAGE_SIZE)
668
698
p->block_size = PA_PAGE_SIZE;
674
709
if (pa_shm_create_rw(&p->memory, p->n_blocks * p->block_size, shared, 0700) < 0) {
717
pa_bytes_snprint(t1, sizeof(t1), (unsigned) p->block_size),
679
720
memset(&p->stat, 0, sizeof(p->stat));
680
721
pa_atomic_store(&p->n_init, 0);
682
723
PA_LLIST_HEAD_INIT(pa_memimport, p->imports);
683
724
PA_LLIST_HEAD_INIT(pa_memexport, p->exports);