Function report |
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 activity | Download SCCT | Chinese |
Name:scm_recv
Proto:static inline void scm_recv(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm, int flags)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct socket * | sock | |
struct msghdr * | msg | |
struct scm_cookie * | scm | |
int | flags |
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 |
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) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |