mc_polling_wait_preemptible(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mc_polling_wait_preemptible(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's a lil function called mc_polling_wait_preemptible, and no cap, it's the chill version of waiting around. 🫢


🌸 NAME 🌸

mc_polling_wait_preemptible β€” waits for the completion of an MC command doing preemptible polling. uslepp_range() is called between polling iterations. πŸ’€

like literally, it keeps checking in on things, and between each little check it takes a nap via uslepp_range() so it's not out here spinning like a maniac. the way that it's preemptible too? iconic. πŸ‘‘


✨ SYNOPSIS ✨

int mc_polling_wait_preemptible (struct fsl_mc_io *mc_io , struct
fsl_mc_command *cmd , enum mc_cmd_status *mc_status );

she takes three things and gives you back an int, periodt. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mc_io β€” the MC I/O object to be used. this is the main character of the I/O situation, fr fr. πŸ”₯
  • cmd β€” command buffer to receive MC response. it's giving "inbox for the response", and yes she will be filled in. πŸ“¬
  • mc_status β€” MC command completion status. this is where you find out if it slayed or if it flopped. πŸ’€

🌈 SEE ALSO 🌈

bestie go read these next, iykyk:

the whole friend group is right there in mc-sys.c, go say hi πŸ’œ


lowkey reminder: this page is filed under ./drivers/bus/fsl-mc, dated October 2026, and it's literally all about mc_polling_wait_preemptible(9). mwah, go poll something preemptibly bestie πŸ§šπŸ’–βœ¨
πŸ“¦ where this page comes from