函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:POSIX says that a dirent name cannot contain NULL or a '/'.* It's not 100% clear what we should really do in this case.* The filesystem is clearly corrupted, but returning a hard* error means that you now don't see any of the other names

函数原型:static int verify_dirent_name(const char *name, int len)

返回类型:int

参数:

类型参数名称
const char *name
intlen
112  如果len小于等于0或len大于等于# chars in a path name including nul 则返回:负EIO
114  如果memchr(name, '/', len)则返回:负EIO
116  返回:0
调用者
名称描述
filldir
filldir64