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:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sacl_decode - Decode an NFSv3 ACL*@buf: xdr_buf containing XDR'd ACL data to decode*@base: byte offset in xdr_buf where XDR'd ACL begins*@aclcnt: count of ACEs in decoded posix_acl*@pacl: buffer in which to place decoded posix_acl

Proto:int nfsacl_decode(struct xdr_buf *buf, unsigned int base, unsigned int *aclcnt, struct posix_acl **pacl)

Type:int

Parameter:

TypeParameterName
struct xdr_buf *buf
unsigned intbase
unsigned int *aclcnt
struct posix_acl **pacl
268  struct nfsacl_decode_desc nfsacl_desc = {desc = {elem_size = 12, xcode = pacl ? xdr_nfsace_decode : NULL, }, }
277  If xdr_decode_word(buf, base, & entries) || entries > Maximum number of ACL entries over NFS Then Return -EINVAL
280  array_maxlen = entries
281  err = xdr_decode_array2(buf, base + 4, & desc)
282  If err Then Return err
284  If pacl Then
288  Return -EINVAL
290  pacl = acl
292  If aclcnt Then aclcnt = entries
294  Return 8 + elem_size * array_len