Rename event pipes to broadcast pipes

This commit is contained in:
2025-09-09 17:52:19 +02:00
parent ab224eda8e
commit 1029db6342
6 changed files with 16 additions and 15 deletions

View File

@ -94,7 +94,7 @@ int32_t SYSCALL5(sys_ipcpipe, pid1, pipenum1, cmd1, buffer1, len1) {
ret = ipc_piperead(pipe, buffer, len1);
} break;
case IPCPIPE_REG_EVT_PIPE: {
case IPCPIPE_ADD_BCAST: {
if (pipenum >= PROC_PIPEHANDLES_MAX) {
ret = E_NOMEMORY;
goto done;
@ -119,9 +119,9 @@ int32_t SYSCALL5(sys_ipcpipe, pid1, pipenum1, cmd1, buffer1, len1) {
goto done;
}
spinlock_acquire(&proc2->eventpipes_spinlock);
LL_APPEND(proc2->eventpipes, pipe);
spinlock_release(&proc2->eventpipes_spinlock);
spinlock_acquire(&proc2->bcast_pipes.spinlock);
LL_APPEND(proc2->bcast_pipes.list, pipe);
spinlock_release(&proc2->bcast_pipes.spinlock);
ret = E_OK;
} break;