mas_nomem(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ mas_nomem(9) ✨

This page is from the Kernel API Manual, and the main character is mas_nomem(9). The whole assignment: spot an allocation error, and if an allocation is needed, go ahead and do it. Periodt. πŸ’…


πŸ’– NAME πŸ’–

mas_nomem β€” checks if there was an error allocating, and does the allocation if necessary. That's the whole mission, bestie. ✨

🧾 SYNOPSIS 🧾

bool mas_nomem (struct ma_state *mas , gfp_t gfp );

🌸 ARGUMENTS 🌸

  • mas β€” the maple state. This is the state object you're handing over. πŸ“
  • gfp β€” the GFP_FLAGS to use for allocations. Yep, literally the flags for allocation time. πŸ’…

πŸ‘‘ RETURN πŸ‘‘

Returns False on no memory. Returns True otherwise β€” and yes, partial success also counts as True. So if it's not the no-memory case, you're good, bestie. 😭

πŸ‘€ SEE ALSO πŸ‘€

Kernel file home base: ./lib/maple_tree.c.

The whole function squad, in order:

xoxo πŸ’– β€” sourced from ./lib, dated October 2026, filed under mas_nomem(9) πŸŽ€

πŸ“¦ where this page comes from