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
size_t Size
Definition:
c.h:605
DSMRegistryShmemInit
void DSMRegistryShmemInit(void)
Definition:
dsm_registry.c:69
GetNamedDSMSegment
void * GetNamedDSMSegment(const char *name, size_t size, void(*init_callback)(void *ptr), bool *found)
Definition:
dsm_registry.c:131
DSMRegistryShmemSize
Size DSMRegistryShmemSize(void)
Definition:
dsm_registry.c:63
size
static pg_noinline void Size size
Definition:
slab.c:607
name
const char * name
Definition:
wait_event_funcs.c:28
src
include
storage
dsm_registry.h
Generated on Sun Sep 15 2024 12:13:24 for PostgreSQL Source Code by
1.9.1