Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 5 of 5) sorted by relevance

/unit/src/
H A Dnxt_capability.c32 nxt_capabilities_t *cap);
36 nxt_capability_set(nxt_task_t *task, nxt_capabilities_t *cap) in nxt_capability_set() argument
38 nxt_assert(cap->setid == 0); in nxt_capability_set()
41 cap->setid = 1; in nxt_capability_set()
42 cap->chroot = 1; in nxt_capability_set()
46 return nxt_capability_specific_set(task, cap); in nxt_capability_set()
66 nxt_capability_specific_set(nxt_task_t *task, nxt_capabilities_t *cap) in nxt_capability_specific_set() argument
96 cap->chroot = 1; in nxt_capability_specific_set()
107 cap->setid = 1; in nxt_capability_specific_set()
114 nxt_capability_specific_set(nxt_task_t *task, nxt_capabilities_t *cap) in nxt_capability_specific_set() argument
H A Dnxt_port_memory.c49 uint32_t cap; in nxt_port_mmap_at() local
51 cap = port_mmaps->cap; in nxt_port_mmap_at()
53 if (cap == 0) { in nxt_port_mmap_at()
54 cap = i + 1; in nxt_port_mmap_at()
57 while (i + 1 > cap) { in nxt_port_mmap_at()
59 if (cap < 16) { in nxt_port_mmap_at()
60 cap = cap * 2; in nxt_port_mmap_at()
63 cap = cap + cap / 2; in nxt_port_mmap_at()
67 if (cap != port_mmaps->cap) { in nxt_port_mmap_at()
76 sizeof(nxt_port_mmap_t) * (cap - port_mmaps->cap)); in nxt_port_mmap_at()
[all …]
H A Dnxt_capability.h16 nxt_capabilities_t *cap);
H A Dnxt_process.h71 uint32_t cap; member
H A Dnxt_unit.c3686 cap = mmaps->cap; in nxt_unit_mmap_at()
3688 if (cap == 0) { in nxt_unit_mmap_at()
3689 cap = i + 1; in nxt_unit_mmap_at()
3692 while (i + 1 > cap) { in nxt_unit_mmap_at()
3694 if (cap < 16) { in nxt_unit_mmap_at()
3695 cap = cap * 2; in nxt_unit_mmap_at()
3698 cap = cap + cap / 2; in nxt_unit_mmap_at()
3702 if (cap != mmaps->cap) { in nxt_unit_mmap_at()
3711 for (n = mmaps->cap; n < cap; n++) { in nxt_unit_mmap_at()
3718 mmaps->cap = cap; in nxt_unit_mmap_at()
[all …]