函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The nofs argument instructs pagecache_write_begin to pass AOP_FLAG_NOFS

函数原型:int __page_symlink(struct inode *inode, const char *symname, int len, int nofs)

返回类型:int

参数:

类型参数名称
struct inode *inode
const char *symname
intlen
intnofs
4766  mapping等于i_mapping
4770  flags等于0
4771  如果nofsflags或等于used by filesystem to direct* helper code (eg buffer layer)* to clear GFP_FS from alloc
4774  retry :
4775  err等于pagecache_write_begin(NULL, mapping, 0, len - 1, flags, & page, & fsdata)
4777  如果err则转到:fail
4780  memcpy(page_address(page), symname, len - 1)
4782  err等于pagecache_write_end(NULL, mapping, 0, len - 1, len - 1, page, fsdata)
4784  如果err小于0则转到:fail
4786  如果err小于len减1则转到:retry
4789  mark_inode_dirty(inode)
4790  返回:0
4791  fail :
4792  返回:err
调用者
名称描述
page_symlink