函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-27 18:30:53
Last Modify:2020-03-17 23:13:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bio_alloc_map_data

函数原型:static struct bio_map_data *bio_alloc_map_data(struct iov_iter *data, gfp_t gfp_mask)

返回类型:struct bio_map_data

参数:

类型参数名称
struct iov_iter *data
gfp_tgfp_mask
1148  如果nr_segs大于UIO_MAXIOV则返回:NULL
1151  bmd等于开辟内存
1152  如果非bmd则返回:NULL
1154  memcpy(iov, iov, sizeof(structiovec) * nr_segs)
1155  iter等于data
1156  iov等于iov
1157  返回:bmd
调用者
名称描述
bio_copy_user_iov_copy_user_iov - copy user data to bio*@q: destination block queue*@map_data: pointer to the rq_map_data holding pages (if necessary)*@iter: iovec iterator*@gfp_mask: memory allocation flags* Prepares and returns a bio for indirect user io, bouncing data