format_value_ccm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… format_value_ccm β€” Kernel API Manual edition, bestie πŸŽ€

okay so real talk, this is a page straight out of the Kernel API Manual, and it's about writing a number into a buffer using however many bytes you feel like. slay.


✨ NAME ✨

format_value_ccm β€” Format a value into a buffer, using a specified number of bytes (i.e. maybe writing value X into a 4 byte buffer, or maybe into a 12 byte buffer), as per the SPU CCM spec.

like, literally exactly that. no cap. 🫢


🌸 SYNOPSIS 🌸

void format_value_ccm (unsigned int val , u8 *buf , u8 len );

that's the whole vibe check right there πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • val β€” the value to write (up to max of unsigned int). so like, big energy, but not infinite energy πŸ‘‘
  • buf β€” (pointer to) buffer to write the value. this is where the magic lands ✨
  • len β€” number of bytes to use (0 to 255). yes, 0 is a legal value here, don't come for me πŸ™ˆ

🧚 SEE ALSO 🧚

Kernel file ./drivers/crypto/bcm/util.c and its little friend group, iykyk:

go read those too fr fr, they're all in the same ./drivers/crypto/bcm fam and they're iconic in their own right πŸ’€

and that's the page!! mwah πŸ’‹ β€” brought to you by the ./drivers/crypto/bcm source, dated October 2026, with so much love from your favorite kernel manual πŸ“βœ¨

πŸ“¦ where this page comes from