Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 9 files:

Smatch caller information:

fs/xfs/libxfs/xfs_parent.c xfs_parent_namecheck() -> xfs_dir2_namecheck()

Type Parameter Key Value
BUF_SIZE 0 name s32min-(-1),1-s32max
BUF_SIZE 0 name s32min-(-1),1-s32max
DATA_SOURCE 0 name $1
DATA_SOURCE 1 length $2
TASK_NOT_RUNNING
UNITS 0 name unit_byte
UNITS 1 length unit_byte

fs/xfs/scrub/dir_repair.c xrep_dir_want_salvage() -> xfs_dir2_namecheck()

Type Parameter Key Value
PARAM_VALUE 0 name 4096-ptr_max
PARAM_VALUE 1 length 1-255
DATA_SOURCE 0 name $1
DATA_SOURCE 1 length $2
UNITS 1 length unit_byte

fs/xfs/scrub/inode_repair.c xrep_dinode_findmode_dirent() -> xfs_dir2_namecheck()

Type Parameter Key Value
PARAM_VALUE 1 length 1-255
BUF_SIZE 0 name s32min-(-2),1-s32max
UNITS 0 name unit_byte
UNITS 1 length unit_byte

fs/xfs/scrub/parent.c xchk_parent_actor() -> xfs_dir2_namecheck()

Type Parameter Key Value
PARAM_VALUE 1 length 0-255
BUF_SIZE 0 name s32min-(-2),1-s32max
UNITS 0 name unit_byte
UNITS 1 length unit_byte

fs/xfs/scrub/findparent.c xrep_findparent_dirent() -> xfs_dir2_namecheck()

Type Parameter Key Value
PARAM_VALUE 1 length 1-255
BUF_SIZE 0 name s32min-(-2),1-s32max
UNITS 0 name unit_byte
UNITS 1 length unit_byte

fs/xfs/xfs_dir2_readdir.c xfs_dir2_block_getdents() -> xfs_dir2_namecheck()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 1 length unit_byte
HALF_LOCKED2 &dir_fp->readdir_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/xfs/xfs_dir2_readdir.c xfs_dir2_leaf_getdents() -> xfs_dir2_namecheck()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 1 length unit_byte
HALF_LOCKED2 &dir_fp->readdir_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/xfs/xfs_dir2_readdir.c xfs_dir2_sf_getdents() -> xfs_dir2_namecheck()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 1 length unit_byte
HALF_LOCKED2 &dir_fp->readdir_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct inode)->i_rwsem

fs/xfs/scrub/dir.c xchk_dir_actor() -> xfs_dir2_namecheck()

Type Parameter Key Value
PARAM_VALUE 1 length 0-255
BUF_SIZE 0 name s32min-(-2),1-s32max
UNITS 0 name unit_byte
UNITS 1 length unit_byte

fs/xfs/scrub/parent_repair.c xrep_parent_scan_dirent() -> xfs_dir2_namecheck()

Type Parameter Key Value
PARAM_VALUE 1 length 1-255
BUF_SIZE 0 name s32min-(-2),1-s32max
UNITS 0 name unit_byte
UNITS 1 length unit_byte

fs/xfs/scrub/nlinks.c xchk_nlinks_collect_dirent() -> xfs_dir2_namecheck()

Type Parameter Key Value
PARAM_VALUE 1 length 1-255
BUF_SIZE 0 name s32min-(-2),1-s32max
UNITS 0 name unit_byte
UNITS 1 length unit_byte