]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clean up uma_int.h a bit.
authormarkj <markj@FreeBSD.org>
Sat, 7 Mar 2020 15:37:23 +0000 (15:37 +0000)
committermarkj <markj@FreeBSD.org>
Sat, 7 Mar 2020 15:37:23 +0000 (15:37 +0000)
commitbdd145bf24643c8d686ca6d55f11e195b2cb496a
tree5fac3f7eceefa6d39565846d1e9c2ce5e51613e6
parent9b9f9167f52b0a4d8955354a94f1fb33ae519157
Clean up uma_int.h a bit.

This makes it easier to write libkvm programs that access UMA data
structures.

- Remove a couple of unused slab functions and make others local to
  uma_core.c.  Similarly move SLAB_BITSETS, which affects the layout of
  slab structures, to uma_core.c.
- Stop defining the slab structures under _KERNEL.  There's no real
  reason they can't be visible to userspace like the rest of UMA's
  structures are.
- Group KEG_ASSERT_COLD with other keg macros.
- Convert an assertion about MAXMEMDOM to use _Static_assert.

No functional change intended.

Discussed with: jeff
Reviewed by: rlibby
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23980
sys/vm/uma_core.c
sys/vm/uma_int.h