函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blkdev.h Create Date:2022-07-27 06:47:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Number of physical segments as sent to the device

函数原型:static inline unsigned short blk_rq_nr_phys_segments(struct request *rq)

返回类型:unsigned short

参数:

类型参数名称
struct request *rq
1124  如果rq_flags按位与Look at ->special_vec for the actual data payload instead of thebio chain. 则返回:1
1126  返回:* Number of scatter-gather DMA addr+len pairs after * physical address coalescing is performed.
调用者
名称描述
blk_rq_map_sgmap a request to scatterlist, return number of sg entries setup. Caller* must make sure sg can hold rq->nr_phys_segments entries