函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dax.c Create Date:2022-07-29 10:56:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:copy_user_dax

函数原型: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)

返回类型:int

参数:

类型参数名称
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  如果rc则返回:rc
696  id等于dax_read_lock()
697  rc等于dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), & kaddr, NULL)
698  如果rc小于0则
699  dax_read_unlock(id)
700  返回: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  返回:0
调用者
名称描述
dax_iomap_pte_fault