Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_file_open_root

Proto:struct file *do_file_open_root(struct dentry *dentry, struct vfsmount *mnt, const char *name, const struct open_flags *op)

Type:struct file

Parameter:

TypeParameterName
struct dentry *dentry
struct vfsmount *mnt
const char *name
const struct open_flags *op
3521  flags = lookup_flags | LOOKUP_ROOT
3523  mnt = mnt
3524  dentry = dentry
3526  If d_is_symlink(dentry) && intent & ... in open Then Return ERR_PTR( - ELOOP)
3529  filename = getname_kernel(name)
3530  If IS_ERR(filename) 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.
3533  set_nameidata( & nd, - 1, filename)
3534  file = path_openat( & nd, op, flags | RCU pathwalk mode; semi-internal )
3535  If Value for the false possibility is greater at compile time(file == ERR_PTR( - ECHILD)) Then file = path_openat( & nd, op, flags)
3537  If Value for the false possibility is greater at compile time(file == ERR_PTR( - ESTALE)) Then file = path_openat( & nd, op, flags | ll ->d_revalidate() to trust no cache )
3539  restore_nameidata()
3540  putname(filename)
3541  Return file