49 #define shm_toc_initialize_estimator(e) \
50 ((e)->space_for_chunks = 0, (e)->number_of_keys = 0)
51 #define shm_toc_estimate_chunk(e, sz) \
52 ((e)->space_for_chunks = add_size((e)->space_for_chunks, BUFFERALIGN(sz)))
53 #define shm_toc_estimate_keys(e, cnt) \
54 ((e)->number_of_keys = add_size((e)->number_of_keys, cnt))
shm_toc * shm_toc_attach(uint64 magic, void *address)
shm_toc * shm_toc_create(uint64 magic, void *address, Size nbytes)
Size shm_toc_estimate(shm_toc_estimator *e)
Size shm_toc_freespace(shm_toc *toc)
void shm_toc_insert(shm_toc *toc, uint64 key, void *address)
void * shm_toc_allocate(shm_toc *toc, Size nbytes)
void * shm_toc_lookup(shm_toc *toc, uint64 key, bool noError)