/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-debug-shell-magickey.md | 6 When the system does not respond, you can use the magic key to check whether the system is suspende… 8 If interrupts are responded, you can use the magic key to check the task CPU percent (CPUP) and loc… 13 The magic key depends on the macro **LOSCFG_ENABLE_MAGICKEY**. 20 This option is selected by default. If it is not selected, the magic key is invalid. 27 1. Press **Ctrl+R** to enable the magic key. 29 …ey on" is displayed, the magic key is enabled. To disable it, press **Ctrl+R** again. If "Magic ke… 31 The functions of the magic key are as follows: 33 - **Ctrl+Z**: displays help information about the related magic keys. 42 …magic key is enabled, when special characters need to be entered through the UART or USB-to-virtua…
|
H A D | kernel-small-debug-memory-corrupt.md | 15 …the check accuracy decreases because the node header does not contain the magic number (which is a… 20 > If memory corruption check is enabled, a magic number is added to the node header, which increase… 75 memory used but magic num wrong, magic num = 0x00000000 /* Error information, indicating that the f… 78 …g the address of the previous node, magic number of the node, and sizeAndFlag of the node. In this…
|
/ohos5.0/base/startup/init/services/begetctl/ |
H A D | misc_daemon.cpp | 97 uint32_t magic = 0; in WriteLogo() local 98 if (read(fd, &magic, sizeof(uint32_t)) != sizeof(uint32_t)) { in WriteLogo() 103 if (magic == LOGO_MAGIC) { in WriteLogo() 109 magic = LOGO_MAGIC; in WriteLogo() 111 if (write(fd, &magic, sizeof(magic)) != sizeof(magic)) { in WriteLogo() 170 uint32_t magic = 0; in WriteLogoToMisc() local 172 if (read(fd1, &magic, sizeof(uint32_t)) != sizeof(uint32_t)) { in WriteLogoToMisc()
|
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/device_client/ |
H A D | process_cpu_data.cpp | 23 ProcessCpuData::ProcessCpuData(int magic, int pid, unsigned int count): entry_(nullptr), current_(0) in ProcessCpuData() argument 25 Init(magic, count, pid); in ProcessCpuData() 28 void ProcessCpuData::Init(int magic, unsigned int totalCount, int pid) in Init() argument 37 entry_->magic = magic; in Init()
|
H A D | thread_cpu_data.cpp | 26 ThreadCpuData::ThreadCpuData(int magic, int pid, unsigned int threadCount): entry_(nullptr), curren… in ThreadCpuData() argument 28 Init(magic, threadCount + ADD_COUNT, pid); in ThreadCpuData() 31 void ThreadCpuData::Init(int magic, unsigned int totalCount, int pid) in Init() argument 40 entry_->magic = magic; in Init()
|
/ohos5.0/base/security/code_signature/utils/include/ |
H A D | code_sign_block.h | 42 uint64_t magic; member 57 uint32_t magic; member 84 uint32_t magic; member 96 uint32_t magic; member 156 if (header->magic != CSB_BLOCK_HEADER_MAGIC) { in SetCodeSignBlockHeader() 174 if (info->magic != CSB_FSVERITY_MAGIC) { in SetFsVerityInfo() 189 if (info->magic != CSB_HAP_HEADER_MAGIC) { in SetHapSignInfo() 204 if (info->magic != CSB_SO_HEADER_MAGIC) { in SetNativeLibSignInfo()
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/ |
H A D | hap_signing_block_utils_test.cpp | 73 long long magic = HapSigningBlockUtils::HAP_SIG_BLOCK_MAGIC_LOW_OLD; in CreatTestZipFile() local 74 hapFile.write(reinterpret_cast<char*>(&magic), sizeof(magic)); in CreatTestZipFile() 75 magic = HapSigningBlockUtils::HAP_SIG_BLOCK_MAGIC_HIGH_OLD; in CreatTestZipFile() 76 hapFile.write(reinterpret_cast<char*>(&magic), sizeof(magic)); in CreatTestZipFile() 84 hapFile.write(reinterpret_cast<char*>(&magic), sizeof(magic)); in CreatTestZipFile() 97 sizeof(centralDirOffset) + sizeof(magic) + sizeof(eocdCommentLen); in CreatTestZipFile()
|
/ohos5.0/foundation/communication/dsoftbus/core/connection/common/src/ |
H A D | softbus_datahead_transform.c | 26 data->magic = (int32_t)SoftBusHtoLl((uint32_t)data->magic); in PackConnPktHead() 38 data->magic = (int32_t)SoftBusLtoHl((uint32_t)data->magic); in UnpackConnPktHead()
|
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/src/ |
H A D | client_trans_proxy_file_helper.c | 85 uint32_t magic = SoftBusLtoHl(*(uint32_t *)data); in UnpackFileTransResultFrame() local 87 …if (magic != FILE_MAGIC_NUMBER || dataLen != (FRAME_DATA_SEQ_OFFSET + sizeof(uint32_t) + sizeof(in… in UnpackFileTransResultFrame() 89 …S_FILE, "recv ack response head fail. magic=%{public}u, dataLen=%{public}" PRIu64, magic, dataLen); in UnpackFileTransResultFrame() 129 frame->magic = SoftBusLtoHl((*(uint32_t *)(frame->data))); in UnpackAckReqAndResData() 131 …if (frame->magic != FILE_MAGIC_NUMBER || dataLen < FRAME_DATA_SEQ_OFFSET + FRAME_DATA_SEQ_OFFSET) { in UnpackAckReqAndResData() 161 (*(uint32_t *)(fileFrame->data)) = SoftBusHtoLl(fileFrame->magic); in PackReadFileData() 202 (*(uint32_t *)(fileFrame->data)) = SoftBusHtoLl(fileFrame->magic); in PackReadFileRetransData() 227 fileFrame->magic = SoftBusLtoHl((*(uint32_t *)(fileFrame->data))); in UnpackFileDataFrame() 229 if (fileFrame->magic != FILE_MAGIC_NUMBER || in UnpackFileDataFrame() 232 fileFrame->magic, dataLen); in UnpackFileDataFrame() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/ |
H A D | static_plugin_decl.h | 80 static struct magic { \ 81 magic() \ 85 } magic;
|
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/transport/ |
H A D | message_handler.cpp | 50 head->magic = MSG_MAGIC; in PackData() 96 msgHdr_.magic = head->magic; in UnPackData() 101 if (msgHdr_.magic != MSG_MAGIC) { in UnPackData()
|
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/inner_include/ |
H A D | process_cpu_data.h | 23 ProcessCpuData(int magic, int pid, unsigned int count); 28 void Init(int magic, unsigned int totalCount, int pid);
|
H A D | thread_cpu_data.h | 24 ThreadCpuData(int magic, int pid, unsigned int thread_count); 29 void Init(int magic, unsigned int totalCount, int pid);
|
H A D | unified_collection_data.h | 40 int magic; member 66 int magic; member
|
/ohos5.0/foundation/graphic/graphic_surface/surface/src/ |
H A D | buffer_extra_data_impl.cpp | 27 int32_t magic = 0; in ReadFromParcel() local 28 if (parcel.ReadInt32(magic) == false || magic != BUFFER_EXTRA_DATA_MAGIC) { in ReadFromParcel() 29 BLOGW("read failed, magic: %{public}d", magic); in ReadFromParcel()
|
/ohos5.0/foundation/graphic/graphic_surface/surface/include/ |
H A D | native_window.h | 28 NativeWindowMagic(NativeObjectMagic m) : magic(m) {} in NativeWindowMagic() 30 NativeObjectMagic magic; member
|
/ohos5.0/drivers/interface/display/composer/command_pack/ |
H A D | command_data_unpacker.h | 92 uint32_t magic; in BeginSection() local 95 DISPLAY_CHK_RETURN(ReadUint32(magic) == false, false, in BeginSection() 97 DISPLAY_CHK_RETURN(magic != SECTION_END_MAGIC, false, in BeginSection()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/dbm_kv_store/src/kv_store_impl_hal/ |
H A D | dbm_kv_store.c | 97 … char magic[KV_MAGIC_SIZE + 1]; // it is a buff special identification db member 179 if (strcpy_s(db->magic, KV_MAGIC_SIZE + 1, KV_MAGIC) != EOK) { in GetKVDBHandle() 248 char magic[KV_MAGIC_SIZE + 1] = {0}; in IsHeaderValid() local 249 if (memcpy_s(magic, sizeof(magic), header + KV_SUM_INDEX, KV_MAGIC_SIZE) != EOK && in IsHeaderValid() 250 !IsStrSame(magic, KV_MAGIC_SIZE + 1, KV_MAGIC)) { in IsHeaderValid() 256 if (memcpy_s(magic, sizeof(magic), header + 4 * KV_SUM_BLOCK_SIZE, KV_MAGIC_SIZE) != EOK && in IsHeaderValid() 257 !IsStrSame(magic, KV_MAGIC_SIZE + 1, KV_MAGIC)) { in IsHeaderValid() 812 if (!db->initOK || !IsStrSame(db->magic, KV_MAGIC_SIZE + 1, KV_MAGIC)) { in Get() 1131 if (!db->initOK || !IsStrSame(db->magic, KV_MAGIC_SIZE + 1, KV_MAGIC)) { in Put() 1217 if (!db->initOK || !IsStrSame(db->magic, KV_MAGIC_SIZE + 1, KV_MAGIC)) { in Delete() [all …]
|
/ohos5.0/base/startup/init/interfaces/innerkits/fs_manager/erofs_overlay/ |
H A D | erofs_overlay_common.c | 99 BEGET_LOGI("the [dev] %s magic [%u]", dev, superBlock.magic); in CheckIsErofs() 100 if (superBlock.magic == EROFS_SUPER_MAGIC) { in CheckIsErofs()
|
/ohos5.0/docs/zh-cn/device-dev/kernel/ |
H A D | kernel-small-debug-memory-corrupt.md | 77 memory used but magic num wrong, magic num = 0x00000000 /* 提示信息,检测到哪个字段被破坏了,用例构造了将下个节点的头4个字节清零,即魔…
|
/ohos5.0/base/tee/tee_client/services/teecd/src/ |
H A D | misc_work_agent.c | 74 transControl->magic = AGENT_MISC_ID; in MiscWorkThread() 100 transControl->magic = AGENT_MISC_ID; in MiscWorkThread()
|
/ohos5.0/drivers/interface/camera/sequenceable/map_data/ |
H A D | map_data_sequenceable.cpp | 42 int32_t magic; in Unmarshalling() local 43 if (parcel.ReadInt32(magic) == false || magic != BUFFER_DATA_MAGIC) { in Unmarshalling()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/ |
H A D | header_converter.cpp | 23 headerConverted.magic = HostToNet(headerOriginal.magic); in ConvertHostToNet()
|
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/ |
H A D | dfx_kernel_stack.cpp | 36 uint32_t magic {0}; member 49 kstackBuf->magic = MAGIC_NUM; in DfxGetKernelStack()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/session_manager/ |
H A D | route_head_handler_impl.cpp | 152 head->magic = HostToNet(RouteHead::MAGIC_NUMBER); in PackDataHead() 249 routeHead.magic = NetToHost(head->magic); in UnPackDataHead() 253 if (routeHead.magic != RouteHead::MAGIC_NUMBER) { in UnPackDataHead()
|