STRUCT NVRAM_PARSER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 parsing
  • data β€” 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 of key,value entry. 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