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:Initialize a lease, use the default lock manager operations
Proto:static int lease_init(struct file *filp, long type, struct file_lock *fl)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | filp | |
| long | type | |
| struct file_lock * | fl |
| 617 | If assign_type(fl, type) != 0 Then Return -EINVAL |
| 625 | fl_start = 0 |
| 626 | fl_end = OFFSET_MAX |
| 627 | Callbacks for filesystems = NULL |
| 629 | Return 0 |
| Name | Describe |
|---|---|
| lease_alloc | Allocate a file_lock initialised to this type of 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 |