Function report |
Source Code:fs\iomap\buffered-io.c |
Create Date:2022-07-28 20:31:51 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Calculate the range inside the page that we actually need to read.
Proto:static void iomap_adjust_read_range(struct inode *inode, struct iomap_page *iop, loff_t *pos, loff_t length, unsigned *offp, unsigned *lenp)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| struct iomap_page * | iop | |
| loff_t * | pos | |
| loff_t | length | |
| unsigned * | offp | |
| unsigned * | lenp |
| 92 | block_bits = i_blkbits |
| 93 | block_size = 1 << block_bits |
| 94 | poff = offset_in_page( * pos) |
| 95 | plen = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(loff_t, PAGE_SIZE - poff, length) |
| 96 | first = poff >> block_bits |
| 97 | last = poff + plen - 1 >> block_bits |
| 104 | If iop Then |
| 109 | If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Break |
| 111 | pos += block_size |
| 112 | poff += block_size |
| 113 | plen -= block_size |
| 114 | first++ |
| 133 | end = offset_in_page(isize - 1) >> block_bits |
| Name | Describe |
|---|---|
| iomap_readpage_actor | |
| __iomap_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 |