DragonFly BSD

CVS log for src/sys/kern/kern_mpipe.c

[BACK] Up to [DragonFly] / src / sys / kern

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Sep 5 00:55:45 2006 UTC (8 years ago) by dillon
Branches: MAIN
CVS tags: HEAD, DragonFly_RELEASE_2_0_Slip, DragonFly_RELEASE_2_0, DragonFly_RELEASE_1_8_Slip, DragonFly_RELEASE_1_8, DragonFly_RELEASE_1_12_Slip, DragonFly_RELEASE_1_12, DragonFly_RELEASE_1_10_Slip, DragonFly_RELEASE_1_10, DragonFly_Preview
Diff to: previous 1.8: preferred, unified
Changes since revision 1.8: +7 -7 lines
Rename malloc->kmalloc, free->kfree, and realloc->krealloc.  Pass 1

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Jul 16 05:51:10 2004 UTC (10 years, 2 months ago) by dillon
Branches: MAIN
CVS tags: DragonFly_Stable, DragonFly_Snap29Sep2004, DragonFly_Snap13Sep2004, DragonFly_RELEASE_1_6_Slip, DragonFly_RELEASE_1_6, DragonFly_RELEASE_1_4_Slip, DragonFly_RELEASE_1_4, DragonFly_RELEASE_1_2_Slip, DragonFly_RELEASE_1_2
Diff to: previous 1.7: preferred, unified
Changes since revision 1.7: +25 -17 lines
Update all my personal copyrights to the Dragonfly Standard Copyright.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Jun 4 06:56:12 2004 UTC (10 years, 3 months ago) by dillon
Branches: MAIN
CVS tags: DragonFly_1_0_REL, DragonFly_1_0_RC1, DragonFly_1_0A_REL
Diff to: previous 1.6: preferred, unified
Changes since revision 1.6: +2 -0 lines
Add MPF_INT (for mpipe_init()), which allows one to specify that an MPIPE
allocation request may use the interrupt memory reserve.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Apr 20 16:58:32 2004 UTC (10 years, 4 months ago) by dillon
Branches: MAIN
Diff to: previous 1.5: preferred, unified
Changes since revision 1.5: +12 -3 lines
When an mpipe was being destroyed, each element in the array was being
freed, but the array itself was not.  Free the array as well.

Also do some minor tidying up of mpipe_done().

Reported-by: Craig Dooley <craig@xlnx-x.net>

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Mar 29 16:22:21 2004 UTC (10 years, 5 months ago) by dillon
Branches: MAIN
Diff to: previous 1.4: preferred, unified
Changes since revision 1.4: +137 -75 lines
Bring in a bunch of well tested MPIPE changes.  Preallocate a minimum
number of mpipe elements when it is initialized.  Use an array to cache
free MPIPE buffers nad remove the data structure overloading that was
previously occuring on the buffer itself.  Add a deconstructor.  Separate
the blocking and non-blocking allocation APIs into their own functions.

The new code still needs Giant, but it's getting a lot closer to being
lock free.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Mar 29 14:16:32 2004 UTC (10 years, 5 months ago) by joerg
Branches: MAIN
Diff to: previous 1.3: preferred, unified
Changes since revision 1.3: +71 -226 lines
Revert last commit. This should not have happened.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Mar 29 14:06:31 2004 UTC (10 years, 5 months ago) by joerg
Branches: MAIN
Diff to: previous 1.2: preferred, unified
Changes since revision 1.2: +228 -73 lines
kern_sysctl.c

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jan 20 05:04:06 2004 UTC (10 years, 8 months ago) by dillon
Branches: MAIN
Diff to: previous 1.1: preferred, unified
Changes since revision 1.1: +3 -3 lines
Retool the M_* flags to malloc() and the VM_ALLOC_* flags to
vm_page_alloc(), and vm_page_grab() and friends.

The M_* flags now have more flexibility, with the intent that we will start
using some of it to deal with NULL pointer return problems in the codebase
(CAM is especially bad at dealing with unexpected return values).  In
particular, add M_USE_INTERRUPT_RESERVE and M_FAILSAFE, and redefine
M_NOWAIT as a combination of M_ flags instead of its own flag.

The VM_ALLOC_* macros are now flags (0x01, 0x01, 0x04) rather then states
(1, 2, 3), which allows us to create combinations that the old interface
could not handle.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Nov 30 20:13:54 2003 UTC (10 years, 9 months ago) by dillon
Branches: MAIN
Add the MPIPE subsystem.  This subsystem is used for 'pipelining' fixed-size
allocations.  Pipelining is used to avoid lack-of-resource deadlocks by
still allowing resource allocations to 'block' by guarenteeing that an
already in-progress operation will soon free memory that will be immediately
used to satisfy the blocked resource.

Adjust the ATAold code to use the new mechanism and remove the code that
tried to back-off into PIO mode when resources were lacking.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options