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