Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
649bc99f
Commit
649bc99f
authored
17 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
align, sort
parent
b1fb19b6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
defs.h
+121
-124
121 additions, 124 deletions
defs.h
with
121 additions
and
124 deletions
defs.h
+
121
−
124
View file @
649bc99f
// kalloc.c
char
*
kalloc
(
int
);
void
kfree
(
char
*
,
int
);
void
kinit
(
void
);
// console.c
void
console_init
(
void
);
void
cprintf
(
char
*
,
...);
void
panic
(
char
*
)
__attribute__
((
noreturn
));
void
kbd_intr
(
void
);
// proc.c
void
pinit
(
void
);
struct
buf
;
struct
file
;
struct
inode
;
struct
jmpbuf
;
struct
pipe
;
struct
proc
;
void
setupsegs
(
struct
proc
*
);
struct
proc
*
copyproc
(
struct
proc
*
);
struct
spinlock
;
int
growproc
(
int
);
void
sleep
(
void
*
,
struct
spinlock
*
);
void
wakeup
(
void
*
);
void
scheduler
(
void
);
void
proc_exit
(
void
);
int
proc_kill
(
int
);
int
proc_wait
(
void
);
void
yield
(
void
);
void
procdump
(
void
);
void
userinit
(
void
);
// setjmp.S
struct
jmpbuf
;
int
setjmp
(
struct
jmpbuf
*
);
void
longjmp
(
struct
jmpbuf
*
);
struct
stat
;
struct
uinode
;
// trap.c
void
tvinit
(
void
);
void
idtinit
(
void
);
// 8253pit.c
void
pit8253_timerinit
(
void
);
// string.c
void
*
memset
(
void
*
,
int
,
uint
);
int
memcmp
(
const
void
*
,
const
void
*
,
uint
);
void
*
memmove
(
void
*
,
const
void
*
,
uint
);
int
strncmp
(
const
char
*
,
const
char
*
,
uint
);
char
*
safestrcpy
(
char
*
,
const
char
*
,
int
);
int
strlen
(
const
char
*
);
// bio.c
void
binit
(
void
);
struct
buf
*
bread
(
uint
,
uint
);
void
brelse
(
struct
buf
*
);
void
bwrite
(
struct
buf
*
);
// syscall.c
void
syscall
(
void
);
int
fetchint
(
struct
proc
*
,
uint
,
int
*
);
int
fetchstr
(
struct
proc
*
,
uint
,
char
**
);
int
argint
(
int
,
int
*
);
int
argptr
(
int
,
char
**
,
int
);
int
argstr
(
int
,
char
**
);
// console.c
void
console_init
(
void
);
void
cprintf
(
char
*
,
...);
void
kbd_intr
(
void
);
void
panic
(
char
*
)
__attribute__
((
noreturn
));
// picirq.c
void
pic_init
(
void
);
void
irq_enable
(
int
);
// exec.c
int
exec
(
char
*
,
char
**
);
// 8253pit.c
void
pit8253_timerinit
(
void
);
// file.c
struct
file
*
filealloc
(
void
);
void
fileclose
(
struct
file
*
);
void
fileincref
(
struct
file
*
);
void
fileinit
(
void
);
int
fileread
(
struct
file
*
,
char
*
,
int
n
);
int
filestat
(
struct
file
*
,
struct
stat
*
);
int
filewrite
(
struct
file
*
,
char
*
,
int
n
);
// mp.c
extern
int
ismp
;
void
mp_init
(
void
);
void
mp_startthem
(
void
);
int
mp_bcpu
(
void
);
// fs.c
int
dirlink
(
struct
inode
*
,
char
*
,
uint
);
struct
uinode
*
dirlookup
(
struct
inode
*
,
char
*
,
uint
*
);
struct
uinode
*
ialloc
(
uint
,
short
);
struct
uinode
*
idup
(
struct
uinode
*
);
void
iinit
(
void
);
struct
inode
*
ilock
(
struct
uinode
*
);
struct
uinode
*
iunlock
(
struct
inode
*
);
void
iput
(
struct
uinode
*
);
void
iupdate
(
struct
inode
*
);
int
namecmp
(
const
char
*
,
const
char
*
);
struct
uinode
*
namei
(
char
*
);
struct
uinode
*
nameiparent
(
char
*
,
char
*
);
int
readi
(
struct
inode
*
,
char
*
,
uint
,
uint
);
void
stati
(
struct
inode
*
,
struct
stat
*
);
int
writei
(
struct
inode
*
,
char
*
,
uint
,
uint
);
// lapic.c
extern
uint
*
lapicaddr
;
void
lapic_init
(
int
);
void
lapic_startap
(
uchar
,
int
);
void
lapic_timerinit
(
void
);
void
lapic_timerintr
(
void
);
void
lapic_enableintr
(
void
);
void
lapic_disableintr
(
void
);
void
lapic_eoi
(
void
);
int
cpu
(
void
);
// ide.c
void
ide_init
(
void
);
void
ide_intr
(
void
);
void
ide_rw
(
int
,
uint
,
void
*
,
uint
,
int
);
// ioapic.c
extern
uchar
ioapic_id
;
void
ioapic_init
(
void
)
;
void
ioapic_enable
(
int
irq
,
int
cpu
);
void
ioapic_enable
(
int
irq
,
int
cpu
)
;
extern
uchar
ioapic_id
;
void
ioapic_init
(
void
);
// spinlock.c
struct
spinlock
;
void
initlock
(
struct
spinlock
*
,
char
*
);
void
acquire
(
struct
spinlock
*
);
void
release
(
struct
spinlock
*
);
int
holding
(
struct
spinlock
*
);
void
getcallerpcs
(
void
*
,
uint
*
);
// kalloc.c
char
*
kalloc
(
int
);
void
kfree
(
char
*
,
int
);
void
kinit
(
void
);
// lapic.c
int
cpu
(
void
);
extern
uint
*
lapicaddr
;
void
lapic_disableintr
(
void
);
void
lapic_enableintr
(
void
);
void
lapic_eoi
(
void
);
void
lapic_init
(
int
);
void
lapic_startap
(
uchar
,
int
);
void
lapic_timerinit
(
void
);
void
lapic_timerintr
(
void
);
// mp.c
extern
int
ismp
;
int
mp_bcpu
(
void
);
void
mp_init
(
void
);
void
mp_startthem
(
void
);
// main.c
void
load_icode
(
struct
proc
*
,
uchar
*
,
uint
);
// picirq.c
void
irq_enable
(
int
);
void
pic_init
(
void
);
// pipe.c
struct
pipe
;
struct
file
;
int
pipe_alloc
(
struct
file
**
,
struct
file
**
);
void
pipe_close
(
struct
pipe
*
,
int
);
int
pipe_write
(
struct
pipe
*
,
char
*
,
int
);
int
pipe_read
(
struct
pipe
*
,
char
*
,
int
);
int
pipe_alloc
(
struct
file
**
,
struct
file
**
);
void
pipe_close
(
struct
pipe
*
,
int
);
int
pipe_read
(
struct
pipe
*
,
char
*
,
int
);
int
pipe_write
(
struct
pipe
*
,
char
*
,
int
);
// file.c
struct
stat
;
void
fileinit
(
void
);
struct
file
*
filealloc
(
void
);
void
fileclose
(
struct
file
*
);
int
fileread
(
struct
file
*
,
char
*
,
int
n
);
int
filewrite
(
struct
file
*
,
char
*
,
int
n
);
int
filestat
(
struct
file
*
,
struct
stat
*
);
void
fileincref
(
struct
file
*
);
// proc.c
struct
proc
*
copyproc
(
struct
proc
*
);
int
growproc
(
int
);
void
pinit
(
void
);
void
proc_exit
(
void
);
int
proc_kill
(
int
);
int
proc_wait
(
void
);
void
procdump
(
void
);
void
scheduler
(
void
);
void
setupsegs
(
struct
proc
*
);
void
sleep
(
void
*
,
struct
spinlock
*
);
void
userinit
(
void
);
void
wakeup
(
void
*
);
void
yield
(
void
);
// ide.c
void
ide_init
(
void
);
void
ide_intr
(
void
);
void
ide_rw
(
int
,
uint
,
void
*
,
uint
,
int
);
// setjmp.S
void
longjmp
(
struct
jmpbuf
*
);
int
setjmp
(
struct
jmpbuf
*
);
//
bio
.c
void
binit
(
void
);
struct
buf
;
struct
buf
*
bread
(
uint
,
uint
);
void
bwrite
(
struct
buf
*
);
void
b
relse
(
struct
buf
*
);
//
spinlock
.c
void
acquire
(
struct
spinlock
*
);
void
getcallerpcs
(
void
*
,
uint
*
)
;
int
holding
(
struct
spinlock
*
);
void
initlock
(
struct
spinlock
*
,
char
*
);
void
rel
ea
se
(
struct
spinlock
*
);
// fs.c
struct
inode
;
struct
uinode
;
void
iinit
(
void
);
struct
inode
*
ilock
(
struct
uinode
*
);
struct
uinode
*
iunlock
(
struct
inode
*
);
void
iput
(
struct
uinode
*
);
struct
uinode
*
idup
(
struct
uinode
*
);
struct
uinode
*
namei
(
char
*
);
void
stati
(
struct
inode
*
,
struct
stat
*
);
int
readi
(
struct
inode
*
,
char
*
,
uint
,
uint
);
int
writei
(
struct
inode
*
,
char
*
,
uint
,
uint
);
int
dirlink
(
struct
inode
*
dp
,
char
*
name
,
uint
ino
);
struct
uinode
*
dirlookup
(
struct
inode
*
dp
,
char
*
name
,
uint
*
poff
);
void
iupdate
(
struct
inode
*
ip
);
int
namecmp
(
const
char
*
s
,
const
char
*
t
);
struct
uinode
*
ialloc
(
uint
,
short
);
struct
uinode
*
nameiparent
(
char
*
path
,
char
*
name
);
// string.c
int
memcmp
(
const
void
*
,
const
void
*
,
uint
);
void
*
memmove
(
void
*
,
const
void
*
,
uint
);
void
*
memset
(
void
*
,
int
,
uint
);
char
*
safestrcpy
(
char
*
,
const
char
*
,
int
);
int
strlen
(
const
char
*
);
int
strncmp
(
const
char
*
,
const
char
*
,
uint
);
// exec.c
int
exec
(
char
*
,
char
**
);
// syscall.c
int
argint
(
int
,
int
*
);
int
argptr
(
int
,
char
**
,
int
);
int
argstr
(
int
,
char
**
);
int
fetchint
(
struct
proc
*
,
uint
,
int
*
);
int
fetchstr
(
struct
proc
*
,
uint
,
char
**
);
void
syscall
(
void
);
// trap.c
void
idtinit
(
void
);
void
tvinit
(
void
);
// number of elements in fixed-size array
#define NELEM(x) (sizeof(x)/sizeof((x)[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