|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "storage/shmem.h"#include "storage/shmem_internal.h"#include "utils/memutils.h"
Go to the source code of this file.
Data Structures | |
| struct | shmem_hash_allocator |
Typedefs | |
| typedef struct shmem_hash_allocator | shmem_hash_allocator |
Functions | |
| static void * | ShmemHashAlloc (Size size, void *alloc_arg) |
| void | ShmemRequestHashWithOpts (const ShmemHashOpts *options) |
| void | shmem_hash_init (void *location, ShmemStructOpts *base_options) |
| void | shmem_hash_attach (void *location, ShmemStructOpts *base_options) |
| HTAB * | ShmemInitHash (const char *name, int64 nelems, HASHCTL *infoP, int hash_flags) |
| HTAB * | shmem_hash_create (void *location, size_t size, bool found, const char *name, int64 nelems, HASHCTL *infoP, int hash_flags) |
| void shmem_hash_attach | ( | void * | location, |
| ShmemStructOpts * | base_options | ||
| ) |
Definition at line 79 of file shmem_hash.c.
References Assert, fb(), HASH_ATTACH, and shmem_hash_create().
Referenced by AttachShmemIndexEntry().
| HTAB * shmem_hash_create | ( | void * | location, |
| size_t | size, | ||
| bool | found, | ||
| const char * | name, | ||
| int64 | nelems, | ||
| HASHCTL * | infoP, | ||
| int | hash_flags | ||
| ) |
Definition at line 149 of file shmem_hash.c.
References fb(), HASH_ALLOC, HASH_ATTACH, hash_create(), HASH_FIXED_SIZE, HASH_SHARED_MEM, name, shmem_hash_allocator::next, and ShmemHashAlloc().
Referenced by InitShmemAllocator(), shmem_hash_attach(), shmem_hash_init(), and ShmemInitHash().
| void shmem_hash_init | ( | void * | location, |
| ShmemStructOpts * | base_options | ||
| ) |
Definition at line 63 of file shmem_hash.c.
References fb(), and shmem_hash_create().
Referenced by InitShmemIndexEntry().
Definition at line 193 of file shmem_hash.c.
References fb(), MAXALIGN, and result.
Referenced by shmem_hash_create().
Definition at line 117 of file shmem_hash.c.
References fb(), hash_estimate_size(), name, shmem_hash_create(), and ShmemInitStruct().
| void ShmemRequestHashWithOpts | ( | const ShmemHashOpts * | options | ) |
Definition at line 44 of file shmem_hash.c.
References Assert, fb(), hash_estimate_size(), memcpy(), MemoryContextAlloc(), SHMEM_KIND_HASH, ShmemRequestInternal(), and TopMemoryContext.