PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions
console.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void console_init (void)
 Enable console locking. More...
 
void console_panic (void)
 Notifies the console that a kernel panic is underway, which warns it to avoid trying to take the console lock from now on. More...
 
void console_print_stats (void)
 lib/kernel/console.h More...
 

Function Documentation

◆ console_init()

void console_init ( void  )

Enable console locking.

Definition at line 64 of file console.c.

References console_lock, lock_init(), and use_console_lock.

Referenced by pintos_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ console_panic()

void console_panic ( void  )

Notifies the console that a kernel panic is underway, which warns it to avoid trying to take the console lock from now on.

Definition at line 74 of file console.c.

References use_console_lock.

Referenced by debug_panic().

Here is the caller graph for this function:

◆ console_print_stats()

void console_print_stats ( void  )

lib/kernel/console.h

lib/kernel/console.h

Definition at line 81 of file console.c.

References printf(), and write_cnt.

Referenced by print_stats().

Here is the call graph for this function:
Here is the caller graph for this function: