History log of /xv6-public/pipe.c (Results 1 – 25 of 36)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: xv6-rev11
# abf847a0 31-Jan-2017 Frans Kaashoek <kaashoek@mit.edu>

Start of an experiment to remove the use of gs for cpu local variables.


# dec637bc 12-Sep-2016 Frans Kaashoek <kaashoek@mit.edu>

Replace I_BUSY with sleep locks


Revision tags: xv6-rev9, xv6-rev8, xv6-rev7, osdi12-submit, xv6-rev6
# 1ddfbbb1 29-Aug-2011 Frans Kaashoek <kaashoek@26-4-190.dynamic.csail.mit.edu>

Revert "Introduce and use sleeplocks instead of BUSY flags"
My changes have a race with re-used bufs and the code doesn't seem to get shorter
Keep the changes that fixed ip->off race

This reverts co

Revert "Introduce and use sleeplocks instead of BUSY flags"
My changes have a race with re-used bufs and the code doesn't seem to get shorter
Keep the changes that fixed ip->off race

This reverts commit 3a5fa7ed9020eaf8ab843a16d26db7393b2ec072.

Conflicts:

defs.h
file.c
file.h

show more ...


# 3a5fa7ed 26-Aug-2011 Frans Kaashoek <kaashoek@Frans-Kaashoeks-MacBook-Pro.local>

Introduce and use sleeplocks instead of BUSY flags
Remove I_BUSY, B_BUSY, and intrans defs and usages
One spinlock per buf to avoid ugly loop in bget
fix race in filewrite (don't update f->off after

Introduce and use sleeplocks instead of BUSY flags
Remove I_BUSY, B_BUSY, and intrans defs and usages
One spinlock per buf to avoid ugly loop in bget
fix race in filewrite (don't update f->off after releasing lock)

show more ...


Revision tags: xv6-rev5
# 1a81e38b 11-Jan-2011 Russ Cox <rsc@swtch.com>

make new code like old code

Variable declarations at top of function,
separate from initialization.

Use == 0 instead of ! for checking pointers.

Consistent spacing around {, *, casts.

Declare 0-p

make new code like old code

Variable declarations at top of function,
separate from initialization.

Use == 0 instead of ! for checking pointers.

Consistent spacing around {, *, casts.

Declare 0-parameter functions as (void) not ().

Integer valued functions return -1 on failure, 0 on success.

show more ...


Revision tags: xv6-2010, xv6-rev4
# 7d7dc933 31-Aug-2010 Robert Morris <rtm@nephron.lcs.mit.edu>

kalloc/kfree now only a page at a time
do not keep sorted contiguous free list


Revision tags: xv6-rev3
# 48755214 31-Aug-2009 Russ Cox <rsc@swtch.com>

assorted fixes:
* rename c/cp to cpu/proc
* rename cpu.context to cpu.scheduler
* fix some comments
* formatting for printout


# 0aef8914 08-Aug-2009 Russ Cox <rsc@swtch.com>

shuffle and tweak for formatting.
pdf has very good page breaks now.
would be a good copy for fall 2009.


# 00e57115 13-Jul-2009 Russ Cox <rsc@swtch.com>

more doc tweaks


# f3685aa3 31-May-2009 rsc <rsc>

simplify


# e670a483 15-Oct-2008 kolya <kolya>

as rtm noticed, avoid doubly-freeing pipe page


Revision tags: xv6-2008
# 02cc595f 22-Aug-2008 kolya <kolya>

clean up circular buffers, so pipe can queue 512 bytes rather than 511


Revision tags: xv6-2007, xv6-rev1
# 5516be1f 28-Aug-2007 rsc <rsc>

spaces around else for rtm


# e4d6a211 28-Aug-2007 rsc <rsc>

more consistent spacing


# 6eed1ee9 28-Aug-2007 rsc <rsc>

formatting


# 7834cca6 28-Aug-2007 rsc <rsc>

remove _ from pipe; be like file


# 558ab49f 27-Aug-2007 rsc <rsc>

delete unnecessary #include lines


# 3ce16470 27-Aug-2007 rsc <rsc>

nits


# ea6e3709 14-Aug-2007 rsc <rsc>

i cannot prove that release before wakeup is wrong, but i cannot convince myself it is right either


# f1f8dd91 14-Aug-2007 rsc <rsc>

formatting


# b6095304 10-Aug-2007 rsc <rsc>

Make cp a magic symbol.


# 3bbbaca1 10-Aug-2007 rsc <rsc>

move variable declaration up


# 22330658 09-Aug-2007 rsc <rsc>

spacing


# f2f062da 08-Aug-2007 rsc <rsc>

check p->killed for long-lived sleeps


Revision tags: symlinks, xv6-2006, xv6-rev0
# 2cbb4b18 08-Sep-2006 rsc <rsc>

stop using fd to name files


12