函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Combine the results of the list() operation from every xattr_handler in the* list.

函数原型:ssize_t generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size)

返回类型:ssize_t

参数:

类型参数名称
struct dentry *dentry
char *buffer
size_tbuffer_size
752  handlers等于s_xattr
753  size等于0
755  如果非buffer
757  如果非namelist且非list(dentry)则继续下一循环
760  size加等于strlen - Find the length of a string*@s: The string to be sized加1
762  否则
763  buf等于buffer
767  如果非namelist且非list(dentry)则继续下一循环
770  len等于strlen - Find the length of a string*@s: The string to be sized
771  如果len加1大于buffer_size则返回:负ERANGE
773  memcpy(buf, name, len + 1)
774  buf加等于len加1
775  buffer_size减等于len加1
777  size等于bufbuffer
779  返回:size