PatchworkOS
Loading...
Searching...
No Matches
note.h File Reference
#include <kernel/config.h>
#include <kernel/cpu/interrupt.h>
#include <kernel/sync/lock.h>
#include <sys/io.h>
#include <sys/proc.h>

Go to the source code of this file.

Data Structures

struct  note_t
 Note structure. More...
 
struct  note_queue_t
 Per-thread note queue. More...
 

Macros

#define NOTE_MAX_BUFFER   64
 Maximum size of a notes buffer.
 

Typedefs

typedef struct cpu cpu_t
 

Enumerations

enum  note_queue_flag_t {
  NOTE_QUEUE_NONE = 0 ,
  NOTE_QUEUE_RECIEVED_KILL = 1 << 0
}
 Note queue flags. More...
 

Functions

void note_queue_init (note_queue_t *queue)
 Initialize a note queue.
 
uint64_t note_queue_length (note_queue_t *queue)
 Get the length of a note queue.
 
uint64_t note_queue_write (note_queue_t *queue, const void *buffer, uint64_t count)
 Write a note to a note queue.
 
void note_interrupt_handler (interrupt_frame_t *frame, cpu_t *self)
 Note interrupt handler.
 

Typedef Documentation

◆ cpu_t

typedef struct cpu cpu_t

Definition at line 10 of file note.h.