36 {
38
45 }
46
50 return byte;
51}
bool intr_context(void)
Definition: interrupt.c:258
static void wait(struct intq *q, struct thread **waiter)
bool intq_empty(const struct intq *q)
Definition: intq.c:19
static void signal(struct intq *q, struct thread **waiter)
unsigned char uint8_t
Definition: stdint.h:20
struct lock lock
Definition: intq.h:26
struct thread * not_empty
Definition: intq.h:28
uint8_t buf[INTQ_BUFSIZE]
Definition: intq.h:31
struct thread * not_full
Definition: intq.h:27
void lock_release(struct lock *)
Definition: synch.c:243
void lock_acquire(struct lock *)
Definition: synch.c:202