函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-settings.c Create Date:2022-07-27 18:39:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lk_queue_dma_drain - Set up a drain buffer for excess dma

函数原型:int blk_queue_dma_drain(struct request_queue *q, dma_drain_needed_fn *dma_drain_needed, void *buf, unsigned int size)

返回类型:int

参数:

类型参数名称
struct request_queue *q
dma_drain_needed_fn *dma_drain_needed
void *buf
unsigned intsize
712  如果queue_max_segments(q)小于2则返回:负EINVAL
715  lk_queue_max_segments - set max hw segments for a request for this queue*@q: the request queue for the device*@max_segments: max number of segments* Description:* Enables a low level driver to set an upper limit on the number of
716  dma_drain_needed等于dma_drain_needed
717  dma_drain_buffer等于buf
718  dma_drain_size等于size
720  返回:0