| Function report | 
| Source Code: fs\posix_acl.c | Create Date:2022-07-28 20:29:49 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Convert from extended attribute to in-memory representation.
Proto:struct posix_acl *posix_acl_from_xattr(struct user_namespace *user_ns, const void *value, size_t size)
Type:struct posix_acl
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct user_namespace * | user_ns | |
| const void * | value | |
| size_t | size | 
| 737 | If Not value Then Return NULL | 
| 739 | If size < sizeof(structposix_acl_xattr_header) Then Return ERR_PTR( - EINVAL) | 
| 741 | If a_version != cpu_to_le32(Supported ACL a_version fields ) Then Return ERR_PTR( - EOPNOTSUPP) | 
| 744 | count = posix_acl_xattr_count(size) | 
| 747 | If count == 0 Then Return NULL | 
| 756 | e_tag = le16_to_cpu(e_tag) | 
| 757 | e_perm = le16_to_cpu(e_perm) | 
| 760 | Case e_tag == _tag entry in struct posix_acl_entry | 
| 761 | Case e_tag == ACL_GROUP_OBJ | 
| 764 | Break | 
| 772 | Break | 
| 779 | Break | 
| 781 | Default | 
| 782 | Go to fail | 
| 785 | Return acl | 
| 787 | fail : | 
| Name | Describe | 
|---|---|
| posix_acl_xattr_set | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |