Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krishna Vinnakota
CSEP551
Commits
d911d83c
Commit
d911d83c
authored
18 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
fix various comments
parent
ec5783cb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
fs.c
+0
-6
0 additions, 6 deletions
fs.c
fs.h
+2
-2
2 additions, 2 deletions
fs.h
proc.c
+1
-1
1 addition, 1 deletion
proc.c
with
3 additions
and
9 deletions
fs.c
+
0
−
6
View file @
d911d83c
...
@@ -26,9 +26,6 @@
...
@@ -26,9 +26,6 @@
// so we don't use spin locks. Instead, if a process wants to use
// so we don't use spin locks. Instead, if a process wants to use
// a particular inode, it must sleep(ip) to wait for it to be not busy.
// a particular inode, it must sleep(ip) to wait for it to be not busy.
// See iget below.
// See iget below.
//
// XXX Inodes with dev == 0 exist only in memory. They have no on-disk
// representation. This functionality is used to implement pipes.
struct
inode
inode
[
NINODE
];
struct
inode
inode
[
NINODE
];
struct
spinlock
inode_table_lock
;
struct
spinlock
inode_table_lock
;
...
@@ -362,7 +359,6 @@ iincref(struct inode *ip)
...
@@ -362,7 +359,6 @@ iincref(struct inode *ip)
}
}
// Copy stat information from inode.
// Copy stat information from inode.
// XXX Assumes inode is from disk file system.
void
void
stati
(
struct
inode
*
ip
,
struct
stat
*
st
)
stati
(
struct
inode
*
ip
,
struct
stat
*
st
)
{
{
...
@@ -376,7 +372,6 @@ stati(struct inode *ip, struct stat *st)
...
@@ -376,7 +372,6 @@ stati(struct inode *ip, struct stat *st)
#define min(a, b) ((a) < (b) ? (a) : (b))
#define min(a, b) ((a) < (b) ? (a) : (b))
// Read data from inode.
// Read data from inode.
// XXX Assumes inode is from disk file system.
int
int
readi
(
struct
inode
*
ip
,
char
*
dst
,
uint
off
,
uint
n
)
readi
(
struct
inode
*
ip
,
char
*
dst
,
uint
off
,
uint
n
)
{
{
...
@@ -440,7 +435,6 @@ newblock(struct inode *ip, uint lbn)
...
@@ -440,7 +435,6 @@ newblock(struct inode *ip, uint lbn)
}
}
// Write data to inode.
// Write data to inode.
// XXX Assumes inode is from disk file system.
int
int
writei
(
struct
inode
*
ip
,
char
*
addr
,
uint
off
,
uint
n
)
writei
(
struct
inode
*
ip
,
char
*
addr
,
uint
off
,
uint
n
)
{
{
...
...
This diff is collapsed.
Click to expand it.
fs.h
+
2
−
2
View file @
d911d83c
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
// File system super block
// File system super block
struct
superblock
{
struct
superblock
{
uint
size
;
// Size of file system
(bytes???) xxx
uint
size
;
// Size of file system
image (blocks)
uint
nblocks
;
// Number of blocks
uint
nblocks
;
// Number of
data
blocks
uint
ninodes
;
// Number of inodes.
uint
ninodes
;
// Number of inodes.
};
};
...
...
This diff is collapsed.
Click to expand it.
proc.c
+
1
−
1
View file @
d911d83c
...
@@ -38,7 +38,7 @@ setupsegs(struct proc *p)
...
@@ -38,7 +38,7 @@ setupsegs(struct proc *p)
}
}
c
->
gdt
[
0
]
=
SEG_NULL
;
c
->
gdt
[
0
]
=
SEG_NULL
;
c
->
gdt
[
SEG_KCODE
]
=
SEG
(
STA_X
|
STA_R
,
0
,
0x100000
+
64
*
1024
,
0
);
// xxx
c
->
gdt
[
SEG_KCODE
]
=
SEG
(
STA_X
|
STA_R
,
0
,
0x100000
+
64
*
1024
,
0
);
c
->
gdt
[
SEG_KDATA
]
=
SEG
(
STA_W
,
0
,
0xffffffff
,
0
);
c
->
gdt
[
SEG_KDATA
]
=
SEG
(
STA_W
,
0
,
0xffffffff
,
0
);
c
->
gdt
[
SEG_TSS
]
=
SEG16
(
STS_T32A
,
(
uint
)
&
c
->
ts
,
sizeof
(
c
->
ts
),
0
);
c
->
gdt
[
SEG_TSS
]
=
SEG16
(
STS_T32A
,
(
uint
)
&
c
->
ts
,
sizeof
(
c
->
ts
),
0
);
c
->
gdt
[
SEG_TSS
].
s
=
0
;
c
->
gdt
[
SEG_TSS
].
s
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment