函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_file_open_root

函数原型:struct file *do_file_open_root(struct dentry *dentry, struct vfsmount *mnt, const char *name, const struct open_flags *op)

返回类型:struct file

参数:

类型参数名称
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  如果d_is_symlink(dentry)且intent按位与... in open 则返回:错误号
3529  filename等于getname_kernel(name)
3530  如果是错误则返回:错误指示
3533  set_nameidata( & nd, - 1, filename)
3534  file等于path_openat( & nd, op, flags | RCU pathwalk mode; semi-internal )
3535  如果此条件成立可能性小(为编译器优化)(file == 错误号)则file等于path_openat( & nd, op, flags)
3537  如果此条件成立可能性小(为编译器优化)(file == 错误号)则file等于path_openat( & nd, op, flags | ll ->d_revalidate() to trust no cache )
3539  restore_nameidata()
3540  putname(filename)
3541  返回:file