Page MenuHomeFreeBSD

Move malloc_large_slab and malloc_large_size to malloc.h
Needs ReviewPublic

Authored by kvinupriya_gmail.com on May 21 2024, 4:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 3, 7:36 PM
Unknown Object (File)
Thu, Oct 3, 6:53 AM
Unknown Object (File)
Sun, Sep 29, 2:56 PM
Unknown Object (File)
Fri, Sep 27, 11:19 PM
Unknown Object (File)
Thu, Sep 26, 9:17 PM
Unknown Object (File)
Thu, Sep 26, 12:31 PM
Unknown Object (File)
Tue, Sep 24, 8:36 AM
Unknown Object (File)
Fri, Sep 20, 9:11 PM
Subscribers

Details

Reviewers
markj
khng
Summary

These functions are useful for code that wants to get sizes for a
malloc type.

Sponsored by: Juniper Networks, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57810
Build 54698: arc lint + arc unit

Event Timeline

Or you probably want to expose a proper API rather?

These functions are useful for code that wants to get sizes for a malloc type.

This is perhaps addressed by commit 1c30cf95098e999ee24b2396763b4f65d021cdf0?

Or that can be addressed by malloc_usable_size() ?

Or that can be addressed by malloc_usable_size() ?

Potentially yes, depending on the details of what you are doing.

In any case, this patch is probably not the right way to go. If there is some missing malloc(9) interface, we should add it rather than exposing implementation details.