| Function report | 
| Source Code: fs\xattr.c | Create Date:2022-07-28 20:09:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Extended attribute GET operations
Proto:static ssize_t getxattr(struct dentry *d, const char __user *name, void __user *value, size_t size)
Type:ssize_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct dentry * | d | |
| const char __user * | name | |
| void __user * | value | |
| size_t | size | 
| 521 | void * kvalue = NULL | 
| 530 | If size Then | 
| 531 | If size > size of an extended attribute value (64k) Then size = size of an extended attribute value (64k) | 
| 533 | kvalue = kvzalloc(size, GFP_KERNEL) | 
| 539 | If error > 0 Then | 
| 540 | If strcmp(kname, XATTR_NAME_POSIX_ACL_ACCESS) == 0 || strcmp(kname, XATTR_NAME_POSIX_ACL_DEFAULT) == 0 Then posix_acl_fix_xattr_to_user(kvalue, error) | 
| 545 | Else if error == -ERANGE && size >= size of an extended attribute value (64k) Then | 
| 553 | Return error | 
| Name | Describe | 
|---|---|
| path_getxattr | |
| SYSCALL_DEFINE4 | 
| 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 |