函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\scm.h Create Date:2022-07-27 07:00:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:scm_recv

函数原型:static inline void scm_recv(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm, int flags)

返回类型:void

参数:

类型参数名称
struct socket *sock
struct msghdr *msg
struct scm_cookie *scm
intflags
116  如果非ancillary data
117  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Passed files lags on received message 或等于MSG_CTRUNC
119  scm_destroy(scm)
120  返回
123  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
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 , ucreds的长度, & ucreds)
133  scm_destroy_cred(scm)
135  scm_passec(sock, msg, scm)
137  如果非 Passed files 则返回
140  scm_detach_fds(msg, scm)