Changeset View
Changeset View
Standalone View
Standalone View
share/man/man9/zone.9
Show All 19 Lines | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd August 20, 2020 | .Dd March 11, 2021 | ||||
.Dt UMA 9 | .Dt UMA 9 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm UMA | .Nm UMA | ||||
.Nd general-purpose kernel object allocator | .Nd general-purpose kernel object allocator | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/param.h | .In sys/param.h | ||||
.In sys/queue.h | .In sys/queue.h | ||||
▲ Show 20 Lines • Show All 343 Lines • ▼ Show 20 Lines | |||||
and | and | ||||
.Fn uma_zfree_arg | .Fn uma_zfree_arg | ||||
allow callers to | allow callers to | ||||
specify an argument for the | specify an argument for the | ||||
.Dv ctor | .Dv ctor | ||||
and | and | ||||
.Dv dtor | .Dv dtor | ||||
functions of the zone, respectively. | functions of the zone, respectively. | ||||
The variants | |||||
.Fn uma_zalloc_pcpu | |||||
and | |||||
.Fn uma_zfree_pcpu | |||||
allocate and free | |||||
rpokala: allocate and free | |||||
.Va mp_ncpu | |||||
shadow copies as described for | |||||
.Dv UMA_ZONE_PCPU . | |||||
If | |||||
.Fa item | |||||
is | |||||
.Dv NULL , | |||||
then | |||||
.Fn uma_zfree_pcpu | |||||
does nothing. | |||||
.Pp | |||||
The | The | ||||
.Fn uma_zalloc_domain | .Fn uma_zalloc_domain | ||||
function allows callers to specify a fixed | function allows callers to specify a fixed | ||||
.Xr numa 4 | .Xr numa 4 | ||||
domain to allocate from. | domain to allocate from. | ||||
This uses a guaranteed but slow path in the allocator which reduces | This uses a guaranteed but slow path in the allocator which reduces | ||||
concurrency. | concurrency. | ||||
.Pp | .Pp | ||||
▲ Show 20 Lines • Show All 196 Lines • Show Last 20 Lines |
allocate and free