PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
void * | GetNamedDSMSegment (const char *name, size_t size, void(*init_callback)(void *ptr), bool *found) |
Size | DSMRegistryShmemSize (void) |
void | DSMRegistryShmemInit (void) |
void DSMRegistryShmemInit | ( | void | ) |
Definition at line 69 of file dsm_registry.c.
References DSA_HANDLE_INVALID, DSMRegistryCtxStruct::dsah, DSHASH_HANDLE_INVALID, DSMRegistryCtxStruct::dshh, DSMRegistryCtx, DSMRegistryShmemSize(), and ShmemInitStruct().
Referenced by CreateOrAttachShmemStructs().
Size DSMRegistryShmemSize | ( | void | ) |
Definition at line 63 of file dsm_registry.c.
References MAXALIGN.
Referenced by CalculateShmemSize(), and DSMRegistryShmemInit().
void* GetNamedDSMSegment | ( | const char * | name, |
size_t | size, | ||
void(*)(void *ptr) | init_callback, | ||
bool * | found | ||
) |
Definition at line 131 of file dsm_registry.c.
References Assert, dshash_find_or_insert(), dshash_release_lock(), dsm_attach(), dsm_create(), dsm_find_mapping(), dsm_pin_mapping(), dsm_pin_segment(), dsm_registry_table, dsm_segment_address(), dsm_segment_handle(), elog, ereport, errmsg(), ERROR, DSMRegistryEntry::handle, init_dsm_registry(), MemoryContextSwitchTo(), name, DSMRegistryEntry::size, size, and TopMemoryContext.
Referenced by apw_init_shmem(), injection_init_shmem(), and tdr_attach_shmem().