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:path_openat

Proto:static struct file *path_openat(struct nameidata *nd, const struct open_flags *op, unsigned flags)

Type:struct file

Parameter:

TypeParameterName
struct nameidata *nd
const struct open_flags *op
unsignedflags
3465  file = Find an unused file structure and return a pointer to it
3466  If IS_ERR(file) Then Return file
3469  If Value for the false possibility is greater at compile time(f_flags & __O_TMPFILE) Then
3470  error = do_tmpfile(nd, flags, op, file)
3471  Else if Value for the false possibility is greater at compile time(f_flags & O_PATH) Then
3472  error = do_o_path(nd, flags, file)
3473  Else
3474  s = must be paired with terminate_walk()
3478  s = trailing_symlink(nd)
3480  terminate_walk(nd)
3482  If Value is more likely to compile time(!error) Then
3483  If Value is more likely to compile time(f_mode & FMODE_OPENED) Then Return file
3485  WARN_ON(1)
3486  error = -EINVAL
3488  fput(file)
3489  If error == -pen found a stale dentry Then
3490  If flags & RCU pathwalk mode; semi-internal Then error = -ECHILD
3492  Else error = -ESTALE
3495  Return ERR_PTR(error)
Caller
NameDescribe
do_filp_open
do_file_open_root