#include "threads/interrupt.h"
#include "threads/synch.h"
Go to the source code of this file.
Data Structures | |
struct | intq |
Defines | |
#define | INTQ_BUFSIZE 64 |
Functions | |
void | intq_init (struct intq *) |
bool | intq_empty (const struct intq *) |
bool | intq_full (const struct intq *) |
uint8_t | intq_getc (struct intq *) |
void | intq_putc (struct intq *, uint8_t) |
bool intq_empty | ( | const struct intq * | ) |
Definition at line 21 of file intq.c.
References ASSERT, intq::head, intr_get_level(), INTR_OFF, and intq::tail.
Referenced by intq_getc(), serial_flush(), serial_interrupt(), signal(), wait(), and write_ier().
bool intq_full | ( | const struct intq * | ) |
Definition at line 29 of file intq.c.
References ASSERT, intq::head, intr_get_level(), INTR_OFF, next(), and intq::tail.
Referenced by input_full(), input_putc(), intq_putc(), serial_putc(), signal(), and wait().
Definition at line 39 of file intq.c.
References ASSERT, intq::buf, intq_empty(), intr_context(), intr_get_level(), INTR_OFF, intq::lock, lock_acquire(), lock_release(), next(), intq::not_empty, intq::not_full, signal(), intq::tail, and wait().
Referenced by input_getc(), serial_flush(), serial_interrupt(), and serial_putc().
void intq_init | ( | struct intq * | ) |
Definition at line 12 of file intq.c.
References intq::head, intq::lock, lock_init(), intq::not_empty, intq::not_full, NULL, and intq::tail.
Referenced by init_poll(), and input_init().
Definition at line 62 of file intq.c.
References ASSERT, intq::buf, intq::head, intq_full(), intr_context(), intr_get_level(), INTR_OFF, intq::lock, lock_acquire(), lock_release(), next(), intq::not_empty, intq::not_full, signal(), and wait().
Referenced by input_putc(), and serial_putc().