php-internal-docs 8.4.8
Unofficial docs for php/php-src
|
Go to the source code of this file.
Data Structures | |
struct | _zend_shared_segment |
struct | zend_shared_memory_handlers |
struct | _handler_entry |
struct | _zend_shared_memory_state |
struct | _zend_smm_shared_globals |
union | _align_test |
Macros | |
#define | ALLOC_FAILURE 0 |
#define | ALLOC_SUCCESS 1 |
#define | FAILED_REATTACHED 2 |
#define | SUCCESSFULLY_REATTACHED 4 |
#define | ALLOC_FAIL_MAPPING 8 |
#define | ALLOC_FALLBACK 9 |
#define | ZSMMG(element) |
#define | SHARED_ALLOC_REATTACHED (SUCCESS+1) |
#define | PLATFORM_ALIGNMENT (sizeof(align_test)) |
#define | ZEND_ALIGNED_SIZE(size) |
Typedefs | |
typedef struct _zend_shared_segment | zend_shared_segment |
typedef int(* | create_segments_t) (size_t requested_size, zend_shared_segment ***shared_segments, int *shared_segment_count, const char **error_in) |
typedef int(* | detach_segment_t) (zend_shared_segment *shared_segment) |
typedef struct _handler_entry | zend_shared_memory_handler_entry |
typedef struct _zend_shared_memory_state | zend_shared_memory_state |
typedef struct _zend_smm_shared_globals | zend_smm_shared_globals |
typedef union _align_test | align_test |
Variables | |
ZEND_EXT_API zend_smm_shared_globals * | smm_shared_globals |
#define ALLOC_FAIL_MAPPING 8 |
Definition at line 73 of file zend_shared_alloc.h.
#define ALLOC_FAILURE 0 |
Definition at line 69 of file zend_shared_alloc.h.
#define ALLOC_FALLBACK 9 |
Definition at line 74 of file zend_shared_alloc.h.
#define ALLOC_SUCCESS 1 |
Definition at line 70 of file zend_shared_alloc.h.
#define FAILED_REATTACHED 2 |
Definition at line 71 of file zend_shared_alloc.h.
#define PLATFORM_ALIGNMENT (sizeof(align_test)) |
Definition at line 171 of file zend_shared_alloc.h.
Definition at line 126 of file zend_shared_alloc.h.
#define SUCCESSFULLY_REATTACHED 4 |
Definition at line 72 of file zend_shared_alloc.h.
Definition at line 174 of file zend_shared_alloc.h.
#define ZSMMG | ( | element | ) |
Definition at line 124 of file zend_shared_alloc.h.
typedef union _align_test align_test |
typedef int(* create_segments_t) (size_t requested_size, zend_shared_segment ***shared_segments, int *shared_segment_count, const char **error_in) |
Definition at line 83 of file zend_shared_alloc.h.
typedef int(* detach_segment_t) (zend_shared_segment *shared_segment) |
Definition at line 84 of file zend_shared_alloc.h.
typedef struct _handler_entry zend_shared_memory_handler_entry |
typedef struct _zend_shared_memory_state zend_shared_memory_state |
typedef struct _zend_shared_segment zend_shared_segment |
typedef struct _zend_smm_shared_globals zend_smm_shared_globals |
const char * zend_accel_get_shared_model | ( | void | ) |
Definition at line 621 of file zend_shared_alloc.c.
bool zend_accel_in_shm | ( | void * | ptr | ) |
Definition at line 658 of file zend_shared_alloc.c.
void zend_accel_shared_protect | ( | bool | protected | ) |
Memory write protection
protected | true to protect shared memory (read-only), false to unprotect shared memory (writable) |
Definition at line 626 of file zend_shared_alloc.c.
void * zend_shared_alloc | ( | size_t | size | ) |
Definition at line 367 of file zend_shared_alloc.c.
uint32_t zend_shared_alloc_checkpoint_xlat_table | ( | void | ) |
Definition at line 564 of file zend_shared_alloc.c.
Definition at line 559 of file zend_shared_alloc.c.
Definition at line 553 of file zend_shared_alloc.c.
size_t zend_shared_alloc_get_free_memory | ( | void | ) |
Definition at line 594 of file zend_shared_alloc.c.
Definition at line 582 of file zend_shared_alloc.c.
Definition at line 547 of file zend_shared_alloc.c.
Definition at line 481 of file zend_shared_alloc.c.
Definition at line 574 of file zend_shared_alloc.c.
Definition at line 609 of file zend_shared_alloc.c.
void zend_shared_alloc_restore_xlat_table | ( | uint32_t | checkpoint | ) |
Definition at line 569 of file zend_shared_alloc.c.
Definition at line 474 of file zend_shared_alloc.c.
Definition at line 599 of file zend_shared_alloc.c.
Definition at line 307 of file zend_shared_alloc.c.
int zend_shared_alloc_startup | ( | size_t | requested_size, |
size_t | reserved_size ) |
Definition at line 177 of file zend_shared_alloc.c.
Definition at line 520 of file zend_shared_alloc.c.
Definition at line 469 of file zend_shared_alloc.c.
Definition at line 454 of file zend_shared_alloc.c.
Definition at line 459 of file zend_shared_alloc.c.
Definition at line 444 of file zend_shared_alloc.c.
Definition at line 464 of file zend_shared_alloc.c.
Definition at line 449 of file zend_shared_alloc.c.
int zend_shared_memdup_size | ( | void * | p, |
size_t | size ) |
Definition at line 401 of file zend_shared_alloc.c.
|
extern |
Definition at line 56 of file zend_shared_alloc.c.