Lines Matching defs:stack
780 * Dbreg ids from closed files are kept on a stack in shared memory
782 * process keeps open files in an array by ID.) Push them to the stack and
785 * The stack is protected by the mtx_filelist, and both functions assume it
796 int32_t *stack, *newstack;
808 /* Check if we have room on the stack. */
820 stack = R_ADDR(infop, lp->free_fid_stack);
821 memcpy(newstack, stack,
823 __env_alloc_free(infop, stack);
830 stack = R_ADDR(infop, lp->free_fid_stack);
831 stack[lp->free_fids++] = id;
842 int32_t *stack;
849 stack = R_ADDR(&dblp->reginfo, lp->free_fid_stack);
850 *id = stack[--lp->free_fids];
859 * Remove a particular dbreg id from the stack of free ids. This is
861 * be on the stack.
873 int32_t *stack;
884 stack = R_ADDR(&dblp->reginfo, lp->free_fid_stack);
886 if (id == stack[i]) {
890 * and shorten the stack by one.
892 stack[i] = stack[lp->free_fids - 1];