order_base_2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is the order_base_2 page from the Kernel API Manual, and the whole vibe is: calculate the (rounded up) base 2 order of the argument. no cap. 🫢


✨ SYNOPSIS ✨

order_base_2 (n );

πŸŽ€ ARGUMENTS πŸŽ€

  • n β€” parameter. that's literally the whole argument description. iconic minimalism. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

the first few values calculated by this routine are, fr fr:

ob2(0) = 0 ob2(1) = 0 ob2(2) = 1 ob2(3) = 2 ob2(4) = 2 ob2(5) = 3 ... and so on.

so yeah β€” ob2(0) is 0, ob2(1) is 0, ob2(2) is 1, ob2(3) is 2, ob2(4) is 2, ob2(5) is 3, and it just keeps rolling from there. periodt. 🌈


πŸ”₯ SEE ALSO πŸ”₯

okay bestie, these are the related pages and the kernel file β€” go peek, iykyk:


mwah πŸ’– this lil page lives in ./include/linux, is dated October 2026, and it's the order_base_2(9) manual page β€” that's the whole footer, periodt. πŸŽ€πŸ‘‘

πŸ“¦ where this page comes from