Skip to content

Add buddy_alloc_size function. #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025
Merged

Conversation

aganm
Copy link
Contributor

@aganm aganm commented Jul 16, 2025

Adds buddy_alloc_size function in accordance with #143.

I wasn't sure where to put the function in the file, so I put it under the function buddy_safe_free, alongside the other allocation related functions. Is this an appropriate place for this function?

Also, is the error handling correct? I saw an other function calls buddy_tree_valid to validate a position, is there anything I missed when it comes to the error handling?

@spaskalev spaskalev merged commit 59e0620 into spaskalev:main Jul 16, 2025
6 checks passed
@spaskalev
Copy link
Owner

Excellent, thank you for the contribution :)

@aganm aganm deleted the alloc_size branch July 16, 2025 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants