函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ksys_chdir

函数原型:int ksys_chdir(const char __user *filename)

返回类型:int

参数:

类型参数名称
const char __user *filename
457  lookup_flags等于llow links at the end 按位或quire a directory
458  retry :
459  error等于user_path_at(Special value used to indicateopenat should use the currentworking directory. , filename, lookup_flags, & path)
460  如果error则转到:out
463  error等于inode_permission( Where the name belongs to - NULL is * negative , MAY_EXEC | MAY_CHDIR)
464  如果error则转到:dput_and_out
467  set_fs_pwd(fs, & path)
469  dput_and_out :
470  path_put( & path)
471  如果ry_estale - determine whether the caller should retry an operation*@error: the error that would currently be returned*@flags: flags being used for next lookup attempt* Check to see if the error code was -ESTALE, and then determine whether
472  lookup_flags或等于ll ->d_revalidate() to trust no cache
473  转到:retry
475  out :
476  返回:error
调用者
名称描述
init_linuxrc
handle_initrd
SYSCALL_DEFINE1
do_mount_root