Lines Matching refs:interp

185 	char *dot = strrchr(bprm->interp, '.');  in search_binfmt_handler()
248 struct binfmt_misc_interp *interp; in binfmt_misc_find_interp() local
250 list_for_each_entry(interp, interps, list) in binfmt_misc_find_interp()
251 if (!strcmp(interp->name, name)) in binfmt_misc_find_interp()
252 return interp; in binfmt_misc_find_interp()
287 struct binfmt_misc_interp *interp, *tmp; in entry_put_interpreters() local
289 list_for_each_entry_safe(interp, tmp, &e->interps, list) { in entry_put_interpreters()
290 list_del(&interp->list); in entry_put_interpreters()
291 close_interp_file(interp->file); in entry_put_interpreters()
292 dec_ucount(interp->ucounts, UCOUNT_BINFMT_MISC_INTERPRETERS); in entry_put_interpreters()
293 kfree(interp); in entry_put_interpreters()
319 struct binfmt_misc_interp *interp; in entry_attach_interpreter() local
334 interp = kmalloc(struct_size(interp, name, nlen + plen + 2), in entry_attach_interpreter()
336 if (!interp) { in entry_attach_interpreter()
341 interp->path = interp->name + nlen + 1; in entry_attach_interpreter()
342 strscpy(interp->name, name, nlen + 1); in entry_attach_interpreter()
343 strscpy(interp->name + nlen + 1, path, plen + 1); in entry_attach_interpreter()
344 interp->file = f; in entry_attach_interpreter()
345 interp->ucounts = ucounts; in entry_attach_interpreter()
347 list_add_tail_rcu(&interp->list, &e->interps); in entry_attach_interpreter()
533 struct binfmt_misc_interp *interp; in entry_open_interpreter() local
541 interp = list_first_entry(&e->interps, in entry_open_interpreter()
543 bound = interp->file; in entry_open_interpreter()
590 retval = copy_string_kernel(bprm->interp, bprm); in build_interp_argv()
1068 struct binfmt_misc_interp *interp; in bm_entry_show() local
1077 list_for_each_entry_rcu(interp, &e->interps, list) in bm_entry_show()
1079 interp->name, interp->path); in bm_entry_show()