History log of /src/share/man/man9/kmem.9
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base netbsd-10-1-RELEASE perseant-exfatfs-base-20240630 perseant-exfatfs-base netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.28 06-Mar-2021 rin

Fix trivial typo. No need to bump date.


# 1.27 24-Jan-2021 thorpej

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.


# 1.26 19-Jun-2020 wiz

Remove trailing whitespace.


# 1.25 18-Jun-2020 kamil

Document kmem_strdup() and kmem_strndup()

Added in 2018 by christos@ in sys/sys/kmem.h r. 1.11.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 phil-wifi-20191119
# 1.24 15-Aug-2019 maxv

Unlink KMEM_GUARD leftovers.


Revision tags: netbsd-9-4-RELEASE netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.23 07-Nov-2017 christos

branches: 1.23.4;
document kmem_strdupsize/kmem_strdupfree


# 1.22 26-Aug-2017 joerg

Drop stray .El.


Revision tags: perseant-stdc-iso10646-base
# 1.21 03-Jul-2017 wiz

Remove workaround for ancient HTML generation code.


Revision tags: netbsd-8-3-RELEASE netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.20 29-Feb-2016 chs

fix vmem_alloc() to never return an error for VM_SLEEP requests,
thus fixing kmem_alloc() to never return NULL for KM_SLEEP requests.
instead these operations will retry forever, which was the intent.


# 1.19 11-Dec-2015 wiz

Whitespace nit.


# 1.18 11-Dec-2015 christos

Spell out that KM_SLEEP allocations can fail.


# 1.17 28-Jul-2015 wiz

Use more Dv.


# 1.16 28-Jul-2015 wiz

New sentence, new line.


# 1.15 28-Jul-2015 maxv

Document KMEM_SIZE, KMEM_REDZONE and KMEM_GUARD.


Revision tags: netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 tls-maxphys-base
# 1.14 26-Nov-2013 rmind

branches: 1.14.4;
Mention kmem_intr(9) routines.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE yamt-pagecache-tag8 netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 14-Jun-2011 rmind

branches: 1.13.2; 1.13.8;
Xr uvm_km(9)


Revision tags: cherry-xenmp-base uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base
# 1.12 08-Jan-2011 jym

branches: 1.12.4;
CONSIDERATION => CONSIDERATIONS, to be on par with the rest of man pages.


Revision tags: matt-mips64-premerge-20101231
# 1.11 02-Dec-2010 wiz

Remove boilerplate in CODE REFERENCES on file paths.
Describe in intro(9) how to read paths in the CODE REFERENCES section.


Revision tags: uebayasi-xip-base6 uebayasi-xip-base5 uebayasi-xip-base4 uebayasi-xip-base3 uebayasi-xip-base2
# 1.10 16-May-2010 jruoho

IMPLEMENTATION NOTES back to NOTES.


# 1.9 14-May-2010 jruoho

Use standard section headers.


Revision tags: uebayasi-xip-base1
# 1.8 23-Apr-2010 rmind

branches: 1.8.2;
Mention that kmem_free(9) may block, just in a case it is not clear.


# 1.7 13-Feb-2010 wiz

Bump date for new kmem_asprintf.


# 1.6 12-Feb-2010 dyoung

Start a new paragraph before describing kmem_asprintf().


# 1.5 11-Feb-2010 haad

Add kmem_asprintf rotuine which allocates string accordingly to format
string from kmem pool. Allocated string is string length + 1 char for ending
zero.

Ok: ad@.


# 1.4 23-Jan-2010 rmind

Cross-link a little.


Revision tags: matt-premerge-20091211
# 1.3 03-Aug-2009 wiz

Fix typo.


# 1.2 03-Aug-2009 rmind

kmem(9): add code references, improve a little.


# 1.1 03-Aug-2009 rmind

Unify kmem_alloc/zalloc/free under kmem(9). Links preserved.