Lines Matching refs:imgp

102 static int	linux_copyout_strings(struct image_params *imgp,
106 struct image_params *imgp, uintptr_t stack);
109 struct image_params *imgp);
135 linux32_arch_copyout_auxargs(struct image_params *imgp, Elf_Auxinfo **pos) in linux32_arch_copyout_auxargs() argument
570 linux_exec_setregs(struct thread *td, struct image_params *imgp, in linux_exec_setregs() argument
597 regs->tf_rip = imgp->entry_addr; in linux_exec_setregs()
607 regs->tf_rbx = (register_t)imgp->ps_strings; in linux_exec_setregs()
618 linux_copyout_strings(struct image_params *imgp, uintptr_t *stack_base) in linux_copyout_strings() argument
628 arginfo = (struct linux32_ps_strings *)PROC_PS_STRINGS(imgp->proc); in linux_copyout_strings()
631 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in linux_copyout_strings()
632 execpath_len = strlen(imgp->execpath) + 1; in linux_copyout_strings()
635 imgp->execpathp = (void *)destp; in linux_copyout_strings()
636 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in linux_copyout_strings()
644 imgp->canary = (void *)destp; in linux_copyout_strings()
645 error = copyout(canary, imgp->canary, sizeof(canary)); in linux_copyout_strings()
650 destp -= ARG_MAX - imgp->args->stringspace; in linux_copyout_strings()
654 if (imgp->auxargs) { in linux_copyout_strings()
669 vectp -= imgp->args->argc + 1 + imgp->args->envc + 1; in linux_copyout_strings()
674 stringp = imgp->args->begin_argv; in linux_copyout_strings()
675 argc = imgp->args->argc; in linux_copyout_strings()
676 envc = imgp->args->envc; in linux_copyout_strings()
680 ARG_MAX - imgp->args->stringspace); in linux_copyout_strings()
719 if (imgp->auxargs) { in linux_copyout_strings()
721 error = imgp->sysent->sv_copyout_auxargs(imgp, in linux_copyout_strings()
824 linux_on_exec_vmspace(struct proc *p, struct image_params *imgp) in linux_on_exec_vmspace() argument
829 LINUX32_VDSOPAGE_SIZE, imgp); in linux_on_exec_vmspace()
831 error = linux_on_exec(p, imgp); in linux_on_exec_vmspace()