Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:page_copy_sane

Proto:static inline bool page_copy_sane(struct page *page, size_t offset, size_t n)

Type:bool

Parameter:

TypeParameterName
struct page *page
size_toffset
size_tn
886  v = n + offset
895  If n <= v && v <= PAGE_SIZE Then Return true
898  head = compound_head(page)
899  v += page - head << PAGE_SHIFT determines the page size
901  If Value is more likely to compile time(n <= v && v <= (Returns the number of bytes in this potentially compound page. )) Then Return true
903  WARN_ON(1)
904  Return false
Caller
NameDescribe
copy_page_to_iter
copy_page_from_iter
iov_iter_copy_from_user_atomic