Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dax.c Create Date:2022-07-28 20:23:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_user_dax

Proto:static int copy_user_dax(struct block_device *bdev, struct dax_device *dax_dev, sector_t sector, size_t size, struct page *to, unsigned long vaddr)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
struct dax_device *dax_dev
sector_tsector
size_tsize
struct page *to
unsigned longvaddr
692  rc = bdev_dax_pgoff(bdev, sector, size, & pgoff)
693  If rc Then Return rc
696  id = dax_read_lock()
697  rc = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), & kaddr, NULL)
698  If rc < 0 Then
699  dax_read_unlock(id)
700  Return rc
702  vto = kmap_atomic(to)
703  copy_user_page(vto, (void__force * )kaddr, vaddr, to)
704  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.(vto)
705  dax_read_unlock(id)
706  Return 0
Caller
NameDescribe
dax_iomap_pte_fault