Lines Matching full:scm
2 /* scm.c - Socket level control messages processing.
36 #include <net/scm.h>
116 void __scm_destroy(struct scm_cookie *scm) in __scm_destroy() argument
118 struct scm_fp_list *fpl = scm->fp; in __scm_destroy()
122 scm->fp = NULL; in __scm_destroy()
297 void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) in scm_detach_fds() argument
302 int fdmax = min_t(int, scm_max_fds(msg), scm->fp->count); in scm_detach_fds()
311 scm_detach_fds_compat(msg, scm); in scm_detach_fds()
316 err = receive_fd_user(scm->fp->fp[i], cmsg_data + i, o_flags); in scm_detach_fds()
338 if (i < scm->fp->count || (scm->fp->count && fdmax <= 0)) in scm_detach_fds()
345 __scm_destroy(scm); in scm_detach_fds()