spi_mem_get_drvdata(9)
π spi_mem_get_drvdata(9) π
okay bestie, welcome to the Kernel API Manual β¨ β this is spi_mem_get_drvdata, and honestly? it's giving "small function, big main character energy." π
πΈ NAME πΈ
spi_mem_get_drvdata β grab the driver private data that's attached to a SPI mem device π«Ά
β¨ SYNOPSIS β¨
void * spi_mem_get_drvdata (struct spi_mem *mem );
like, that's the whole thing. one function, one arg, returns a void *. slay. π
π¦ ARGUMENTS π¦
memβ the memory device π (yes queen, that's the one you're pulling the data off of)
π RETURN π
it hands you back the data that's attached to the mem device. that's it, that's the vibe. β¨ no cap.
π SEE ALSO π
all the siblings and neighbors, in the kernel file ./include/linux/spi/spi-mem.h:
enum spi_mem_data_dir(9)struct spi_mem_op(9)struct spi_mem_dirmap_info(9)struct spi_mem_dirmap_desc(9)struct spi_mem(9)spi_mem_set_drvdata(9)struct spi_controller_mem_ops(9)struct spi_controller_mem_caps(9)struct spi_mem_driver(9)
ngl, spi_mem_set_drvdata(9) is literally this function's other half β the way that they're a matched set ππ«Ά iykyk.
and that's the page, bestie π§π β brought to you by the fine folks at ./include/linux/spi, dated October 2026, and filed under spi_mem_get_drvdata(9) βπ go forth and fetch that driver data ππ₯
π¦ 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