| Function report | 
| Source Code: fs\namei.c | Create Date:2022-07-28 20:05:20 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:vfs_readlink - copy symlink body into userspace buffer*@dentry: dentry on which to get symbolic link*@buffer: user memory pointer*@buflen: size of buffer* Does not touch atime. That's up to the caller if necessary* Does not call security hook.
Proto:int vfs_readlink(struct dentry *dentry, char __user *buffer, int buflen)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct dentry * | dentry | |
| char __user * | buffer | |
| int | buflen | 
| 4666 | If Value for the false possibility is greater at compile time(readlink) Then Return readlink(dentry, buffer, buflen) | 
| 4669 | If Not d_is_symlink(dentry) Then Return -EINVAL | 
| 4672 | spin_lock( & _blocks, i_bytes, maybe i_size ) | 
| 4673 | i_opflags |= IOP_DEFAULT_READLINK | 
| 4674 | spin_unlock( & _blocks, i_bytes, maybe i_size ) | 
| 4678 | If Not link Then | 
| 4683 | res = readlink_copy(buffer, buflen, link) | 
| 4684 | do_delayed_call( & done) | 
| 4685 | Return res | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |