Changes in kernel/generic/src/console/chardev.c [7ddc2c7:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/chardev.c
r7ddc2c7 r9d58539 94 94 { 95 95 if (atomic_get(&haltstate)) { 96 /* 97 * If we are here, we are hopefully on the processor that 96 /* If we are here, we are hopefully on the processor that 98 97 * issued the 'halt' command, so proceed to read the character 99 98 * directly from input … … 116 115 waitq_sleep(&indev->wq); 117 116 irq_spinlock_lock(&indev->lock, true); 118 wchar_t ch = indev->buffer[(indev->index - indev->counter) % 119 INDEV_BUFLEN]; 117 wchar_t ch = indev->buffer[(indev->index - indev->counter) % INDEV_BUFLEN]; 120 118 indev->counter--; 121 119 irq_spinlock_unlock(&indev->lock, true); 122 120 123 121 return ch; 124 }125 126 /** Signal out-of-band condition127 *128 * @param indev Input character device.129 * @param signal Out-of-band condition to signal.130 *131 */132 void indev_signal(indev_t *indev, indev_signal_t signal)133 {134 if ((indev != NULL) && (indev->op != NULL) &&135 (indev->op->signal != NULL))136 indev->op->signal(indev, signal);137 122 } 138 123
Note:
See TracChangeset
for help on using the changeset viewer.