Lines Matching refs:pIpcEvent
93 static VOID IpcEvent_SendMessageToChild(IpcEvent_t* pIpcEvent, PS8 msg)
95 write(pIpcEvent->pipe_to_child, msg, os_strlen(msg));
566 IpcEvent_t* pIpcEvent = (IpcEvent_t*)os_MemoryCAlloc(sizeof(IpcEvent_t), sizeof(U8));
567 if(pIpcEvent == NULL)
574 pIpcEvent->p_shared_memory = mmap(0, sizeof(IpcEvent_Shared_Memory_t), PROT_READ | PROT_WRITE, MAP_ANON | MAP_SHARED, -1, 0);
575 if ( pIpcEvent->p_shared_memory == ((PVOID)-1))
578 IpcEvent_Destroy(pIpcEvent);
583 pipe(pIpcEvent->p_shared_memory->pipe_fields);
586 pIpcEvent->p_shared_memory->event_mask = 0;
589 pIpcEvent->child_process_id = fork();
591 if (0 == pIpcEvent->child_process_id)
603 pIpcEventChild->p_shared_memory = pIpcEvent->p_shared_memory;
615 pIpcEvent->pipe_to_child = pIpcEvent->p_shared_memory->pipe_fields[PIPE_WRITE];
616 close(pIpcEvent->p_shared_memory->pipe_fields[PIPE_READ]);
618 return pIpcEvent;
623 IpcEvent_t* pIpcEvent = (IpcEvent_t*)hIpcEvent;
625 if((pIpcEvent->p_shared_memory != ((PVOID)-1)) && (pIpcEvent->p_shared_memory))
627 munmap(pIpcEvent->p_shared_memory, sizeof(IpcEvent_Shared_Memory_t));
631 kill(pIpcEvent->child_process_id, SIGKILL);
633 os_MemoryFree(pIpcEvent);
639 IpcEvent_t* pIpcEvent = (IpcEvent_t*)hIpcEvent;
641 if(pIpcEvent->p_shared_memory->event_mask & ((u64)1 << event))
647 pIpcEvent->p_shared_memory->event_mask |= ((u64)1 << event);
656 IpcEvent_t* pIpcEvent = (IpcEvent_t*)hIpcEvent;
658 if(!(pIpcEvent->p_shared_memory->event_mask & (1 << event)))
664 pIpcEvent->p_shared_memory->event_mask &= ~(1 << event);
672 IpcEvent_t* pIpcEvent = (IpcEvent_t*)hIpcEvent;
674 pIpcEvent->p_shared_memory->content.debug_level = debug_level;
675 IpcEvent_SendMessageToChild(pIpcEvent, (PS8)IPC_EVENT_MSG_UPDATE_DEBUG_LEVEL);