函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\resource.c Create Date:2022-07-27 10:04:55
Last Modify:2022-05-22 11:14:39 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int region_intersects(resource_size_t start, size_t size, unsigned long flags, unsigned long desc)

返回类型:int

参数:

类型参数名称
resource_size_tstart
size_tsize
unsigned longflags
unsigned longdesc
540  type等于0
540  other等于0
543  start等于start
544  end等于startsize减1
546  read_lock( & resource_lock)
547 p循环
548  is_type等于flags按位与flags的值恒等于flagsdesc恒等于IORES_DESC_NONEdesc恒等于desc的值
552  如果True if any part of r1 overlaps r2 则如果is_typetype自加否则other自加
555  read_unlock( & resource_lock)
557  如果other恒等于0则返回:如果typeREGION_INTERSECTS否则REGION_DISJOINT
560  如果type则返回:REGION_MIXED
563  返回:REGION_DISJOINT
调用者
名称描述
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