lpm_adjust(9)
π 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
lpmandmaskhave at least one bit in common π«Ά, orlpmis 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 π₯
- Kernel file
./drivers/s390/cio/ccwreq.c ccw_request_start(9)ccw_request_cancel(9)ccw_request_handler(9)ccw_request_timeout(9)ccw_request_notoper(9)
like yeah, go read those next, they're the rest of the friend group π§π
π reminder: this shiftslpmright until it shares a bit withmaskor hits zero, and returns the resultinglpm. 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms