Function report |
Source Code:fs\buffer.c |
Create Date:2022-07-28 20:14:10 |
| Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lock_write_begin takes care of the basic task of block allocation and* bringing partial write blocks uptodate first.* The filesystem needs to handle block truncation upon failure.
Proto:int block_write_begin(struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, get_block_t *get_block)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct address_space * | mapping | |
| loff_t | pos | |
| unsigned | len | |
| unsigned | flags | |
| struct page ** | pagep | |
| get_block_t * | get_block |
| 2109 | index = pos >> PAGE_SHIFT determines the page size |
| 2113 | page = Find or create a page at the given pagecache position. Return the locked* page. This function is specifically for buffered writes. |
| 2121 | page = NULL |
| 2125 | Return status |
| Name | Describe |
|---|---|
| cont_write_begin | For moronic filesystems that do not allow holes in file.* We may have to extend the file. |
| blkdev_write_begin |
| 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 |