Searched refs:fpl (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/net/core/
H A Dscm.c70 struct scm_fp_list *fpl = *fplp; scm_fp_copy() local
82 if (!fpl) scm_fp_copy()
84 fpl = kmalloc(sizeof(struct scm_fp_list), GFP_KERNEL); scm_fp_copy()
85 if (!fpl) scm_fp_copy()
87 *fplp = fpl; scm_fp_copy()
88 fpl->count = 0; scm_fp_copy()
89 fpl->max = SCM_MAX_FD; scm_fp_copy()
90 fpl->user = NULL; scm_fp_copy()
92 fpp = &fpl->fp[fpl->count]; scm_fp_copy()
94 if (fpl->count + num > fpl->max) scm_fp_copy()
109 fpl->count++; scm_fp_copy()
112 if (!fpl->user) scm_fp_copy()
113 fpl->user = get_uid(current_user()); scm_fp_copy()
120 struct scm_fp_list *fpl = scm->fp; __scm_destroy() local
123 if (fpl) { __scm_destroy()
125 for (i=fpl->count-1; i>=0; i--) __scm_destroy()
126 fput(fpl->fp[i]); __scm_destroy()
127 free_uid(fpl->user); __scm_destroy()
128 kfree(fpl); __scm_destroy()
331 struct scm_fp_list *scm_fp_dup(struct scm_fp_list *fpl) scm_fp_dup() argument
336 if (!fpl) scm_fp_dup()
339 new_fpl = kmemdup(fpl, offsetof(struct scm_fp_list, fp[fpl->count]), scm_fp_dup()
342 for (i = 0; i < fpl->count; i++) scm_fp_dup()
343 get_file(fpl->fp[i]); scm_fp_dup()
345 new_fpl->user = get_uid(fpl->user); scm_fp_dup()
/linux-4.4.14/drivers/s390/char/
H A Ddiag_ftp.c88 * @fpl: pointer to prepared LDFPL
92 * @fpl and FTP function code @cmd. In case of an error the function does
98 * 2. The FTP parameter list @fpl must be aligned to a double-word boundary.
99 * 3. fpl->bufaddr must be a real address, 4k aligned
101 static int diag_ftp_2c4(struct diag_ftp_ldfpl *fpl, diag_ftp_2c4() argument
113 : [rc] "=d" (rc), "+m" (*fpl) diag_ftp_2c4()
114 : [cmd] "0" (cmd), [addr] "d" (virt_to_phys(fpl)), diag_ftp_2c4()
/linux-4.4.14/include/net/
H A Dscm.h41 struct scm_fp_list *scm_fp_dup(struct scm_fp_list *fpl);

Completed in 201 milliseconds