| Function report | 
| Source Code: fs\locks.c | Create Date:2022-07-28 20:25:25 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:locks_get_lock_context
Proto:static struct file_lock_context *locks_get_lock_context(struct inode *inode, int type)
Type:struct file_lock_context
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | inode | |
| int | type | 
| 254 | ctx = smp_load_acquire( & i_flctx) | 
| 255 | If Value is more likely to compile time(ctx) || type == F_UNLCK Then Go to out | 
| 258 | ctx = kmem_cache_alloc(flctx_cache, GFP_KERNEL) | 
| 272 | kmem_cache_free(flctx_cache, ctx) | 
| 273 | ctx = smp_load_acquire( & i_flctx) | 
| 275 | out : | 
| 276 | trace_locks_get_lock_context(inode, type, ctx) | 
| 277 | Return ctx | 
| Name | Describe | 
|---|---|
| flock_lock_inode | Try to create a FLOCK lock on filp | 
| posix_lock_inode | |
| generic_add_lease | 
| 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 |