Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\iov_iter.c Create Date:2022-07-28 06:24:07
Last Modify:2022-05-21 11:43:54 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dup_iter

Proto:const void *dup_iter(struct iov_iter *new, struct iov_iter *old, gfp_t flags)

Type:void

Parameter:

TypeParameterName
struct iov_iter *new
struct iov_iter *old
gfp_tflags
1632  new = old
1633  If Value for the false possibility is greater at compile time(iov_iter_is_pipe(new)) Then
1634  WARN_ON(1)
1635  Return NULL
1637  If Value for the false possibility is greater at compile time(iov_iter_is_discard(new)) Then Return NULL
1639  If iov_iter_is_bvec(new) Then Return bvec = kmemdup(bvec, nr_segs * sizeof(structbio_vec), flags)
1643  Else Return iov = kmemdup(iov, nr_segs * sizeof(structiovec), flags)