Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-settings.c Create Date:2022-07-28 17:03:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Set up a drain buffer for excess dma

Proto:int blk_queue_dma_drain(struct request_queue *q, dma_drain_needed_fn *dma_drain_needed, void *buf, unsigned int size)

Type:int

Parameter:

TypeParameterName
struct request_queue *q
dma_drain_needed_fn *dma_drain_needed
void *buf
unsigned intsize
712  If queue_max_segments(q) < 2 Then Return -EINVAL
715  set max hw segments for a request for this queue
716  dma_drain_needed = dma_drain_needed
717  dma_drain_buffer = buf
718  dma_drain_size = size
720  Return 0