Searched refs:scm (Results 1 – 6 of 6) sorted by relevance
/net/unix/ |
D | af_unix.c | 127 static void unix_get_secdata(struct scm_cookie *scm, struct sk_buff *skb) in unix_get_secdata() argument 129 memcpy(UNIXSID(skb), &scm->secid, sizeof(u32)); in unix_get_secdata() 132 static inline void unix_set_secdata(struct scm_cookie *scm, struct sk_buff *skb) in unix_set_secdata() argument 134 scm->secid = *UNIXSID(skb); in unix_set_secdata() 137 static inline void unix_get_secdata(struct scm_cookie *scm, struct sk_buff *skb) in unix_get_secdata() argument 140 static inline void unix_set_secdata(struct scm_cookie *scm, struct sk_buff *skb) in unix_set_secdata() argument 1292 static void unix_detach_fds(struct scm_cookie *scm, struct sk_buff *skb) in unix_detach_fds() argument 1296 scm->fp = UNIXCB(skb).fp; in unix_detach_fds() 1300 for (i = scm->fp->count-1; i >= 0; i--) in unix_detach_fds() 1301 unix_notinflight(scm->fp->fp[i]); in unix_detach_fds() [all …]
|
/net/core/ |
D | scm.c | 104 void __scm_destroy(struct scm_cookie *scm) in __scm_destroy() argument 106 struct scm_fp_list *fpl = scm->fp; in __scm_destroy() 110 scm->fp = NULL; in __scm_destroy() 226 void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) in scm_detach_fds() argument 232 int fdnum = scm->fp->count; in scm_detach_fds() 233 struct file **fp = scm->fp->fp; in scm_detach_fds() 238 scm_detach_fds_compat(msg, scm); in scm_detach_fds() 292 __scm_destroy(scm); in scm_detach_fds()
|
D | Makefile | 5 obj-y := sock.o request_sock.o skbuff.o iovec.o datagram.o stream.o scm.o \
|
/net/netlink/ |
D | af_netlink.c | 1227 struct scm_cookie scm; in netlink_sendmsg() local 1232 if (NULL == siocb->scm) in netlink_sendmsg() 1233 siocb->scm = &scm; in netlink_sendmsg() 1234 err = scm_send(sock, msg, siocb->scm); in netlink_sendmsg() 1269 memcpy(NETLINK_CREDS(skb), &siocb->scm->creds, sizeof(struct ucred)); in netlink_sendmsg() 1304 struct scm_cookie scm; in netlink_recvmsg() local 1344 if (NULL == siocb->scm) { in netlink_recvmsg() 1345 memset(&scm, 0, sizeof(scm)); in netlink_recvmsg() 1346 siocb->scm = &scm; in netlink_recvmsg() 1348 siocb->scm->creds = *NETLINK_CREDS(skb); in netlink_recvmsg() [all …]
|
/net/ |
D | compat.c | 265 void scm_detach_fds_compat(struct msghdr *kmsg, struct scm_cookie *scm) in scm_detach_fds_compat() argument 269 int fdnum = scm->fp->count; in scm_detach_fds_compat() 270 struct file **fp = scm->fp->fp; in scm_detach_fds_compat() 317 __scm_destroy(scm); in scm_detach_fds_compat()
|
D | socket.c | 559 si->scm = NULL; in __sock_sendmsg() 645 si->scm = NULL; in __sock_recvmsg()
|