mpol_parse_str(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mpol_parse_str(9) β€” the Kernel API Manual era πŸŽ€

okay so bestie, this one is from the Kernel API Manual and it's genuinely so cute β€” it's the function that takes a string and turns it into a mempolicy, for the tmpfs mpol mount option. iykyk πŸ¦‹


✨ NAME ✨

mpol_parse_str β€” parse string to mempolicy, for tmpfs mpol mount option. literally what it says on the tin, no cap πŸ’–


🌸 SYNOPSIS 🌸

int mpol_parse_str (char *str , struct mempolicy **mpol );

πŸŽ€ ARGUMENTS πŸŽ€

  • str β€” string containing mempolicy to parse. it's giving "the raw text bestie, hand it over" 🫢
  • mpol β€” pointer to struct mempolicy pointer, returned on success. so it's a pointer to a pointer, yes, double pointer main character energy, and the real result gets dropped in here when it all works out πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

Format of input: <mode>[=<flags>][:<nodelist>]

that's it, that's the whole shape of it ✨ mode first, then optionally flags after an =, then optionally a nodelist after a :. iconic format fr fr πŸ’…


⭐ RETURN ⭐

0 on success, else 1 😭 so like, zero is the good one here β€” classic kernel behaviour, don't let the 0 trip you up bestie πŸ’€


🌈 SEE ALSO 🌈

like a whole little friend group of mempolicy functions, obsessed actually πŸ§šπŸ’–


bestie note: any changes in behaviour or details live in ./mm β€” go read the source if you need the deep lore, i'm just the messenger πŸ“

kisses and good luck parsing, babes πŸ’…πŸŒΈ β€” this page came to you from ./mm, October 2026 edition, mwah 😘✨

πŸ“¦ where this page comes from