Home | History | Annotate | Download | only in man9
History log of /src/share/man/man9/vmem.9
RevisionDateAuthorComments
 1.22  02-Dec-2023  thorpej Add a vmem_xalloc_addr() function, which allocates a specific address
from an arena. This is just a convenience wrapper around vmem_xalloc(),
that's just a bit more obvious how to use and performs some additional
sanity checks.
 1.21  15-Oct-2022  riastradh vmem(9): Clarify possible failure modes.

Note that vmem_alloc and vmem_xalloc have failure modes -- failing
with ENOMEM despite VM_SLEEP, or importing or sleeping forever --
that appear to be bugs when align/phase/nocross/minaddr/maxaddr are
specified.
 1.20  16-Jun-2020  thorpej Add vmem_xfreeall(), which frees all allocated regions in the specified arena.
All outstanding allocations MUST have been performed with vmem_xalloc() or
else the behavior is undefined. (This also implies that the arena must also
not have a quantum cache; note this in the documentation.)
 1.19  06-Nov-2019  wiz Remove superfluous Pp.
 1.18  05-Nov-2019  dyoung Fix typo: vmem_add(9) does not actually take an `addrp` argument.
 1.17  03-Jul-2017  wiz branches: 1.17.6;
Remove workaround for ancient HTML generation code.
 1.16  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.15  29-Jan-2013  wiz branches: 1.15.8;
Bump date for previous.
 1.14  29-Jan-2013  para bring man page up to date for vmem_xcreate and
the changed function signature of vmem_create
 1.13  05-Sep-2011  wiz branches: 1.13.2; 1.13.8;
Remove trailing whitespace.
 1.12  02-Sep-2011  dyoung Update vmem(9). Changes to the implementation and usage are following,
soon.
 1.11  23-Aug-2011  wiz Bump date for previous.
 1.10  23-Aug-2011  dyoung Introduce a couple of new constants, VMEM_ADDR_MIN (the least possible
address in a vmem(9) arena, 0) and VMEM_ADDR_MAX (the maximum possible
address, currently 0xFFFFFFFF). Modify several boundary conditions so
that a vmem(9) arena can allocate ranges including VMEM_ADDR_MAX.
Update documentation and tests.

These changes pass the tests in sys/kern/subr_vmem.c. To compile the
and run the test program, run "cd sys/kern/ && gcc -DVMEM_SANITY -o
subr_vmem ./subr_vmem.c && ./subr_vmem".
 1.9  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.
 1.8  22-Dec-2009  wiz Remove trailing whitespace, make HTML-ready, sort sections.
 1.7  21-Dec-2009  dyoung Describe arguments "allocfn", "freefn", and "source" of vmem_create(9)
in more detail. Describe vmem_add(9). Write a new BUGS section that
warns about aspects of vmem(9) behavior that may surprise first-time
users.
 1.6  03-Aug-2009  rmind Merge vmem_alloc(9) & friends (it's a whole company) into a single vmem(9).
 1.5  16-Feb-2007  rmind - Add link to memoryallocators(9) in kmem_*(9), vmem(9), uvm(9), malloc(9),
pool(9) and pool_cache(9) manuals.
- Sort uvm(9) "SEE ALSO" section.
 1.4  04-Nov-2006  yamt document vmem_xalloc/xfree.
 1.3  26-Oct-2006  wiz Various minor improvements.
 1.2  23-Oct-2006  peter Fix a typo.
 1.1  22-Oct-2006  yamt document vmem.
 1.13.8.1  25-Feb-2013  tls resync with head
 1.13.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.15.8.1  03-Dec-2017  snj Pull up following revision(s) (requested by mlelstv in ticket #1521):
share/man/man9/kmem.9: revision 1.20 via patch
share/man/man9/vmem.9: revision 1.16
sys/kern/subr_kmem.c: revision 1.62
sys/kern/subr_vmem.c: revision 1.94
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.17.6.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed