Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   thorpej
Date:           Sun Jan 24 17:29:11 UTC 2021

Modified Files:
        src/distrib/sets/lists/comp: mi
        src/share/man/man9: Makefile kmem.9
        src/sys/kern: subr_kmem.c
        src/sys/sys: kmem.h

Log Message:
Add kmem_tmpbuf_alloc(), a utility function for allocating memory for
temporary use where allocation on the stack is desirable, but only up to
a certain size.  If the requested size fits within the specified stack
buffer, the stack buffer is returned.  Otherwise, memory is allocated with
kmem_alloc().  Add a corresponding kmem_tmpbuf_free() function that frees
the memory using kmem_free() if it is not the tempory stack buffer location.


To generate a diff of this commit:
cvs rdiff -u -r1.2372 -r1.2373 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.454 -r1.455 src/share/man/man9/Makefile
cvs rdiff -u -r1.26 -r1.27 src/share/man/man9/kmem.9
cvs rdiff -u -r1.80 -r1.81 src/sys/kern/subr_kmem.c
cvs rdiff -u -r1.11 -r1.12 src/sys/sys/kmem.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index