Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dax_iomap_pfn

Proto:static int dax_iomap_pfn(struct iomap *iomap, loff_t pos, size_t size, pfn_t *pfnp)

Type:int

Parameter:

TypeParameterName
struct iomap *iomap
loff_tpos
size_tsize
pfn_t *pfnp
994  sector = dax_iomap_sector(iomap, pos)
999  rc = bdev_dax_pgoff( block device for I/O , sector, size, & pgoff)
1000  If rc Then Return rc
1002  id = dax_read_lock()
1003  length = dax_direct_access( dax_dev for dax operations , pgoff, PHYS_PFN(size), NULL, pfnp)
1005  If length < 0 Then
1006  rc = length
1007  Go to out
1009  rc = -EINVAL
1010  If PFN_PHYS(length) < size Then Go to out
1012  If pfn_t_to_pfn( * pfnp) & PHYS_PFN(size) - 1 Then Go to out
1015  If length > 1 && Not pfn_t_devmap( * pfnp) Then Go to out
1017  rc = 0
1018  out :
1019  dax_read_unlock(id)
1020  Return rc
Caller
NameDescribe
dax_iomap_pte_fault