函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dentry_open

函数原型:struct file *dentry_open(const struct path *path, int flags, const struct cred *cred)

返回类型:struct file

参数:

类型参数名称
const struct path *path
intflags
const struct cred *cred
923  validate_creds(cred)
926  BUG_ON(!mnt)
928  f等于le_table.c
929  如果非是错误
930  error等于vfs_open - open the file at the given path*@path: path to open*@file: newly allocated file with f_flag initialized*@cred: credentials to use
931  如果error
932  fput(f)
933  f等于错误号
936  返回:f
调用者
名称描述
flush_unauthorized_filesDerived from fs/exec.c:flush_old_files.
aa_inherit_filesased on selinux's flush_unauthorized_files
ima_calc_file_hashma_calc_file_hash - calculate file hash* Asynchronous hash (ahash) allows using HW acceleration for calculating* a hash. ahash performance varies for different data sizes on different* crypto accelerators
open_detached_copy
SYSCALL_DEFINE3
SYSCALL_DEFINE3Create a kernel mount representation for a new, prepared superblock* (specified by fs_fd) and attach to an open_tree-like file descriptor.
open_related_ns
create_fd
file_clone_open