Lines Matching refs:fp
92 fpp = &fpl->fp[fpl->count]; in scm_fp_copy()
120 struct scm_fp_list *fpl = scm->fp; in __scm_destroy()
124 scm->fp = NULL; in __scm_destroy()
126 fput(fpl->fp[i]); in __scm_destroy()
160 err=scm_fp_copy(cmsg, &p->fp); in __scm_send()
202 if (p->fp && !p->fp->count) in __scm_send()
204 kfree(p->fp); in __scm_send()
205 p->fp = NULL; in __scm_send()
260 int fdnum = scm->fp->count; in scm_detach_fds()
261 struct file **fp = scm->fp->fp; in scm_detach_fds() local
282 err = security_file_receive(fp[i]); in scm_detach_fds()
296 sock = sock_from_file(fp[i], &err); in scm_detach_fds()
301 fd_install(new_fd, get_file(fp[i])); in scm_detach_fds()
339 new_fpl = kmemdup(fpl, offsetof(struct scm_fp_list, fp[fpl->count]), in scm_fp_dup()
343 get_file(fpl->fp[i]); in scm_fp_dup()