Lines Matching refs:item
36 BOOT_EVENT_PARAM_ITEM *item = (BOOT_EVENT_PARAM_ITEM *)calloc(1, sizeof(BOOT_EVENT_PARAM_ITEM));
37 if (item == nullptr) {
40 OH_ListInit(&item->node);
41 item->paramName = strdup(name);
42 if (item->paramName == nullptr) {
43 free(item);
46 (void)clock_gettime(CLOCK_MONOTONIC, &(item->timestamp[BOOTEVENT_FORK]));
47 (void)clock_gettime(CLOCK_MONOTONIC, &(item->timestamp[BOOTEVENT_READY]));
48 item->flags = type;
49 OH_ListAddTail(events, (ListNode *)&item->node);
57 BOOT_EVENT_PARAM_ITEM *item = (BOOT_EVENT_PARAM_ITEM *)node;
60 free(item->paramName);
61 free(item);