Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_pipe_to_iter

Proto:static size_t copy_pipe_to_iter(const void *addr, size_t bytes, struct iov_iter *i)

Type:size_t

Parameter:

TypeParameterName
const void *addr
size_tbytes
struct iov_iter *i
554  pipe = pipe
555  p_mask = ring_size - 1
559  If Not sanity(i) Then Return 0
562  bytes = n = push_pipe(i, bytes, & i_head, & off)
563  If Value for the false possibility is greater at compile time(!n) Then Return 0
565  Do
566  chunk = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, n, PAGE_SIZE - off)
567  memcpy_to_page(page, off, addr, chunk)
568  head = i_head
569  iov_offset = off + chunk
570  n -= chunk
571  addr += chunk
572  off = 0
573  i_head++
574  When n cycle
575  count -= bytes
576  Return bytes
Caller
NameDescribe
_copy_to_iter