pci_vpd_find_id_string(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pci_vpd_find_id_string(9) β€” Kernel API Manual πŸŽ€

okay bestie, welcome to the pci_vpd_find_id_string(9) page β€” this is a Kernel API Manual situation, so grab your emotional support iced coffee and let's get into it ✨


🌸 NAME 🌸

pci_vpd_find_id_string β€” literally just, locate the id string in VPD. that's the whole vibe πŸ¦‹


✨ SYNOPSIS ✨

int pci_vpd_find_id_string (const u8 *buf , unsigned int len , unsigned
int *size );

like yes, that's the signature, copy it exactly bestie, don't freestyle πŸ’…


🧚 ARGUMENTS 🧚

  • buf β€” pointer to buffered VPD data. it's giving "here's the data, go look at it" 🫢
  • len β€” the length of the buffer area in which to search. basically how far you're allowed to snoop πŸ‘€
  • size β€” pointer to the field where the length of the id string gets returned. it's the lil out-param that comes back holding the answer πŸ’–

πŸ‘‘ DESCRIPTION πŸ‘‘

Returns the index of the id string, or -ENOENT if not found. that's it. that's the function. short queen energy, no notes πŸ”₯

(note: it returns an index β€” so on success you get a position, and on the sad path you get -ENOENT. don't get it twisted 😭)


🌈 SEE ALSO 🌈

the whole friend group, fr fr β€” Kernel file ./include/linux/pci.h and also:

like, all thirty-two of them. we did not skip a single one, iykyk πŸ’€πŸ«Ά


real talk: this page lives under ./include/linux, and it's dated October 2026, filed as pci_vpd_find_id_string(9). ok bye, slay, go read your VPD πŸ’œπŸŽ€πŸ¦‹
πŸ“¦ where this page comes from