Lines Matching full:scm
2 /* scm.c - Socket level control messages processing.
37 #include <net/scm.h>
133 void __scm_destroy(struct scm_cookie *scm) in __scm_destroy() argument
135 struct scm_fp_list *fpl = scm->fp; in __scm_destroy()
139 scm->fp = NULL; in __scm_destroy()
320 void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) in scm_detach_fds() argument
325 int fdmax = min_t(int, scm_max_fds(msg), scm->fp->count); in scm_detach_fds()
334 scm_detach_fds_compat(msg, scm); in scm_detach_fds()
339 err = scm_recv_one_fd(scm->fp->fp[i], cmsg_data + i, o_flags); in scm_detach_fds()
361 if (i < scm->fp->count || (scm->fp->count && fdmax <= 0)) in scm_detach_fds()
368 __scm_destroy(scm); in scm_detach_fds()