Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namespace.c Create Date:2022-07-28 20:09:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Caller should check returned pointer for errors

Proto:struct vfsmount *collect_mounts(const struct path *path)

Type:struct vfsmount

Parameter:

TypeParameterName
const struct path *path
1819  namespace_lock()
1820  If Not check_mnt(real_mount(mnt)) Then tree = ERR_PTR( - EINVAL)
1822  Else tree = copy_tree(real_mount(mnt), dentry, CL_COPY_ALL | CL_PRIVATE)
1825  namespace_unlock()
1826  If IS_ERR(tree) Then Return ERR_CAST - Explicitly cast an error-valued pointer to another pointer type*@ptr: The pointer to cast.* Explicitly cast an error-valued pointer to another pointer type in such a* way as to make it clear that's what's going on.
1828  Return mnt
Caller
NameDescribe
audit_add_tree_rulealled with audit_filter_mutex
audit_tag_tree