summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proc.h2
-rw-r--r--stat.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/proc.h b/proc.h
index 385a92f..6561ad3 100644
--- a/proc.h
+++ b/proc.h
@@ -7,7 +7,7 @@ struct cpu {
struct context *scheduler; // swtch() here to enter scheduler
struct taskstate ts; // Used by x86 to find stack for interrupt
struct segdesc gdt[NSEGS]; // x86 global descriptor table
- volatile uint started; // Has the CPU started?
+ volatile uint started; // Has the CPU started?
int ncli; // Depth of pushcli nesting.
int intena; // Were interrupts enabled before pushcli?
diff --git a/stat.h b/stat.h
index 604fa9c..8a80933 100644
--- a/stat.h
+++ b/stat.h
@@ -1,11 +1,11 @@
#define T_DIR 1 // Directory
#define T_FILE 2 // File
-#define T_DEV 3 // Special device
+#define T_DEV 3 // Device
struct stat {
short type; // Type of file
- int dev; // Device number
- uint ino; // Inode number on device
+ int dev; // File system's disk device
+ uint ino; // Inode number
short nlink; // Number of links to file
uint size; // Size of file in bytes
};