Lines Matching full:scm
2 /* scm.c - Socket level control messages processing.
37 #include <net/scm.h>
122 void __scm_destroy(struct scm_cookie *scm) in __scm_destroy() argument
124 struct scm_fp_list *fpl = scm->fp; in __scm_destroy()
128 scm->fp = NULL; in __scm_destroy()
309 void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) in scm_detach_fds() argument
314 int fdmax = min_t(int, scm_max_fds(msg), scm->fp->count); in scm_detach_fds()
323 scm_detach_fds_compat(msg, scm); in scm_detach_fds()
328 err = receive_fd_user(scm->fp->fp[i], cmsg_data + i, o_flags); in scm_detach_fds()
350 if (i < scm->fp->count || (scm->fp->count && fdmax <= 0)) in scm_detach_fds()
357 __scm_destroy(scm); in scm_detach_fds()