函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:int nfsacl_decode(struct xdr_buf *buf, unsigned int base, unsigned int *aclcnt, struct posix_acl **pacl)

返回类型:int

参数:

类型参数名称
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  如果xdr_decode_word(buf, base, & entries)或entries大于Maximum number of ACL entries over NFS 则返回:负EINVAL
280  array_maxlen等于entries
281  err等于xdr_decode_array2(buf, base + 4, & desc)
282  如果err则返回:err
284  如果pacl
288  返回:负EINVAL
290  pacl等于acl
292  如果aclcntaclcnt等于entries
294  返回:8加elem_sizearray_len