Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\scm.h Create Date:2022-07-28 06:02:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:scm_recv

Proto:static inline void scm_recv(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm, int flags)

Type:void

Parameter:

TypeParameterName
struct socket *sock
struct msghdr *msg
struct scm_cookie *scm
intflags
116  If Not ancillary data Then
117  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from || Passed files Then lags on received message |= MSG_CTRUNC
119  scm_destroy(scm)
120  Return
123  If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then
124  current_ns = current_user_ns()
125  struct ucred ucreds = {pid = pid, uid = from_kuid_munged(current_ns, uid), gid = from_kgid_munged(current_ns, gid), }
130  put_cmsg(msg, For setsockopt(2) , w: struct ucred , size of ucreds , & ucreds)
133  scm_destroy_cred(scm)
135  scm_passec(sock, msg, scm)
137  If Not Passed files Then Return
140  scm_detach_fds(msg, scm)