mas_store_gfp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mas_store_gfp(9) β€” like, the whole manual page, bestie πŸ’–

okay so this is a page from the Kernel API Manual, and it's about mas_store_gfp(9) β€” yes the title is the same as the function name, iconic, we love a self-titled moment πŸ‘‘


🌸 NAME 🌸

mas_store_gfp β€” Store a value into the tree.

that's it. that's the whole name section. short and slay ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int mas_store_gfp (struct ma_state *mas , void *entry , gfp_t gfp );

so you call it, you give it three things, and it hands you back an int. that's the vibe check right there 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • mas β€” The maple state πŸ’œ like, this is the state of your maple tree, your main character data structure, the thing you're operating on.
  • entry β€” The entry to store πŸ’… this is the value actually going into the tree, bestie. the payload. the moment.
  • gfp β€” The GFP_FLAGS to use for allocations if necessary πŸ”₯ so if the store needs to allocate memory, these are the flags it gets to use. "if necessary" is doing a lot of work there, ngl.

⭐ RETURN ⭐

  • 0 β€” on success 😌 slay, it worked
  • -EINVAL β€” on invalid request πŸ’€ the request was not it, invalid, rejected, denied
  • -ENOMEM β€” if memory could not be allocated 😭 like the memory just wasn't there, no cap, it tried and it couldn't

πŸ“ SEE ALSO πŸ“

Kernel file ./lib/maple_tree.c

and now the full friend group, everyone in the mapley tree cinematic universe πŸ’–:


✨ and that's the whole page, literally every single one of them, no skips, no summarising, periodt ✨

this cutie lives under ./lib, the date on it is October 2026, and the page itself is mas_store_gfp(9) β€” mwah, go store something in a tree bestie πŸ’…πŸ’–πŸŒ·

πŸ“¦ where this page comes from