Searched refs:ls (Results 1 - 17 of 17) sorted by relevance

/tldk/app/nginx/src/core/
H A Dngx_connection.c24 ngx_listening_t *ls; local
28 ls = ngx_array_push(&cf->cycle->listening);
29 if (ls == NULL) {
33 ngx_memzero(ls, sizeof(ngx_listening_t));
42 ls->sockaddr = sa;
43 ls->socklen = socklen;
46 ls->addr_text.len = len;
48 switch (ls->sockaddr->sa_family) {
51 ls->addr_text_max_len = NGX_INET6_ADDRSTRLEN;
56 ls
95 ngx_clone_listening(ngx_conf_t *cf, ngx_listening_t *ls) argument
136 ngx_listening_t *ls; local
388 ngx_listening_t *ls; local
654 ngx_listening_t *ls; local
961 ngx_listening_t *ls; local
[all...]
H A Dngx_cycle.c52 ngx_listening_t *ls, *nls; local
499 ls = old_cycle->listening.elts;
501 ls[i].remain = 0;
508 if (ls[i].ignore) {
512 if (ls[i].remain) {
516 if (ls[i].type != nls[n].type) {
521 ls[i].sockaddr, ls[i].socklen, 1)
524 nls[n].fd = ls[i].fd;
525 nls[n].previous = &ls[
[all...]
H A Dnginx.c449 ngx_listening_t *ls; local
480 ls = ngx_array_push(&cycle->listening);
481 if (ls == NULL) {
485 ngx_memzero(ls, sizeof(ngx_listening_t));
487 ls->fd = (ngx_socket_t) s;
642 ngx_listening_t *ls; local
666 ls = cycle->listening.elts;
668 p = ngx_sprintf(p, "%ud;", ls[i].fd);
H A Dngx_connection.h208 ngx_int_t ngx_clone_listening(ngx_conf_t *cf, ngx_listening_t *ls);
/tldk/app/nginx/src/event/
H A Dngx_event_acceptex.c19 ngx_listening_t *ls; local
23 ls = c->listening;
31 "AcceptEx() %V failed", &ls->addr_text);
38 (char *) &ls->fd, sizeof(ngx_socket_t))
49 ls->post_accept_buffer_size,
50 ls->socklen + 16,
51 ls->socklen + 16,
55 if (ls->post_accept_buffer_size) {
57 c->buffer->end = c->buffer->start + ls->post_accept_buffer_size;
63 if (ls
91 ngx_event_post_acceptex(ngx_listening_t *ls, ngx_uint_t n) argument
[all...]
H A Dngx_event_accept.c32 ngx_listening_t *ls; local
54 ls = lc->listening;
58 "accept on %V, ready: %d", &ls->addr_text, ev->available);
161 c->pool = ngx_create_pool(ls->pool_size, ev->log);
204 *log = ls->log;
215 c->listening = ls;
216 c->local_sockaddr = ls->sockaddr;
217 c->local_socklen = ls->socklen;
264 if (ls->addr_ntop) {
265 c->addr_text.data = ngx_pnalloc(c->pool, ls
331 ngx_listening_t *ls; local
680 ngx_listening_t *ls; local
705 ngx_listening_t *ls; local
[all...]
H A Dngx_event.c572 ngx_listening_t *ls; local
733 ls = cycle->listening.elts;
737 if (ls[i].reuseport && ls[i].worker != ngx_worker) {
742 c = ngx_get_connection(ls[i].fd, cycle->log);
748 c->type = ls[i].type;
749 c->log = &ls[i].log;
751 c->listening = &ls[i];
752 ls[i].connection = c;
760 rev->deferred_accept = ls[
[all...]
H A Dngx_event.h521 ngx_int_t ngx_event_post_acceptex(ngx_listening_t *ls, ngx_uint_t n);
/tldk/app/nginx/src/stream/
H A Dngx_stream_core_module.c588 ngx_stream_listen_t *ls, *als; local
612 ls = ngx_array_push(&cmcf->listen);
613 if (ls == NULL) {
617 ngx_memzero(ls, sizeof(ngx_stream_listen_t));
619 ngx_memcpy(&ls->sockaddr.sockaddr, &u.sockaddr, u.socklen);
621 ls->socklen = u.socklen;
622 ls->backlog = NGX_LISTEN_BACKLOG;
623 ls->type = SOCK_STREAM;
624 ls->wildcard = u.wildcard;
625 ls
[all...]
H A Dngx_stream.c442 ngx_listening_t *ls; local
479 ls = ngx_create_listening(cf, &addr[i].opt.sockaddr.sockaddr,
481 if (ls == NULL) {
485 ls->addr_ntop = 1;
486 ls->handler = ngx_stream_init_connection;
487 ls->pool_size = 256;
488 ls->type = addr[i].opt.type;
492 ls->logp = cscf->error_log;
493 ls->log.data = &ls
[all...]
/tldk/app/nginx/src/mail/
H A Dngx_mail_core_module.c301 ngx_mail_listen_t *ls; local
326 ls = cmcf->listen.elts;
330 if (ngx_cmp_sockaddr(&ls[i].sockaddr.sockaddr, ls[i].socklen,
342 ls = ngx_array_push(&cmcf->listen);
343 if (ls == NULL) {
347 ngx_memzero(ls, sizeof(ngx_mail_listen_t));
349 ngx_memcpy(&ls->sockaddr.sockaddr, &u.sockaddr, u.socklen);
351 ls->socklen = u.socklen;
352 ls
[all...]
H A Dngx_mail.c282 ngx_listening_t *ls; local
319 ls = ngx_create_listening(cf, &addr[i].opt.sockaddr.sockaddr,
321 if (ls == NULL) {
325 ls->addr_ntop = 1;
326 ls->handler = ngx_mail_init_connection;
327 ls->pool_size = 256;
331 ls->logp = cscf->error_log;
332 ls->log.data = &ls->addr_text;
333 ls
[all...]
/tldk/lib/libtle_memtank/
H A Dmemtank.c108 struct mchunk_list *ls; local
112 ls = &mt->chl[k];
113 rte_spinlock_lock(&ls->lock);
123 TAILQ_REMOVE(&ls->chunk, ch, link);
127 TAILQ_REMOVE(&ls->chunk, ch, link);
128 TAILQ_INSERT_HEAD(&ls->chunk, ch, link);
131 rte_spinlock_unlock(&ls->lock);
135 ls = &mt->chl[k];
136 rte_spinlock_lock(&ls->lock);
137 TAILQ_INSERT_HEAD(&ls
146 struct mchunk_list *ls; local
204 struct mchunk_head ls; local
301 get_chunk(struct mchunk_list *ls, struct mchunk_head *els, struct mchunk_head *uls, void *obj[], uint32_t nb_obj) argument
485 free_mchunk_list(struct memtank *mt, struct mchunk_list *ls) argument
[all...]
H A Dmisc.c104 struct mchunk_list *ls; local
108 ls = &mt->chl[idx];
111 rte_spinlock_lock(&ls->lock);
113 for (ch = TAILQ_FIRST(&ls->chunk); ch != NULL;
130 rte_spinlock_unlock(&ls->lock);
337 struct mchunk_list *ls; local
340 ls = &mt->chl[tc];
341 rte_spinlock_lock(&ls->lock);
344 for (n = 0, ch = TAILQ_FIRST(&ls->chunk); ch != NULL;
348 rte_spinlock_unlock(&ls
[all...]
/tldk/app/nginx/src/tldk/
H A Dmodule.c350 ngx_listening_t *ls; local
354 ls = cycle->listening.elts;
357 if (ls[i].ignore != 0 || ls[i].listen == 0)
360 ngx_close_socket(ls[i].fd);
361 ls[i].fd = -1;
363 getnameinfo(ls[i].sockaddr, ls[i].socklen,
367 ls[i].fd = tldk_open_bind_listen(tcx,
368 ls[
[all...]
/tldk/app/nginx/src/http/
H A Dngx_http.c1630 ngx_listening_t *ls; local
1661 ls = ngx_http_add_listening(cf, &addr[i]);
1662 if (ls == NULL) {
1671 ls->servers = hport;
1675 switch (ls->sockaddr->sa_family) {
1691 if (ngx_clone_listening(cf, ls) != NGX_OK) {
1706 ngx_listening_t *ls; local
1710 ls = ngx_create_listening(cf, &addr->opt.sockaddr.sockaddr,
1712 if (ls == NULL) {
1716 ls
[all...]
/tldk/app/nginx/src/os/unix/
H A Dngx_process_cycle.c84 ngx_listening_t *ls; local
207 ls = cycle->listening.elts;
209 if (ngx_close_socket(ls[n].fd) == -1) {
212 &ls[n].addr_text);
789 ngx_listening_t *ls; local
891 ls = cycle->listening.elts;
893 ls[i].previous = NULL;

Completed in 13 milliseconds