spi_mem_get_drvdata(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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