PostgreSQL Source Code  git master
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-2024, 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 extern void *GetNamedDSMSegment(const char *name, size_t size,
17  void (*init_callback) (void *ptr),
18  bool *found);
19 
20 extern Size DSMRegistryShmemSize(void);
21 extern void DSMRegistryShmemInit(void);
22 
23 #endif /* DSM_REGISTRY_H */
size_t Size
Definition: c.h:605
void DSMRegistryShmemInit(void)
Definition: dsm_registry.c:69
void * GetNamedDSMSegment(const char *name, size_t size, void(*init_callback)(void *ptr), bool *found)
Definition: dsm_registry.c:131
Size DSMRegistryShmemSize(void)
Definition: dsm_registry.c:63
static pg_noinline void Size size
Definition: slab.c:607
const char * name