Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\asm-generic\sections.h Create Date:2022-07-28 05:49:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:memory_intersects - checks if the region occupied by an object intersects* with another memory region*@begin: virtual address of the beginning of the memory regien*@end: virtual address of the end of the memory region*@virt: virtual address of the memory

Proto:static inline bool memory_intersects(void *begin, void *end, void *virt, size_t size)

Type:bool

Parameter:

TypeParameterName
void *begin
void *end
void *virt
size_tsize
125  vend = virt + size
127  Return virt >= begin && virt < end || vend >= begin && vend < end