Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\open.c Create Date:2022-07-28 20:00:57
Last Modify:2020-03-18 10:16:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dentry_open

Proto:struct file *dentry_open(const struct path *path, int flags, const struct cred *cred)

Type:struct file

Parameter:

TypeParameterName
const struct path *path
intflags
const struct cred *cred
923  validate_creds(cred)
926  BUG_ON(!mnt)
928  f = le_table.c
929  If Not IS_ERR(f) Then
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  If error Then
932  fput(f)
933  f = ERR_PTR(error)
936  Return f
Caller
NameDescribe
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