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)
Wed, Dec 25, 8:43 AM
Unknown Object (File)
Nov 30 2024, 4:27 AM
Unknown Object (File)
Nov 25 2024, 3:12 AM
Unknown Object (File)
Nov 23 2024, 7:27 PM
Unknown Object (File)
Nov 20 2024, 11:55 AM
Unknown Object (File)
Nov 19 2024, 10:10 AM
Unknown Object (File)
Nov 16 2024, 6:07 AM
Unknown Object (File)
Nov 7 2024, 2:01 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.