Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sanity

Proto:static bool sanity(const struct iov_iter *i)

Type:bool

Parameter:

TypeParameterName
const struct iov_iter *i
327  pipe = pipe
328  p_head = head
329  p_tail = tail
330  p_mask = ring_size - 1
331  p_occupancy = pipe_occupancy - Return number of slots used in the pipe*@head: The pipe ring head pointer*@tail: The pipe ring tail pointer
332  i_head = head
335  If iov_offset Then
337  If Value for the false possibility is greater at compile time(p_occupancy == 0) Then Go to Bad
339  If Value for the false possibility is greater at compile time(i_head != p_head - 1) Then Go to Bad
342  p = bufs[i_head & p_mask]
343  If Value for the false possibility is greater at compile time(offset + len != iov_offset) Then Go to Bad
345  Else
346  If i_head != p_head Then Go to Bad
349  Return true
350  Bad :
351  printk(r conditions "idx = %d, offset = %zd\n", i_head, iov_offset)
352  printk(r conditions "head = %d, tail = %d, buffers = %d\n", p_head, p_tail, ring_size)
354  When idx < ring_size cycle printk(r conditions "[%p %p %d %d]\n", ops, page, offset, len)
360  WARN_ON(1)
361  Return false
Caller
NameDescribe
copy_page_to_iter_pipe
copy_pipe_to_iter
csum_and_copy_to_pipe_iter
pipe_zero
pipe_get_pages
pipe_get_pages_alloc
iov_iter_npages