HomeFreeBSD

MFC r364964: LinuxKPI: Implement ksize() function.

Description

MFC r364964: LinuxKPI: Implement ksize() function.

In Linux, ksize() gets the actual amount of memory allocated for a given
object. This commit adds malloc_usable_size() to FreeBSD KPI which does
the same. It also maps LinuxKPI ksize() to newly created function.

ksize() function is used by drm-kmod.

Reviewed by: hselasky, kib
Differential Revision: https://reviews.freebsd.org/D26215

Details

Provenance
wulfAuthored on
Reviewer
hselasky
Differential Revision
D26215: LinuxKPI: Add ksize() implementation
Parents
rS365382: Remove duplicated line.
Branches
Unknown
Tags
Unknown