函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:scm_send

函数原型:static inline int scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm, bool forcecreds)

返回类型:int

参数:

类型参数名称
struct socket *sock
struct msghdr *msg
struct scm_cookie *scm
boolforcecreds
81  memset(scm, 0, scm的长度)
82  uid等于INVALID_UID
83  gid等于INVALID_GID
84  如果forcecredsscm_set_cred(scm, task_tgid(当前进程), current_uid(), current_gid())
86  unix_get_peersec_dgram(sock, scm)
87  如果ancillary data buffer length 小于等于0则返回:0
89  返回:__scm_send(sock, msg, scm)