Function report |
Source Code:fs\dcache.c |
Create Date:2022-07-28 20:07:29 |
| Last Modify:2020-03-18 10:27:32 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__d_instantiate_anon
Proto:static struct dentry *__d_instantiate_anon(struct dentry *dentry, struct inode *inode, bool disconnected)
Type:struct dentry
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct dentry * | dentry | |
| struct inode * | inode | |
| bool | disconnected |
| 2006 | security_d_instantiate(dentry, inode) |
| 2007 | spin_lock( & _blocks, i_bytes, maybe i_size ) |
| 2008 | res = __d_find_any_alias(inode) |
| 2009 | If res Then |
| 2010 | spin_unlock( & _blocks, i_bytes, maybe i_size ) |
| 2012 | Go to out_iput |
| 2016 | add_flags = d_flags_for_inode(inode) |
| 2018 | If disconnected Then add_flags |= DCACHE_DISCONNECTED |
| 2022 | __d_set_inode_and_type(dentry, inode, add_flags) |
| 2023 | hlist_add_head( & de alias list , & i_dentry) |
| 2024 | If Not disconnected Then |
| 2025 | hlist_bl_lock( & s_roots) |
| 2026 | hlist_bl_add_head( & lookup hash list , & s_roots) |
| 2027 | hlist_bl_unlock( & s_roots) |
| 2029 | spin_unlock( & d_lock) |
| 2030 | spin_unlock( & _blocks, i_bytes, maybe i_size ) |
| 2032 | Return dentry |
| 2034 | out_iput : |
| 2035 | put an inode |
| 2036 | Return res |
| Name | Describe |
|---|---|
| d_instantiate_anon | |
| __d_obtain_alias |
| 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 |