Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:iov_iter_copy_from_user_atomic

Proto:size_t iov_iter_copy_from_user_atomic(struct page *page, struct iov_iter *i, unsigned long offset, size_t bytes)

Type:size_t

Parameter:

TypeParameterName
struct page *page
struct iov_iter *i
unsigned longoffset
size_tbytes
989  kaddr = kmap_atomic(page) , p = kaddr + offset
990  If Value for the false possibility is greater at compile time(!page_copy_sane(page, offset, bytes)) Then
991  Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(kaddr)
992  Return 0
994  If Value for the false possibility is greater at compile time(iov_iter_is_pipe(i) || iov_iter_is_discard(i)) Then
995  Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(kaddr)
996  WARN_ON(1)
997  Return 0
999  iterate_all_kinds(i, bytes, v, copyin((p += iov_len) - iov_len, iov_base, iov_len), memcpy_from_page((p += bv_len) - bv_len, bv_page, bv_offset, bv_len), No 3D Now!((p += iov_len) - iov_len, iov_base, iov_len))
1005  Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(kaddr)
1006  Return bytes