Lines Matching defs:stack
777 * Dbreg ids from closed files are kept on a stack in shared memory
779 * process keeps open files in an array by ID.) Push them to the stack and
782 * The stack is protected by the mtx_filelist, and both functions assume it
793 int32_t *stack, *newstack;
805 /* Check if we have room on the stack. */
817 stack = R_ADDR(infop, lp->free_fid_stack);
818 memcpy(newstack, stack,
820 __env_alloc_free(infop, stack);
827 stack = R_ADDR(infop, lp->free_fid_stack);
828 stack[lp->free_fids++] = id;
839 int32_t *stack;
846 stack = R_ADDR(&dblp->reginfo, lp->free_fid_stack);
847 *id = stack[--lp->free_fids];
856 * Remove a particular dbreg id from the stack of free ids. This is
858 * be on the stack.
870 int32_t *stack;
881 stack = R_ADDR(&dblp->reginfo, lp->free_fid_stack);
883 if (id == stack[i]) {
887 * and shorten the stack by one.
889 stack[i] = stack[lp->free_fids - 1];