HomeFreeBSD

Abstract UIO allocation and deallocation.

Description

Abstract UIO allocation and deallocation.

Introduce the allocuio() and freeuio() functions to allocate and
deallocate struct uio. This hides the actual allocator interface, so it
is easier to modify the sub-allocation layout of struct uio and the
corresponding iovec array.

Obtained from: CheriBSD
Reviewed by: kib, markj
MFC after: 2 weeks
Sponsored by: CHaOS, EPSRC grant EP/V000292/1
Differential Revision: https://reviews.freebsd.org/D43711

(cherry picked from commit 61cc4830a7b16400efade3d884a59fda6d80d651)

Details

Provenance
alfredo.mazzinghi_cl.cam.ac.ukAuthored on Jan 18 2024, 1:04 PM
markjCommitted on Mar 9 2024, 4:27 AM
Reviewer
kib
Differential Revision
D43711: Abstract UIO allocation and deallocation.
Parents
rGc3751f89da78: Fix subr_uio.c style(9) with uses of sizeof.
Branches
Unknown
Tags
Unknown