函数逻辑报告 |
Source Code:fs\nfs_common\nfsacl.c |
Create Date:2022-07-29 11:05:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sacl_encode - Encode an NFSv3 ACL*@buf: destination xdr_buf to contain XDR encoded ACL*@base: byte offset in xdr_buf where XDR'd ACL begins*@inode: inode of file whose ACL this is*@acl: posix_acl to encode*@encode_entries: whether to encode ACEs as
函数原型:int nfsacl_encode(struct xdr_buf *buf, unsigned int base, struct inode *inode, struct posix_acl *acl, int encode_entries, int typeflag)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct xdr_buf * | buf | |
unsigned int | base | |
struct inode * | inode | |
struct posix_acl * | acl | |
int | encode_entries | |
int | typeflag |
95 | entries等于如果acl且a_count则max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(int, a_count, 4)否则0 |
96 | struct nfsacl_encode_desc nfsacl_desc = {desc = {elem_size = 12, array_len = encode_entries ? entries : 0, xcode = xdr_nfsace_encode, }, acl = acl, typeflag = typeflag, uid = i_uid, gid = i_gid, } |
110 | 如果entries大于Maximum number of ACL entries over NFS 或xdr_encode_word(buf, base, entries)则返回:负EINVAL |
113 | 如果encode_entries且acl且a_count恒等于3则 |
131 | err等于xdr_encode_array2(buf, base + 4, & desc) |
135 | 返回:err |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |