spi_bpw_to_bytes(9)
π¦ spi_bpw_to_bytes(9) π¦ β Kernel API Manual
okay so bestie, this is a Kernel API Manual page and it's literally about turning bits-per-word into bytes. tiny function, big main-character energy β¨
π NAME π
spi_bpw_to_bytes β Covert bits per word to bytes
and yes, the original NAME line says Covert, not Convert β typo lore preserved, no cap ππ
β¨ SYNOPSIS β¨
u32 spi_bpw_to_bytes (u32 bpw );
π ARGUMENTS π
bpwβ bits per word. that's the input getting converted, bestie π«Ά
πΈ DESCRIPTION πΈ
This function converts the given bpw to bytes. the result is always power-of-two, e.g.:
5bits β1byte9bits β2bytes21bits β4bytes37bits β8bytes
and it will return 0 for the 0 input. periodt π
β RETURN β
Bytes for the given bpw. that's the whole return vibe π¦
π₯ SEE ALSO π₯
the kernel file is right here: ./include/linux/spi/spi.h
and the whole SPI bestie squad is:
struct spi_statistics(9)struct spi_delay(9)struct spi_device(9)struct spi_driver(9)spi_unregister_driver(9)module_spi_driver(9)struct spi_controller(9)struct spi_res(9)struct spi_transfer(9)struct spi_message(9)spi_message_init_with_transfers(9)spi_is_bpw_supported(9)spi_controller_xfer_timeout(9)struct spi_replaced_transfers(9)spi_sync_transfer(9)spi_write(9)spi_read(9)spi_w8r8(9)spi_w8r16(9)spi_w8r16be(9)struct spi_board_info(9)
mwah π source/version vibes: ./include/linux/spi, dated October 2026. slay and goodbye πβ¨
π¦ 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