Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\resource.c Create Date:2022-07-28 09:05:08
Last Modify:2022-05-22 11:14:39 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:gion_intersects() - determine intersection of region with known resources*@start: region start address*@size: size of region*@flags: flags of resource (in iomem_resource)*@desc: descriptor of resource (in iomem_resource) or IORES_DESC_NONE* Check if the

Proto:int region_intersects(resource_size_t start, size_t size, unsigned long flags, unsigned long desc)

Type:int

Parameter:

TypeParameterName
resource_size_tstart
size_tsize
unsigned longflags
unsigned longdesc
540  type = 0
540  other = 0
543  start = start
544  end = start + size - 1
546  read_lock( & resource_lock)
547  When p cycle
548  is_type = (flags & flags) == flags && ( desc == IORES_DESC_NONE || desc == desc )
552  If True if any part of r1 overlaps r2 Then If is_type Then type++ Else other++
555  read_unlock( & resource_lock)
557  If other == 0 Then Return If type Then REGION_INTERSECTS Else REGION_DISJOINT
560  If type Then Return REGION_MIXED
563  Return REGION_DISJOINT
Caller
NameDescribe
memremapmemremap() - remap an iomem_resource as cacheable memory*@offset: iomem resource start address*@size: size of remap*@flags: any of MEMREMAP_WB, MEMREMAP_WT, MEMREMAP_WC,* MEMREMAP_ENC, MEMREMAP_DEC* memremap() is "ioremap" for cases where it is known that