Apache HTTPD
Modules | Classes | Macros | Typedefs | Enumerations | Functions
Multi-Processing Module library

Modules

 MPM query
 

Classes

struct  ap_LINK_mpm_t
 
struct  ap_LINK_child_status_t
 
struct  ap_LINK_end_generation_t
 

Macros

#define AP_MONCONTROL(x)
 

Typedefs

typedef struct ap_LINK_mpm_t ap_LINK_mpm_t
 
typedef void() ap_mpm_callback_fn_t(void *baton)
 
typedef enum mpm_child_status mpm_child_status
 
typedef struct ap_LINK_child_status_t ap_LINK_child_status_t
 
typedef struct ap_LINK_end_generation_t ap_LINK_end_generation_t
 

Enumerations

enum  mpm_child_status { MPM_CHILD_STARTED , MPM_CHILD_EXITED , MPM_CHILD_LOST_SLOT }
 

Functions

void ap_hook_mpm (ap_HOOK_mpm_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
int ap_run_mpm (apr_pool_t *pconf, apr_pool_t *plog, server_rec *server_conf)
 
apr_array_header_tap_hook_get_mpm (void)
 
apr_status_t ap_os_create_privileged_process (const request_rec *r, apr_proc_t *newproc, const char *progname, const char *const *args, const char *const *env, apr_procattr_t *attr, apr_pool_t *p)
 
apr_status_t ap_mpm_register_timed_callback (apr_time_t t, ap_mpm_callback_fn_t *cbfn, void *baton)
 
void ap_hook_child_status (ap_HOOK_child_status_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
void ap_run_child_status (server_rec *s, pid_t pid, ap_generation_t gen, int slot, mpm_child_status state)
 
apr_array_header_tap_hook_get_child_status (void)
 
void ap_hook_end_generation (ap_HOOK_end_generation_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
 
void ap_run_end_generation (server_rec *s, ap_generation_t gen)
 
apr_array_header_tap_hook_get_end_generation (void)
 

Detailed Description

Macro Definition Documentation

◆ AP_MONCONTROL

#define AP_MONCONTROL (   x)

Definition at line 255 of file ap_mpm.h.

Typedef Documentation

◆ ap_LINK_child_status_t

◆ ap_LINK_end_generation_t

◆ ap_LINK_mpm_t

◆ ap_mpm_callback_fn_t

typedef void() ap_mpm_callback_fn_t(void *baton)

Definition at line 198 of file ap_mpm.h.

◆ mpm_child_status

Enumeration Type Documentation

◆ mpm_child_status

Enumerator
MPM_CHILD_STARTED 
MPM_CHILD_EXITED 
MPM_CHILD_LOST_SLOT 

Definition at line 205 of file ap_mpm.h.

Function Documentation

◆ ap_hook_child_status()

void ap_hook_child_status ( ap_HOOK_child_status_t pf,
const char *const aszPre,
const char *const aszSucc,
int  nOrder 
)

Definition at line 109 of file mpm_common.c.

◆ ap_hook_end_generation()

void ap_hook_end_generation ( ap_HOOK_end_generation_t pf,
const char *const aszPre,
const char *const aszSucc,
int  nOrder 
)

Definition at line 106 of file mpm_common.c.

◆ ap_hook_get_child_status()

apr_array_header_t * ap_hook_get_child_status ( void  )

Definition at line 109 of file mpm_common.c.

◆ ap_hook_get_end_generation()

apr_array_header_t * ap_hook_get_end_generation ( void  )

Definition at line 106 of file mpm_common.c.

◆ ap_hook_get_mpm()

apr_array_header_t * ap_hook_get_mpm ( void  )

Definition at line 97 of file mpm_common.c.

◆ ap_hook_mpm()

void ap_hook_mpm ( ap_HOOK_mpm_t pf,
const char *const aszPre,
const char *const aszSucc,
int  nOrder 
)

Definition at line 97 of file mpm_common.c.

◆ ap_mpm_register_timed_callback()

apr_status_t ap_mpm_register_timed_callback ( apr_time_t  t,
ap_mpm_callback_fn_t cbfn,
void *  baton 
)

Definition at line 543 of file mpm_common.c.

◆ ap_os_create_privileged_process()

apr_status_t ap_os_create_privileged_process ( const request_rec r,
apr_proc_t newproc,
const char progname,
const char *const args,
const char *const env,
apr_procattr_t attr,
apr_pool_t p 
)

Spawn a process with privileges that another module has requested

Parameters
rThe request_rec of the current request
newprocThe resulting process handle.
prognameThe program to run
argsthe arguments to pass to the new program. The first one should be the program name.
envThe new environment apr_table_t for the new process. This should be a list of NULL-terminated strings.
attrthe procattr we should use to determine how to create the new process
pThe pool to use.

◆ ap_run_child_status()

void ap_run_child_status ( server_rec s,
pid_t  pid,
ap_generation_t  gen,
int  slot,
mpm_child_status  state 
)

Definition at line 109 of file mpm_common.c.

◆ ap_run_end_generation()

void ap_run_end_generation ( server_rec s,
ap_generation_t  gen 
)

Definition at line 106 of file mpm_common.c.

◆ ap_run_mpm()

int ap_run_mpm ( apr_pool_t pconf,
apr_pool_t plog,
server_rec server_conf 
)

< Module declines to handle

< Module declines to handle

Definition at line 97 of file mpm_common.c.