wait_for_init_b(9)
π wait_for_init_b(9) β like, the Kernel API Manual bestie β¨
okay so first things first, this is a kernel API manual page (section 9, iykyk) for a function called wait_for_init_b, and it's literally just here to make you wait. that's it. that's the whole vibe. π
β¨ NAME β¨
wait_for_init_b β wait for the INIT_B pin to have a given state, or wait a given delay if the pin is unavailable π¦
like yes bestie it's a waiting function, we been knew. but she's very specific about what she's waiting for.
πΈ SYNOPSIS πΈ
int wait_for_init_b (struct fpga_manager *mgr , int value , unsigned
long alt_udelay );
three args, one int coming back at you. no cap. β¨
π ARGUMENTS π
mgrβ the FPGA manager object π like, the whole reason we're here.valueβ the value ofINIT_Bto wait for (1= asserted = low) π«Ά yes,1means asserted, and asserted means low β that's not a typo, that's just how this pin rolls.alt_udelayβ the delay to wait if theINIT_BGPIO is not available π like a backup plan for when the pin ghosts you.
π₯ DESCRIPTION π₯
so here's the tea β β she returns 0 when the INIT_B GPIO actually reached the given state. slay. mission accomplished. π
but if too much time passes waiting for that state? she hits you with -ETIMEDOUT π and honestly, fair, bestie has places to be.
and if there's no INIT_B GPIO available at all? then, and this is the iconic part, she always returns 0. no waiting, no timeout, no drama. main character energy. π
ngl, remember the distinction:0on success,0also when there's noINIT_BGPIO to speak of, and-ETIMEDOUTonly when the pin exists but took way too long. don't mix those up, bestie. π§
π SEE ALSO π
kernel file ./drivers/fpga/xilinx-core.c β go read it, fr fr, it's giving lore. β
and that's the whole page π β brought to you by the fine folks in ./drivers/fpga, version-dated October 2026. 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