hw_test_and_set_setup_guard(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ hw_test_and_set_setup_guard(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a tiny little function from the chipidea USB gadget world, and honestly? it's giving "small but mighty" πŸŽ€


🌸 NAME 🌸

hw_test_and_set_setup_guard β€” test & set setup guard (execute without interruption) πŸ’…

like, it tests the thing AND sets the thing, and it does it without interruption. no cap. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int hw_test_and_set_setup_guard (struct ci_hdrc *ci );

that's the whole signature, bestie β€” returns an int, takes one pointer. slay. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • ci β€” the controller πŸ‘‘

that's it. that's the argument. one (1) controller, and she's the main character. 🌈


⭐ DESCRIPTION ⭐

okay so here's the tea πŸ“: this function returns guard value. literally that's what the manpage says and i'm not about to invent lore, so. guard value. returned. periodt. πŸ’€


πŸ’œ SEE ALSO πŸ’œ

the kernel file lives at ./drivers/usb/chipidea/udc.c β€” go look, iykyk πŸ”₯

and here's the whole friend group, all the related pages, in order, not one of them skipped because we don't do that here 🧚:

also note the sibling energy: hw_test_and_clear_setup_guard(9) is right there in the list, and hw_test_and_set_setup_guard(9) is the one you're reading. two icons. don't mix them up πŸ’…

that's the page, bestie! 🌸 this one came out of ./drivers/usb/chipidea, dated October 2026, and it's filed under hw_test_and_set_setup_guard(9) in the Kernel API Manual β€” mwah, go read the source, ily, bye πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from