Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

disk.cc File Reference

#include "copyright.h"
#include "disk.h"
#include "system.h"

Go to the source code of this file.

Functions

void PrintSector (bool writing, int sector, char *data)

Variables

const int MagicNumber = 0x456789ab
const int MagicSize = sizeof(int)
const int DiskSize = (MagicSize + (NumSectors * SectorSize))


Function Documentation

void PrintSector ( bool writing,
int sector,
char * data ) [static]
 

Disk::PrintSector() Dump the data in a disk read/write request, for debugging.

Definition at line 82 of file disk.cc.

Referenced by Disk::ReadRequest(), and Disk::WriteRequest().


Variable Documentation

const int DiskSize = (MagicSize + (NumSectors * SectorSize))
 

Definition at line 26 of file disk.cc.

const int MagicNumber = 0x456789ab
 

Definition at line 24 of file disk.cc.

const int MagicSize = sizeof(int)
 

Definition at line 25 of file disk.cc.


Generated at Wed Jul 4 11:32:22 2001 for Nachos by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001