rave_sp_eeprom_access(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ rave_sp_eeprom_access(9) ✨

okay bestie, so this one is a page from the Kernel API Manual and it's literally about poking at EEPROM data πŸ‘‘ β€” like, the function that just gets in there and reads or writes whatever you want, wherever you want. no page-alignment drama, no page-size nonsense. we love a flexible icon πŸ’…


🌸 SYNOPSIS 🌸

int rave_sp_eeprom_access (struct rave_sp_eeprom *eeprom , enum
rave_sp_eeprom_access_type type , unsigned int offset , u8 *data ,
unsigned int data_len );

like yes, that's the whole signature, write it down, memorize it, put it on a vision board πŸŽ€


πŸ’– ARGUMENTS πŸ’–

  • eeprom β€” the EEPROM device you're trying to access. your main character. the one you're talking to 🫢
  • type β€” the access type you wanna perform, i.e. read or write. pick your vibe ✨
  • offset β€” where inside the EEPROM you're poking around, offset-style πŸ’«
  • data β€” the data buffer. this is where the goods go, bestie πŸ“
  • data_len β€” size of that data buffer. how much room you've got πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically: this function performs a generic access β€” either a read or a write β€” at an arbitrary offset (and no, it does not need to be page aligned, we're not like that πŸ™ˆ) and of arbitrary length (nope, it is not constrained by the EEPROM page size either β€” she's free πŸ’…).

it returns zero in case of success, or a negative error code in case of failure 😭 so like, check the return value, obviously.

fr fr, zero = slay, negative = something went πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

  • the kernel file ./drivers/nvmem/rave-sp-eeprom.c β€” that's where the realness lives 🧚
  • enum rave_sp_eeprom_access_type(9)
  • enum rave_sp_eeprom_header_size(9)
  • struct rave_sp_eeprom_page(9)
  • struct rave_sp_eeprom(9)
  • rave_sp_eeprom_io(9)
  • rave_sp_eeprom_page_access(9)

go read those too, iykyk πŸ“šβœ¨


mwah πŸ’œ this cutie lives over in ./drivers/nvmem, dated October 2026 β€” that's the whole sign-off, no cap πŸŽ€

πŸ“¦ where this page comes from