rave_sp_eeprom_access(9)
β¨ 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
- 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