lpm_adjust(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lpm_adjust β€” adjust path mask πŸ’…

okay so real talk, this one's from the Kernel API Manual, section 9 (lpm_adjust(9)), and it's honestly such a tiny little icon. one function, two args, zero drama. let's get into it ✨


🌸 SYNOPSIS 🌸

int lpm_adjust (int lpm , int mask );

that's it. that's the whole signature. she's short, she's sweet, she's giving minimalism πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • lpm β€” the path mask you're adjusting, bestie. this is the one getting shifted πŸ‘‘
  • mask β€” the mask of available paths. this is the one we're trying to match up with πŸ¦‹

✨ DESCRIPTION ✨

okay so here's the vibe: you take lpm and you shift it right, over and over, until either

  • lpm and mask have at least one bit in common 🫢, or
  • lpm is zero πŸ’€

that's the whole stopping condition. no cap. then it returns the resulting lpm β€” the shifted version, not the original one. so like, lowkey the return value is the main character here 🌟

it's giving "keep scooting over until you find a friend or you're literally empty." genuinely obsessed with how simple that is 😭


πŸ”₯ SEE ALSO πŸ”₯

like yeah, go read those next, they're the rest of the friend group πŸ§šπŸ’œ


πŸ’€ reminder: this shifts lpm right until it shares a bit with mask or hits zero, and returns the resulting lpm. that's the whole entire behaviour. nothing more, nothing less, don't @ me πŸ™ˆ

mwah πŸ’‹ this page lives in ./drivers/s390/cio, it's dated October 2026, and it's filed as lpm_adjust(9) β€” section 9, kernel API, exactly where she belongs. πŸŒˆπŸŽ€

πŸ“¦ where this page comes from