Function report |
Source Code:block\blk-map.c |
Create Date:2022-07-28 17:05:00 |
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_kern - map kernel data to a request, for passthrough requests*@q: request queue where request should be inserted*@rq: request to fill*@kbuf: the kernel buffer*@len: length of user data*@gfp_mask: memory allocation flags* Description:
Proto:int blk_rq_map_kern(struct request_queue *q, struct request *rq, void *kbuf, unsigned int len, gfp_t gfp_mask)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct request_queue * | q | |
struct request * | rq | |
void * | kbuf | |
unsigned int | len | |
gfp_t | gfp_mask |
226 | do_copy = 0 |
230 | If len > queue_max_hw_sectors(q) << 9 Then Return -EINVAL |
235 | do_copy = Not blk_rq_aligned(q, addr, len) || object_is_on_stack(kbuf) |
247 | If do_copy Then rq_flags |= contains copies of user pages |
251 | ret = Append a bio to a passthrough request. Only works if the bio can be merged* into the request based on the driver constraints. |
255 | Return ret |
258 | Return 0 |
Name | Describe |
---|---|
sg_scsi_ioctl | sg_scsi_ioctl -- handle deprecated SCSI_IOCTL_SEND_COMMAND ioctl*@q: request queue to send scsi commands down*@disk: gendisk to operate on (option)*@mode: mode used to open the file through which the ioctl has been* submitted*@sic: userspace structure |
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 |