Home
last modified time | relevance | path

Searched refs:map (Results 1 – 14 of 14) sorted by relevance

/unit/src/
H A Dnxt_clone.c148 if (map->size > 0) { in nxt_clone_credential_map_set()
160 p = nxt_sprintf(p, end, "%d %d %d", map->map[i].container, in nxt_clone_credential_map_set()
161 map->map[i].host, map->map[i].size); in nxt_clone_credential_map_set()
265 if (map->size == 0) { in nxt_clone_vldt_credential_uidmap()
280 id = map->map[0].host; in nxt_clone_vldt_credential_uidmap()
294 m = map->map[i]; in nxt_clone_vldt_credential_uidmap()
333 if (map->size == 0) { in nxt_clone_vldt_credential_gidmap()
345 m = map->map[0]; in nxt_clone_vldt_credential_gidmap()
374 if (map->size == 0) { in nxt_clone_vldt_credential_gidmap()
396 m = map->map[j]; in nxt_clone_vldt_credential_gidmap()
[all …]
H A Dnxt_mem_zone.c36 uint8_t map[4]; member
511 uint8_t *map; in nxt_mem_zone_alloc_small() local
522 map = p; in nxt_mem_zone_alloc_small()
525 map = page->u.map; in nxt_mem_zone_alloc_small()
562 map = p; in nxt_mem_zone_alloc_small()
566 map = page->u.map; in nxt_mem_zone_alloc_small()
570 map[0] = 0x80; in nxt_mem_zone_alloc_small()
595 if (map[n] != 0xFF) { in nxt_mem_zone_alloc_chunk()
825 u_char *map; in nxt_mem_zone_free_chunk() local
849 map = page->u.map; in nxt_mem_zone_free_chunk()
[all …]
H A Dnxt_clone.h20 nxt_clone_map_entry_t *map; member
48 nxt_clone_credential_map_t *map, nxt_credential_t *creds);
50 nxt_clone_credential_map_t *map, nxt_credential_t *creds);
H A Dnxt_mp.c36 uint32_t map; member
129 (__builtin_ffs(map) - 1)
133 ((map & (1 << chunk)) != 0)
137 map &= ~(1 << chunk)
141 map |= (1 << chunk)
544 n = nxt_mp_chunk_get_free(page->u.map); in nxt_mp_alloc_small()
545 nxt_mp_chunk_set_busy(page->u.map, n); in nxt_mp_alloc_small()
571 page->u.map = 0xFFFFFFFE; in nxt_mp_alloc_small()
893 if (nxt_slow_path(nxt_mp_chunk_is_free(page->u.map, chunk))) { in nxt_mp_chunk_free()
897 nxt_mp_chunk_set_free(page->u.map, chunk); in nxt_mp_chunk_free()
[all …]
H A Dnxt_isolation.c30 nxt_clone_credential_map_t *map);
266 nxt_conf_value_t *map_array, nxt_clone_credential_map_t *map) in nxt_isolation_credential_map() argument
292 map->size = nxt_conf_array_elements_count(map_array); in nxt_isolation_credential_map()
294 if (map->size == 0) { in nxt_isolation_credential_map()
298 map->map = nxt_mp_alloc(mp, map->size * sizeof(nxt_clone_map_entry_t)); in nxt_isolation_credential_map()
299 if (nxt_slow_path(map->map == NULL)) { in nxt_isolation_credential_map()
303 for (i = 0; i < map->size; i++) { in nxt_isolation_credential_map()
308 map->map + i); in nxt_isolation_credential_map()
H A Dnxt_conn_write.c272 void *map; in nxt_sendfile() local
277 map = nxt_mem_mmap(NULL, size + page_off, PROT_READ, MAP_SHARED, fd, in nxt_sendfile()
279 if (nxt_slow_path(map == MAP_FAILED)) { in nxt_sendfile()
283 res = write(s, nxt_pointer_to(map, page_off), size); in nxt_sendfile()
287 nxt_mem_munmap(map, size + page_off); in nxt_sendfile()
H A Dnxt_conf.h94 nxt_conf_map_t *map, nxt_uint_t n, void *data);
H A Dnxt_conf.c562 nxt_conf_map_object(nxt_mp_t *mp, nxt_conf_value_t *value, nxt_conf_map_t *map, in nxt_conf_map_object() argument
586 v = nxt_conf_get_object_member(value, &map[i].name, NULL); in nxt_conf_map_object()
592 ptr = nxt_pointer_to(data, map[i].offset); in nxt_conf_map_object()
594 switch (map[i].type) { in nxt_conf_map_object()
617 switch (map[i].type) { in nxt_conf_map_object()
669 switch (map[i].type) { in nxt_conf_map_object()
H A Dnxt_main_process.c31 nxt_conf_map_t *map; member
488 ret = nxt_conf_map_object(process->mem_pool, conf, nxt_app_maps[idx].map, in nxt_main_start_process_handler()
/unit/src/test/
H A Dnxt_clone_test.c489 nxt_clone_credential_map_t map; in nxt_clone_test_mappings() local
493 map.size = 0; in nxt_clone_test_mappings()
533 nxt_clone_credential_map_t *map) in nxt_clone_test_map_assert() argument
557 nxt_clone_credential_map_t *map) in nxt_clone_test_parse_map() argument
576 if (map->size == 0) { in nxt_clone_test_parse_map()
580 map->map = nxt_mp_alloc(rt->mem_pool, in nxt_clone_test_parse_map()
583 if (map->map == NULL) { in nxt_clone_test_parse_map()
587 for (i = 0; i < map->size; i++) { in nxt_clone_test_parse_map()
591 map->map[i].host = nxt_conf_get_number(value); in nxt_clone_test_parse_map()
594 map->map[i].container = nxt_conf_get_number(value); in nxt_clone_test_parse_map()
[all …]
/unit/test/java/get_params/
H A Dapp.java44 String map = ""; in doGet() local
46 map = map.concat(p.getKey() + "=" + String.join(",", p.getValue()) + " "); in doGet()
48 response.addHeader("X-Param-Map", map); in doGet()
/unit/test/
H A Dtest_upstreams_rr.py79 ups = list(map(lambda x: int(x[-1]), status))
/unit/
H A DREADME.md168 - The [project map](https://github.com/orgs/nginx/projects/1) on
/unit/src/java/nginx/unit/
H A DContext.java2432 FilterMap map = new FilterMap(this, sreg, dispatcherTypes,
2435 sreg.addFilter(map);
2459 FilterMap map = new FilterMap(this, p, dispatcherTypes,
2462 filter_maps_.add(map);