Function report |
Source Code:fs\aio.c |
Create Date:2022-07-28 20:21:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ioctx_add_table
Proto:static int ioctx_add_table(struct kioctx *ctx, struct mm_struct *mm)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kioctx * | ctx | |
| struct mm_struct * | mm |
| 639 | spin_lock( & ioctx_lock) |
| 642 | When 1 cycle |
| 648 | spin_unlock( & ioctx_lock) |
| 654 | ring = kmap_atomic(ring_pages[0]) |
| 656 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(ring) |
| 657 | Return 0 |
| 661 | spin_unlock( & ioctx_lock) |
| 663 | table = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 670 | spin_lock( & ioctx_lock) |
| 673 | If Not old Then |
| 681 | Else |
| Name | Describe |
|---|---|
| ioctx_alloc | x_alloc* Allocates and initializes an ioctx. Returns an ERR_PTR if it failed. |
| 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 |