函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\inode.c Create Date:2022-07-27 14:21:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_symlink

函数原型:static int bpf_symlink(struct inode *dir, struct dentry *dentry, const char *target)

返回类型:int

参数:

类型参数名称
struct inode *dir
struct dentry *dentry
const char *target
353  link等于kstrdup(target, GFP_USER | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.)
356  如果非link则返回:负ENOMEM
359  inode等于bpf_get_inode(i_sb, dir, S_IRWXUGO | S_IFLNK)
360  如果是错误
361  kfree(link)
362  返回:错误
365  i_op等于simple_symlink_inode_operations
366  i_link等于link
368  bpf_dentry_finalize(dentry, inode, dir)
369  返回:0