Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\nfs_common\nfsacl.c Create Date:2022-07-28 20:29:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:xdr_nfsace_encode

Proto:static int xdr_nfsace_encode(struct xdr_array2_desc *desc, void *elem)

Type:int

Parameter:

TypeParameterName
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  Case 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  Break
63  Case 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  Break
66  Case 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  Break
69  Case 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  Break
72  Default
73  p++ = 0
74  Break
76  p++ = htonl(e_perm & S_IRWXO)
77  Return 0