REPEAT_BYTE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… REPEAT_BYTE(9) β€” like, the Kernel API Manual page, bestie πŸŽ€

okayyy so welcome to the Kernel API Manual ✨ today we're talking about REPEAT_BYTE, and honestly? she's a little icon. 🫢

🌸 NAME 🌸

REPEAT_BYTE β€” repeats the value @x multiple times as an unsigned long value. that's it. that's the whole gig. and she does it flawlessly πŸ’…

✨ SYNOPSIS ✨

REPEAT_BYTE (x );

yes the spacing is doing its own thing, don't @ me, it's literally what's written 😭

πŸ¦‹ ARGUMENTS πŸ¦‹

  • x β€” the value you want to repeat. that's the one. the main character of this whole operation πŸ‘‘

πŸ’€ NOTE πŸ’€

okay so this is the important part, bestie, listen up 🚨

x is not checked for > 0xff, and larger values produce odd results. like, nobody's running a vibe check on your input here. fr fr. so if you hand it something thicc like 0x1ff, the output gets weird and nobody's stopping you πŸ™ˆ

not me warning you that this is unchecked β€” it lowkey is, so pls be careful with your byte-sized assumptions πŸ“

🌈 SEE ALSO 🌈

y'all should also go look at these, they're all in the same friend group 🧚


and that's the whole page, no cap πŸ’–

source/version: ./tools/testing/selftests/powe... β€” October 2026 β€” mwah, thanks for reading, slay β­πŸ‘‘

πŸ“¦ where this page comes from