HomeFreeBSD

LinuxKPI: Implement ksize() function.

Description

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
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D26215

Details

Provenance
wulfAuthored on Aug 29 2020, 7:26 PM
Parents
rG8ea469ebbb7e: Refine the VCSUPDATE logic further:
Branches
Unknown
Tags
Unknown

Event Timeline