pccard_loop_tuple(9)
π NAME π
pccard_loop_tuple β loop over tuples in the CIS. This one's from the Kernel API Manual (and yes, bestie, this is pccard_loop_tuple(9) π
), and it's literally the helper that walks the CIS like it's strutting down a runway β¨π¦.
πΈ SYNOPSIS πΈ
int pccard_loop_tuple (struct pcmcia_socket *s , unsigned int function ,
cisdata_t code , cisparse_t *parse , void *priv_data , int (*loop_tuple)
(tuple_t *tuple, cisparse_t *parse, void *priv_data) );
π ARGUMENTS π
sβ thestruct pcmcia_socketwhere the card is inserted π³ (yes, the socket, keep up π)functionβ the device function we loop for πcodeβ which CIS code shall we look for? πparseβ buffer where the tuple shall be parsed (orNULL, if no parse) π«§priv_dataβ private data to be passed to theloop_tuplefunction πloop_tupleβ function to call for each CIS entry of type function. IT gets passed the raw tuple, the paresed tuple (ifparseis set β yes bestie, that's the source's spelling π) andpriv_dataβ¨
π₯ DESCRIPTION π₯
Okay so bestie, pccard_loop_tuple loops over all CIS entries of type function, and calls the loop_tuple function for each entry. If the call to loop_tuple returns 0, the loop exits β periodt π
. Returns 0 on success or errorcode otherwise.
The callback returning0is the stop signal π β that's the whole vibe check. The function itself returns0on success orerrorcodeotherwise, no cap.
π¦ SEE ALSO π¦
- Kernel file
./drivers/pcmcia/pcmcia_cis.c pccard_read_tuple(9)pcmcia_loop_config(9)pcmcia_loop_tuple(9)pcmcia_get_tuple(9)pcmcia_get_mac_from_cis(9)
Signed with love from the ./drivers/pcmcia source π β Kernel API Manual, October 2026, pccard_loop_tuple(9) π«Άβ¨
π¦ 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