Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:scm_send

Proto:static inline int scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm, bool forcecreds)

Type:int

Parameter:

TypeParameterName
struct socket *sock
struct msghdr *msg
struct scm_cookie *scm
boolforcecreds
81  memset(scm, 0, size of scm )
82  uid = INVALID_UID
83  gid = INVALID_GID
84  If forcecreds Then scm_set_cred(scm, task_tgid(current process), current_uid(), current_gid())
86  unix_get_peersec_dgram(sock, scm)
87  If ancillary data buffer length <= 0 Then Return 0
89  Return __scm_send(sock, msg, scm)