函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\nfs_common\nfsacl.c Create Date:2022-07-29 11:05:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:xdr_nfsace_encode

函数原型:static int xdr_nfsace_encode(struct xdr_array2_desc *desc, void *elem)

返回类型:int

参数:

类型参数名称
struct xdr_array2_desc *desc
void *elem
51  nfsacl_desc等于desc
53  p等于elem
55  entry等于a_entries[count++]
58  p自加等于htonl(e_tag | typeflag)
60  :e_tag恒等于_tag entry in struct posix_acl_entry
61  p自加等于htonl(m_kuid - Create a uid from a kuid user-namespace pair.*@targ: The user namespace we want a uid in.*@kuid: The kernel internal uid to start with.* Map @kuid into the user-namespace specified by @targ and* return the resulting uid.)
62  退出
63  :e_tag恒等于ACL_GROUP_OBJ
64  p自加等于htonl(m_kgid - Create a gid from a kgid user-namespace pair.*@targ: The user namespace we want a gid in.*@kgid: The kernel internal gid to start with.* Map @kgid into the user-namespace specified by @targ and* return the resulting gid.)
65  退出
66  :e_tag恒等于ACL_USER
67  p自加等于htonl(m_kuid - Create a uid from a kuid user-namespace pair.*@targ: The user namespace we want a uid in.*@kuid: The kernel internal uid to start with.* Map @kuid into the user-namespace specified by @targ and* return the resulting uid.)
68  退出
69  :e_tag恒等于ACL_GROUP
70  p自加等于htonl(m_kgid - Create a gid from a kgid user-namespace pair.*@targ: The user namespace we want a gid in.*@kgid: The kernel internal gid to start with.* Map @kgid into the user-namespace specified by @targ and* return the resulting gid.)
71  退出
72  默认
73  p自加等于0
74  退出
76  p自加等于htonl(e_perm & S_IRWXO)
77  返回:0