Function report |
Source Code:block\blk-map.c |
Create Date:2022-07-28 17:04:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lk_rq_map_user_iov - map user data to a request, for passthrough requests*@q: request queue where request should be inserted*@rq: request to map data to*@map_data: pointer to the rq_map_data holding pages (if necessary)*@iter: iovec iterator*@gfp_mask:
Proto:int blk_rq_map_user_iov(struct request_queue *q, struct request *rq, struct rq_map_data *map_data, const struct iov_iter *iter, gfp_t gfp_mask)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q | |
struct request * | rq | |
struct rq_map_data * | map_data | |
const struct iov_iter * | iter | |
gfp_t | gfp_mask |
124 | bool copy = false |
125 | align = dma_pad_mask | queue_dma_alignment(q) |
130 | If Not iter_is_iovec(iter) Then Go to fail |
135 | Else if iov_iter_alignment(iter) & align Then copy = true |
137 | Else if queue_virt_boundary(q) Then copy = queue_virt_boundary(q) & iov_iter_gap_alignment(iter) |
141 | Do |
147 | When iov_iter_count( & i) cycle |
149 | If Not bio_flagged(bio, BIO_USER_MAPPED) Then rq_flags |= contains copies of user pages |
151 | Return 0 |
153 | unmap_rq : |
155 | fail : |
156 | bio = NULL |
157 | Return ret |
Name | Describe |
---|---|
blk_rq_map_user | |
sg_io |
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 |