Rename event pipes to broadcast pipes
This commit is contained in:
@ -13,7 +13,7 @@ Ps2KbFastBuf PS2KB_BUF;
|
||||
void ps2kbproc_init(Proc *proc) {
|
||||
PS2KBPROC = proc;
|
||||
|
||||
PS2KBPROC->eventpipes = NULL;
|
||||
PS2KBPROC->bcast_pipes.list = NULL;
|
||||
|
||||
PS2KB_BUF.rbuf.buffer = dlmalloc(IPC_PIPE_MAX);
|
||||
PS2KB_BUF.rbuf.cap = IPC_PIPE_MAX;
|
||||
@ -33,13 +33,13 @@ void ps2kbproc_fn(void) {
|
||||
}
|
||||
spinlock_release(&PS2KB_BUF.spinlock);
|
||||
if (i > 0) {
|
||||
spinlock_acquire(&PS2KBPROC->eventpipes_spinlock);
|
||||
IpcPipe *head = PS2KBPROC->eventpipes;
|
||||
spinlock_acquire(&PS2KBPROC->bcast_pipes.spinlock);
|
||||
IpcPipe *head = PS2KBPROC->bcast_pipes.list;
|
||||
while (head != NULL) {
|
||||
ipc_pipewrite(head, (uint8_t *)&kbchr, sizeof(kbchr));
|
||||
head = head->next;
|
||||
}
|
||||
spinlock_release(&PS2KBPROC->eventpipes_spinlock);
|
||||
spinlock_release(&PS2KBPROC->bcast_pipes.spinlock);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user