Searched refs:newOps (Results 1 – 1 of 1) sorted by relevance
/kernel/liteos_a/kernel/extended/blackbox/ |
D | los_blackbox_core.c | 342 BBoxOps *newOps = NULL; in BBoxRegisterModuleOps() local 354 newOps = LOS_MemAlloc(m_aucSysMem1, sizeof(*newOps)); in BBoxRegisterModuleOps() 355 if (newOps == NULL) { in BBoxRegisterModuleOps() 359 (void)memset_s(newOps, sizeof(*newOps), 0, sizeof(*newOps)); in BBoxRegisterModuleOps() 360 if (memcpy_s(&newOps->ops, sizeof(newOps->ops), ops, sizeof(*ops)) != EOK) { in BBoxRegisterModuleOps() 362 (void)LOS_MemFree(m_aucSysMem1, newOps); in BBoxRegisterModuleOps() 367 (void)LOS_MemFree(m_aucSysMem1, newOps); in BBoxRegisterModuleOps() 381 (void)LOS_MemFree(m_aucSysMem1, newOps); in BBoxRegisterModuleOps() 387 LOS_ListTailInsert(&g_opsList, &newOps->opsList); in BBoxRegisterModuleOps()
|