pcmcia_get_tuple(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

pcmcia_get_tuple β€” get first tuple from CIS, and yes bestie, literally the first one ✨

🌸 SYNOPSIS 🌸

size_t pcmcia_get_tuple (struct pcmcia_device *p_dev , cisdata_t code ,
unsigned char **buf );

πŸŽ€ ARGUMENTS πŸŽ€

  • p_dev β€” the struct pcmcia_device which we need to loop for. like, that's the device we're digging through 🫢
  • code β€” which CIS code shall we look for? bestie, this is the quest code πŸ”₯
  • buf β€” pointer to store the buffer to. drop the buffer right here πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so pcmcia_get_tuple gets the content of the first CIS entry of type code. It returns the buffer length (or zero). The caller is responsible to free the buffer passed in buf.

that's the whole vibe: grab the first matching CIS entry, hand back the buffer length β€” or zero β€” and then you gotta free the buffer in buf, no cap 😭

πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ this page is from source/version ./drivers/pcmcia, dated October 2026. periodt. πŸŽ€

πŸ“¦ where this page comes from