PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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-2025, 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
16extern void *GetNamedDSMSegment(const char *name, size_t size,
17 void (*init_callback) (void *ptr),
18 bool *found);
19
20extern Size DSMRegistryShmemSize(void);
21extern void DSMRegistryShmemInit(void);
22
23#endif /* DSM_REGISTRY_H */
size_t Size
Definition: c.h:576
void DSMRegistryShmemInit(void)
Definition: dsm_registry.c:69
Size DSMRegistryShmemSize(void)
Definition: dsm_registry.c:63
void * GetNamedDSMSegment(const char *name, size_t size, void(*init_callback)(void *ptr), bool *found)
Definition: dsm_registry.c:131
const char * name