mctrl_gpio_disable_ms_sync(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mctrl_gpio_disable_ms_sync(9) β€” like, the Kernel API Manual one πŸ’…

okay so bestie, welcome to the Kernel API Manual page for mctrl_gpio_disable_ms_sync, and honestly? this little function is doing the most so your modem-control lines can chill tf out. πŸŽ€


✨ NAME ✨

mctrl_gpio_disable_ms_sync β€” disable irqs and handling of changes to the ms lines, and wait for any pending IRQ to be processed

no cap, that's the whole vibe: it turns the IRQ party off, stops handling changes to the ms lines, and then β€” this is the important part, bestie β€” it waits for any pending IRQ to be processed before it dips. πŸ¦‹


🌸 SYNOPSIS 🌸

void mctrl_gpio_disable_ms_sync (struct mctrl_gpios *gpios );

yeah so it returns void (nothing back, she's not a gossip πŸ’…), takes one argument, and it's literally just:

struct mctrl_gpios *gpios

iconic. simple. to the point.


🫢 ARGUMENTS 🫢

  • gpios β€” gpios to disable. that's it, that's the whole argument, she's the one getting switched off ✨

πŸ‘‘ SEE ALSO πŸ‘‘

okay so if you wanna keep reading (and you should, iykyk), go look at the Kernel file ./drivers/tty/serial/serial_mctrl_gpio.c β€” that's where all the lore lives, fr fr. and then there's the whole friend group:

like, mctrl_gpio_disable_ms_no_sync(9) is literally her sibling who doesn't wait around β€” but this one? this one is the sync one, and she will wait for that pending IRQ. main character energy honestly. 😭πŸ”₯


πŸ’€ quick vibe check reminder: the sync in the name is not decorative β€” it means wait for any pending IRQ to be processed. don't skip that part, bestie.

and that's the page!! πŸ“ brought to you by the source/version ./drivers/tty/serial, dated October 2026 β€” mwah, kisses, go read your kernel source, ily, bye!! πŸ’–πŸ§šπŸŒˆβ­

πŸ“¦ where this page comes from