Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\ramfs\inode.c Create Date:2022-07-28 20:34:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ramfs_symlink

Proto:static int ramfs_symlink(struct inode *dir, struct dentry *dentry, const char *symname)

Type:int

Parameter:

TypeParameterName
struct inode *dir
struct dentry *dentry
const char *symname
134  error = -ENOSPC
136  inode = ramfs_get_inode(i_sb, dir, S_IFLNK | S_IRWXUGO, 0)
137  If inode Then
138  l = strlen - Find the length of a string*@s: The string to be sized + 1
139  error = page_symlink(inode, symname, l)
140  If Not error Then
144  Else put an inode
147  Return error