formatting
This commit is contained in:
parent
c2f354e4e1
commit
6eed1ee9b0
2 changed files with 3 additions and 1 deletions
1
bio.c
1
bio.c
|
@ -42,6 +42,7 @@ binit(void)
|
||||||
|
|
||||||
initlock(&buf_table_lock, "buf_table");
|
initlock(&buf_table_lock, "buf_table");
|
||||||
|
|
||||||
|
//PAGEBREAK!
|
||||||
// Create linked list of buffers
|
// Create linked list of buffers
|
||||||
bufhead.prev = &bufhead;
|
bufhead.prev = &bufhead;
|
||||||
bufhead.next = &bufhead;
|
bufhead.next = &bufhead;
|
||||||
|
|
3
pipe.c
3
pipe.c
|
@ -43,6 +43,7 @@ pipealloc(struct file **f0, struct file **f1)
|
||||||
(*f1)->pipe = p;
|
(*f1)->pipe = p;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
//PAGEBREAK: 20
|
||||||
bad:
|
bad:
|
||||||
if(p)
|
if(p)
|
||||||
kfree((char*)p, PAGE);
|
kfree((char*)p, PAGE);
|
||||||
|
@ -74,7 +75,7 @@ pipeclose(struct pipe *p, int writable)
|
||||||
kfree((char*)p, PAGE);
|
kfree((char*)p, PAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
//PAGEBREAK: 20
|
//PAGEBREAK: 30
|
||||||
int
|
int
|
||||||
pipewrite(struct pipe *p, char *addr, int n)
|
pipewrite(struct pipe *p, char *addr, int n)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue