pcmcia_loop_tuple(9)
π pcmcia_loop_tuple(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one is all about looping over tuples in the CIS, and it is lowkey iconic π
πΈ NAME πΈ
pcmcia_loop_tuple β loop over tuples in the CIS π
β¨ SYNOPSIS β¨
int pcmcia_loop_tuple (struct pcmcia_device *p_dev , cisdata_t code ,
int (*loop_tuple) (struct pcmcia_device *p_dev, tuple_t *tuple, void
*priv_data) , void *priv_data );
π ARGUMENTS π
p_devβ thestruct pcmcia_devicewhich we need to loop for. like, this is the device we're digging through, no cap π«Άcodeβ which CIS code shall we look for? bestie, you gotta pick one πloop_tupleβ function to call for each CIS entry of type function. IT gets passed the raw tuple andpriv_data. yes queen, every single entry gets the callback treatment πpriv_dataβ private data to be passed to theloop_tuplefunction. your lil backpack of extra info π
π¦ DESCRIPTION π¦
pcmcia_loop_tuple loops over all CIS entries of type function, and calls the loop_tuple function for each entry. so it's literally going one by one and handing each entry to your callback β¨
if the call to loop_tuple returns 0, the loop exits. that's the stop signal, bestie π
returns 0 on success or errorcode otherwise. so 0 is the slay outcome, and anything else is giving error π
π SEE ALSO π
- Kernel file
./drivers/pcmcia/pcmcia_cis.c pccard_read_tuple(9)pccard_loop_tuple(9)pcmcia_loop_config(9)pcmcia_get_tuple(9)pcmcia_get_mac_from_cis(9)
mwah π this cutie lives in ./drivers/pcmcia, dated October 2026, and it's literally pcmcia_loop_tuple(9) β 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