| Function report | 
| Source Code: fs\locks.c | Create Date:2022-07-28 20:25:27 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:posix_test_lock
Proto:void posix_test_lock(struct file *filp, struct file_lock *fl)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | filp | |
| struct file_lock * | fl | 
| 933 | inode = locks_inode(filp) | 
| 935 | ctx = smp_load_acquire( & i_flctx) | 
| 949 | out : | 
| 950 | spin_unlock( & flc_lock) | 
| 951 | Return | 
| Name | Describe | 
|---|---|
| vfs_test_lock | vfs_test_lock - test file byte range lock*@filp: The file to test lock for*@fl: The lock to test; also used to hold result* Returns -ERRNO on failure. Indicates presence of conflicting lock by* setting conf->fl_type to something other than F_UNLCK. | 
| 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 |