Function report |
Source Code:fs\locks.c |
Create Date:2022-07-28 20:25:26 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Fill in a file_lock structure with an appropriate FLOCK lock.
Proto:static struct file_lock *flock_make_lock(struct file *filp, unsigned int cmd, struct file_lock *fl)
Type:struct file_lock
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | filp | |
| unsigned int | cmd | |
| struct file_lock * | fl |
| 481 | type = flock_translate_cmd(cmd) |
| 486 | If (fl == NULL) Then |
| 490 | Else |
| 491 | locks_init_lock(fl) |
| 499 | fl_end = OFFSET_MAX |
| 501 | Return fl |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE2 | sys_flock: - flock() system call.*@fd: the file descriptor to lock.*@cmd: the type of lock to apply.* Apply a %FL_FLOCK style lock to an open file descriptor.* The @cmd can be one of:* - %LOCK_SH -- a shared lock.* - %LOCK_EX -- an exclusive lock. |
| locks_remove_flock | The i_flctx must be valid when calling into here |
| 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 |