函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\iov_iter.c Create Date:2022-07-27 07:21:17
Last Modify:2022-05-21 11:43:54 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dup_iter

函数原型:const void *dup_iter(struct iov_iter *new, struct iov_iter *old, gfp_t flags)

返回类型:void

参数:

类型参数名称
struct iov_iter *new
struct iov_iter *old
gfp_tflags
1632  new等于old
1633  如果此条件成立可能性小(为编译器优化)(iov_iter_is_pipe(new))则
1634  WARN_ON(1)
1635  返回:NULL
1637  如果此条件成立可能性小(为编译器优化)(iov_iter_is_discard(new))则返回:NULL
1639  如果iov_iter_is_bvec(new)则返回:bvec等于kmemdup(bvec, nr_segs * sizeof(structbio_vec), flags)
1643  否则返回:iov等于kmemdup(iov, nr_segs * sizeof(structiovec), flags)