STRUCT NVRAM_PARSER(9)
β¨ NAME β¨
struct nvram_parser β internal info for parser. that's it, that's the whole vibe π
it's from the Kernel API Manual, section 9, bestie, so you know it's the real deal π
πΈ SYNOPSIS πΈ
struct nvram_parser {
enum nvram_parser_state state;
const u8 *data;
u8 *nvram;
u32 nvram_len;
u32 line;
u32 column;
u32 pos;
u32 entry;
bool multi_dev_v1;
bool multi_dev_v2;
bool boardrev_found;
bool strip_mac;
};
okay so it's literally just a struct holding all the parser's little thoughts and feelings π«Ά she's an open book, no cap
π Members π
stateβ the parser's current mood, aka current parser state π« like a vibe check but for parsingdataβ the input buffer being parsed. this is the raw material, the main character energy of the whole operation π₯nvramβ the output buffer with the parse result. the glow-up destination β¨nvram_lenβ length of the parse result. how much slay we ended up with πlineβ current line. yes bestie we're counting, we're keeping track πcolumnβ current column in line. precise girlie behaviour, we love to see it πposβ byte offset in input buffer. literally where we're at, spiritually and byte-ally πentryβ start position ofkey,valueentry. the origin story of one single pair π₯Ίmulti_dev_v1β detect pcie multi device v1 (compressed). yes, compressed, she's compact and iconic ποΈmulti_dev_v2β detect pcie multi device v2. the sequel, the second album, no compression this time around πboardrev_foundβ nvram contains boardrev information. we found it!! we love a discovery moment ππstrip_macβ strip the MAC address. bye bye MAC, don't let the door hit you π«‘
π¦ SEE ALSO π¦
- Kernel file
./drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.cβ go read the source, iykyk ππ
and that's the whole page, bestie β brought to you by the Kernel API Manual, source ./drivers/net/wireless/broadco... (yes she truncates, she's mysterious like that π), dated October 2026. periodt. π
π¦ 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