Searched refs:slot (Results 1 - 15 of 15) sorted by relevance

/httpd/modules/slotmem/
H A Dmod_slotmem_plain.c17 /* Memory handler for a plain memory divided in slot.
28 apr_size_t size; /* size of each memory slot */
166 static apr_status_t slotmem_get(ap_slotmem_instance_t *slot, unsigned int id, unsigned char *dest, apr_size_t dest_len) argument
172 if (!slot) {
176 inuse = slot->inuse + id;
177 if (id >= slot->num) {
180 if (AP_SLOTMEM_IS_PREGRAB(slot) && !*inuse) {
183 ret = slotmem_dptr(slot, id, &ptr);
192 static apr_status_t slotmem_put(ap_slotmem_instance_t *slot, unsigned int id, unsigned char *src, apr_size_t src_len) argument
198 if (!slot) {
218 slotmem_num_slots(ap_slotmem_instance_t *slot) argument
223 slotmem_num_free_slots(ap_slotmem_instance_t *slot) argument
234 slotmem_slot_size(ap_slotmem_instance_t *slot) argument
243 slotmem_grab(ap_slotmem_instance_t *slot, unsigned int *id) argument
267 slotmem_fgrab(ap_slotmem_instance_t *slot, unsigned int id) argument
283 slotmem_release(ap_slotmem_instance_t *slot, unsigned int id) argument
[all...]
H A Dmod_slotmem_shm.c17 /* Memory handler for a shared memory divided in slot.
52 apr_size_t size; /* size of each memory slot */
67 unsigned int *num_free; /* slot free count for this instance */
69 sharedslotdesc_t desc; /* per slot desc */
122 static void slotmem_clearinuse(ap_slotmem_instance_t *slot) argument
127 if (!slot) {
131 inuse = slot->inuse;
133 for (i = 0; i < slot->desc.num; i++, inuse++) {
136 (*slot->num_free)++;
531 static apr_status_t slotmem_dptr(ap_slotmem_instance_t *slot, argument
551 slotmem_get(ap_slotmem_instance_t *slot, unsigned int id, unsigned char *dest, apr_size_t dest_len) argument
578 slotmem_put(ap_slotmem_instance_t *slot, unsigned int id, unsigned char *src, apr_size_t src_len) argument
605 slotmem_num_slots(ap_slotmem_instance_t *slot) argument
610 slotmem_num_free_slots(ap_slotmem_instance_t *slot) argument
625 slotmem_slot_size(ap_slotmem_instance_t *slot) argument
630 slotmem_grab(ap_slotmem_instance_t *slot, unsigned int *id) argument
659 slotmem_fgrab(ap_slotmem_instance_t *slot, unsigned int id) argument
683 slotmem_release(ap_slotmem_instance_t *slot, unsigned int id) argument
[all...]
/httpd/server/mpm/mpmt_os2/
H A Dmpmt_os2.c106 static void spawn_child(int slot);
197 int listener_num, num_listeners, slot; local
278 for (slot=0; slot < HARD_SERVER_LIMIT; slot++) {
279 active_children += ap_scoreboard_image->parent[slot].pid != 0 &&
280 !ap_scoreboard_image->parent[slot].quiescing;
284 for (slot=0; slot < HARD_SERVER_LIMIT && active_children < ap_daemons_to_start; slot
326 spawn_child(int slot) argument
[all...]
/httpd/include/
H A Dap_slotmem.h20 /* Memory handler for a shared memory divided in slot.
124 * get the memory ptr associated with this worker slot.
127 * @param mem address to store the pointer to the slot
132 * get/read the data associated with this worker slot.
141 * put/write the data associated with this worker slot.
144 * @param src address of the data to store in the slot
145 * @param src_len length of dataset to store in the slot
148 apr_status_t (* put)(ap_slotmem_instance_t *slot, unsigned int item_id, unsigned char *src, apr_size_t src_len);
164 * return slot size allocated for this entry.
166 * @return size of slot
[all...]
H A Dap_mpm.h263 * along with the generation and scoreboard slot of the process changing
267 * its scoreboard slot if the child process is exiting and the scoreboard
268 * slot is needed by other processes. When this occurs, the hook will be
274 * @param slot The scoreboard slot number, or -1. It will be -1 when an
276 * scoreboard slot.
282 int slot, mpm_child_status state))
H A Dmpm_common.h388 int slot, mpm_child_status status);
/httpd/server/mpm/prefork/
H A Dprefork.c110 * The max child slot ever assigned, preserved across restarts. Necessary
213 static void prefork_note_child_started(int slot, pid_t pid) argument
215 ap_scoreboard_image->parent[slot].pid = pid;
217 ap_scoreboard_image->parent[slot].pid,
218 retained->my_generation, slot, MPM_CHILD_STARTED);
235 prefork_note_child_killed(/* slot */ 0, 0, 0);
753 static int make_child(server_rec *s, int slot, int bucket) argument
757 if (slot + 1 > retained->max_daemons_limit) {
758 retained->max_daemons_limit = slot + 1;
771 prefork_note_child_started(slot, getpi
[all...]
/httpd/server/mpm/worker/
H A Dworker.c154 * The max child slot ever assigned, preserved across restarts. Necessary
390 if (childnum != -1) { /* child had a scoreboard slot? */
402 static void worker_note_child_started(int slot, pid_t pid) argument
404 ap_scoreboard_image->parent[slot].pid = pid;
406 ap_scoreboard_image->parent[slot].pid,
407 retained->my_generation, slot, MPM_CHILD_STARTED);
410 static void worker_note_child_lost_slot(int slot, pid_t newpid) argument
413 "pid %" APR_PID_T_FMT " taking over scoreboard slot from "
416 ap_scoreboard_image->parent[slot].pid,
417 ap_scoreboard_image->parent[slot]
1402 make_child(server_rec *s, int slot, int bucket) argument
[all...]
/httpd/server/mpm/motorz/
H A Dmotorz.c538 static void motorz_note_child_started(motorz_core_t *mz, int slot, pid_t pid) argument
540 ap_scoreboard_image->parent[slot].pid = pid;
542 ap_scoreboard_image->parent[slot].pid,
543 mz->my_generation, slot, MPM_CHILD_STARTED);
559 motorz_note_child_killed(/* slot */ 0, 0, 0);
1038 static int make_child(motorz_core_t *mz, server_rec *s, int slot, int bucket) argument
1042 if (slot + 1 > mz->max_daemons_limit) {
1043 mz->max_daemons_limit = slot + 1;
1056 motorz_note_child_started(mz, slot, getpid());
1057 child_main(mz, slot,
[all...]
/httpd/server/mpm/event/
H A Devent.c362 * The max child slot ever assigned, preserved across restarts. Necessary
604 if (childnum != -1) { /* child had a scoreboard slot? */
616 static void event_note_child_started(int slot, pid_t pid) argument
618 ap_scoreboard_image->parent[slot].pid = pid;
620 ap_scoreboard_image->parent[slot].pid,
621 retained->my_generation, slot, MPM_CHILD_STARTED);
624 static void event_note_child_lost_slot(int slot, pid_t newpid) argument
627 "pid %" APR_PID_T_FMT " taking over scoreboard slot from "
630 ap_scoreboard_image->parent[slot].pid,
631 ap_scoreboard_image->parent[slot]
2673 make_child(server_rec * s, int slot, int bucket) argument
[all...]
/httpd/server/mpm/netware/
H A Dmpm_netware.c123 * The max child slot ever assigned, preserved across restarts. Necessary
385 DBPRINT1 ("\n**Thread slot %d is shutting down", my_worker_num);
398 DBPRINT1 ("\nThread slot %d is shutting down\n", my_worker_num);
540 static int make_child(server_rec *s, int slot) argument
546 if (slot + 1 > ap_max_workers_limit) {
547 ap_max_workers_limit = slot + 1;
550 ap_update_child_status_from_indexes(0, slot, WORKER_STARTING,
553 if (ctx = NXContextAlloc((void (*)(void *)) worker_main, (void*)slot, NX_PRIO_MED, ap_thread_stacksize, NX_CTX_NORMAL, &err)) {
556 sprintf (threadName, "Apache_Worker %d", slot);
568 ap_update_child_status_from_indexes(0, slot, WORKER_DEA
[all...]
/httpd/server/mpm/winnt/
H A Dmpm_winnt.c139 static void winnt_note_child_started(int slot, pid_t pid) argument
141 ap_scoreboard_image->parent[slot].pid = pid;
143 ap_scoreboard_image->parent[slot].pid,
144 my_generation, slot, MPM_CHILD_STARTED);
147 static void winnt_note_child_killed(int slot) argument
150 ap_scoreboard_image->parent[slot].pid,
151 ap_scoreboard_image->parent[slot].generation,
152 slot, MPM_CHILD_EXITED);
153 ap_scoreboard_image->parent[slot].pid = 0;
782 winnt_note_child_started(/* slot */
[all...]
/httpd/server/
H A Dmpm_common.c124 (server_rec *s, pid_t pid, ap_generation_t gen, int slot, mpm_child_status status),
125 (s,pid,gen,slot,status))
490 ap_generation_t gen, int slot,
545 status_msg = "lost slot";
546 /* we don't track by slot, so it doesn't matter */
550 "mpm child %" APR_PID_T_FMT " (gen %d/slot %d) %s",
551 pid, gen, slot, status_msg);
489 ap_core_child_status(server_rec *s, pid_t pid, ap_generation_t gen, int slot, mpm_child_status status) argument
/httpd/modules/proxy/
H A Dmod_proxy.h771 * @param slot slotmem instance
777 ap_slotmem_instance_t *slot,
784 * @param slot slotmem instance
790 ap_slotmem_instance_t *slot,
H A Dproxy_util.c1709 * in which case the worker goes in the conf slot.
3232 ap_slotmem_instance_t *slot,
3238 limit = storage->num_slots(slot);
3240 if (storage->dptr(slot, i, (void *)&shm) != APR_SUCCESS) {
3253 ap_slotmem_instance_t *slot,
3259 limit = storage->num_slots(slot);
3261 if (storage->dptr(slot, i, (void *)&shm) != APR_SUCCESS) {
3231 ap_proxy_find_workershm(ap_slotmem_provider_t *storage, ap_slotmem_instance_t *slot, proxy_worker *worker, unsigned int *index) argument
3252 ap_proxy_find_balancershm(ap_slotmem_provider_t *storage, ap_slotmem_instance_t *slot, proxy_balancer *balancer, unsigned int *index) argument

Completed in 67 milliseconds