pintos/src/devices/intq.h File Reference

#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)


Define Documentation

#define INTQ_BUFSIZE   64

Definition at line 22 of file intq.h.

Referenced by next().


Function Documentation

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().

uint8_t intq_getc ( struct intq  ) 

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().

void intq_putc ( struct intq ,
uint8_t   
)


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6