54 for (i = 0; i < maxCount; ++i) {
55 if (LOS_GetUser(&character, src + offset) != LOS_OK) {
58 *(
CHAR *)(dst + offset) = character;
59 if (character ==
'\0') {
STATIC INLINE BOOL LOS_IsKernelAddress(VADDR_T vaddr)
虚拟地址是否在内核空间
STATIC INLINE BOOL LOS_IsUserAddressRange(VADDR_T vaddr, size_t len)
虚拟地址[vaddr,vaddr + len]是否在用户空间
STATIC INLINE BOOL LOS_IsUserAddress(VADDR_T vaddr)
虚拟地址是否在用户空间