PostgreSQL Source Code git master
Loading...
Searching...
No Matches
dsm_registry.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * dsm_registry.h
4 * Functions for interfacing with the dynamic shared memory registry.
5 *
6 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
8 *
9 * src/include/storage/dsm_registry.h
10 *
11 *-------------------------------------------------------------------------
12 */
13#ifndef DSM_REGISTRY_H
14#define DSM_REGISTRY_H
15
16#include "lib/dshash.h"
17
18extern void *GetNamedDSMSegment(const char *name, size_t size,
19 void (*init_callback) (void *ptr, void *arg),
20 bool *found, void *arg);
21extern dsa_area *GetNamedDSA(const char *name, bool *found);
22extern dshash_table *GetNamedDSHash(const char *name,
23 const dshash_parameters *params,
24 bool *found);
25extern Size DSMRegistryShmemSize(void);
26extern void DSMRegistryShmemInit(void);
27
28#endif /* DSM_REGISTRY_H */
size_t Size
Definition c.h:619
dsa_area * GetNamedDSA(const char *name, bool *found)
void * GetNamedDSMSegment(const char *name, size_t size, void(*init_callback)(void *ptr, void *arg), bool *found, void *arg)
void DSMRegistryShmemInit(void)
dshash_table * GetNamedDSHash(const char *name, const dshash_parameters *params, bool *found)
Size DSMRegistryShmemSize(void)
void * arg
static int fb(int x)
const char * name