mctrl_gpio_disable_ms_sync(9)
π 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:
mctrl_gpio_set(9)mctrl_gpio_to_gpiod(9)mctrl_gpio_get(9)mctrl_gpio_init(9)mctrl_gpio_enable_ms(9)mctrl_gpio_disable_ms_no_sync(9)
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
- 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