Lines Matching refs:fp
833 if (skb && UNIXCB(skb).fp->count < SCM_MAX_FD) in __io_scm_file_account()
854 UNIXCB(skb).fp = fpl; in __io_scm_file_account()
861 fpl = UNIXCB(skb).fp; in __io_scm_file_account()
862 fpl->fp[fpl->count++] = get_file(file); in __io_scm_file_account()
892 struct scm_fp_list *fp; in io_rsrc_file_put() local
894 fp = UNIXCB(skb).fp; in io_rsrc_file_put()
895 for (i = 0; i < fp->count; i++) { in io_rsrc_file_put()
898 if (fp->fp[i] != file) in io_rsrc_file_put()
901 unix_notinflight(fp->user, fp->fp[i]); in io_rsrc_file_put()
902 left = fp->count - 1 - i; in io_rsrc_file_put()
904 memmove(&fp->fp[i], &fp->fp[i + 1], in io_rsrc_file_put()
907 fp->count--; in io_rsrc_file_put()
908 if (!fp->count) { in io_rsrc_file_put()