Scroll to navigation

IS_SUBDIR(9) The Linux VFS IS_SUBDIR(9)

NAME

is_subdir - is new dentry a subdirectory of old_dentry

SYNOPSIS

int is_subdir(struct dentry * new_dentry, struct dentry * old_dentry);

ARGUMENTS

new_dentry

new dentry

old_dentry

old dentry

DESCRIPTION

Returns 1 if new_dentry is a subdirectory of the parent (at any depth). Returns 0 otherwise. Caller must ensure that “new_dentry” is pinned before calling is_subdir

COPYRIGHT

June 2024 Kernel Hackers Manual 3.10