|
PostgreSQL Source Code git master
|
#include "lib/dshash.h"

Go to the source code of this file.
Functions | |
| void * | GetNamedDSMSegment (const char *name, size_t size, void(*init_callback)(void *ptr), bool *found) |
| dsa_area * | GetNamedDSA (const char *name, bool *found) |
| dshash_table * | GetNamedDSHash (const char *name, const dshash_parameters *params, bool *found) |
| Size | DSMRegistryShmemSize (void) |
| void | DSMRegistryShmemInit (void) |
| void DSMRegistryShmemInit | ( | void | ) |
Definition at line 123 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 117 of file dsm_registry.c.
References MAXALIGN.
Referenced by CalculateShmemSize(), and DSMRegistryShmemInit().
| dsa_area * GetNamedDSA | ( | const char * | name, |
| bool * | found | ||
| ) |
Definition at line 274 of file dsm_registry.c.
References Assert(), DSMRegistryEntry::dsa, dsa_attach(), dsa_create, dsa_get_handle(), DSA_HANDLE_INVALID, dsa_is_attached(), dsa_pin(), dsa_pin_mapping(), dshash_find_or_insert(), dshash_release_lock(), dsm_registry_table, DSMR_ENTRY_TYPE_DSA, ereport, errmsg(), ERROR, init_dsm_registry(), LWLockNewTrancheId(), MemoryContextSwitchTo(), name, TopMemoryContext, DSMRegistryEntry::type, and type.
Referenced by tdr_attach_shmem().
| dshash_table * GetNamedDSHash | ( | const char * | name, |
| const dshash_parameters * | params, | ||
| bool * | found | ||
| ) |
Definition at line 355 of file dsm_registry.c.
References Assert(), dsa_attach(), dsa_create, dsa_get_handle(), NamedDSHState::dsa_handle, DSA_HANDLE_INVALID, dsa_is_attached(), dsa_pin(), dsa_pin_mapping(), DSMRegistryEntry::dsh, NamedDSHState::dsh_handle, dshash_attach(), dshash_create(), dshash_find_or_insert(), dshash_get_hash_table_handle(), DSHASH_HANDLE_INVALID, dshash_release_lock(), dsm_registry_table, DSMR_ENTRY_TYPE_DSH, ereport, errmsg(), ERROR, init_dsm_registry(), LWLockNewTrancheId(), MemoryContextSwitchTo(), name, TopMemoryContext, NamedDSHState::tranche, dshash_parameters::tranche_id, DSMRegistryEntry::type, and type.
Referenced by tdr_attach_shmem().
| void * GetNamedDSMSegment | ( | const char * | name, |
| size_t | size, | ||
| void(*)(void *ptr) | init_callback, | ||
| bool * | found | ||
| ) |
Definition at line 186 of file dsm_registry.c.
References Assert(), dshash_find_or_insert(), dshash_release_lock(), DSMRegistryEntry::dsm, dsm_attach(), dsm_create(), dsm_find_mapping(), DSM_HANDLE_INVALID, dsm_pin_mapping(), dsm_pin_segment(), dsm_registry_table, dsm_segment_address(), dsm_segment_handle(), DSMR_ENTRY_TYPE_DSM, elog, ereport, errmsg(), ERROR, init_dsm_registry(), MemoryContextSwitchTo(), name, TopMemoryContext, DSMRegistryEntry::type, and type.
Referenced by apw_init_shmem(), injection_init_shmem(), tdr_attach_shmem(), test_dsa_basic(), and test_dsa_resowners().