wait_for_init_b(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 of INIT_B to wait for (1 = asserted = low) 🫢 yes, 1 means asserted, and asserted means low β€” that's not a typo, that's just how this pin rolls.
  • alt_udelay β€” the delay to wait if the INIT_B GPIO 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: 0 on success, 0 also when there's no INIT_B GPIO to speak of, and -ETIMEDOUT only 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