Lines Matching full:scm
9 #include <net/scm.h>
13 #include "scm.h"
107 int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb) in unix_attach_fds() argument
119 UNIXCB(skb).fp = scm_fp_dup(scm->fp); in unix_attach_fds()
123 for (i = scm->fp->count - 1; i >= 0; i--) in unix_attach_fds()
124 unix_inflight(scm->fp->user, scm->fp->fp[i]); in unix_attach_fds()
129 void unix_detach_fds(struct scm_cookie *scm, struct sk_buff *skb) in unix_detach_fds() argument
133 scm->fp = UNIXCB(skb).fp; in unix_detach_fds()
136 for (i = scm->fp->count-1; i >= 0; i--) in unix_detach_fds()
137 unix_notinflight(scm->fp->user, scm->fp->fp[i]); in unix_detach_fds()
143 struct scm_cookie scm; in unix_destruct_scm() local
145 memset(&scm, 0, sizeof(scm)); in unix_destruct_scm()
146 scm.pid = UNIXCB(skb).pid; in unix_destruct_scm()
148 unix_detach_fds(&scm, skb); in unix_destruct_scm()
152 scm_destroy(&scm); in unix_destruct_scm()