mux_control_select_delay(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mux_control_select_delay(9) πŸ’–

Hey bestie, welcome to the Kernel API Manual page for mux_control_select_delay(9) β€” this is the one that asks your mux-control to switch to a given state and then chills for a tiny delay if the state actually changes. Slay. ✨


🌸 NAME 🌸

mux_control_select_delay β€” Select the given multiplexer state.

πŸ¦‹ SYNOPSIS πŸ¦‹

int mux_control_select_delay (struct mux_control *mux , unsigned int
state , unsigned int delay_us );

πŸŽ€ ARGUMENTS πŸŽ€

  • mux β€” The mux-control to request a change of state from. Like, this is the main character you're talking to. πŸ‘‘
  • state β€” The new requested state. The vibe you want it to switch to.
  • delay_us β€” The time to delay (in microseconds) if the mux state is changed. Tiny little pause, measured in microseconds. ⏳

πŸ’… DESCRIPTION πŸ’…

On successfully selecting the mux-control state, it will be locked until there is a call to mux_control_deselect. So yeah, once you successfully select it, it's locked up until somebody calls mux_control_deselect. No cap.

If the mux-control is already selected when mux_control_select is called, the caller will be blocked until mux_control_deselect or mux_state_deselect is called (by someone else). Yep, you gotta wait for someone else to free it β€” literally blocked until one of those deselect calls happens. 😭

Therefore, make sure to call mux_control_deselect when the operation is complete and the mux-control is free for others to use, but do not call mux_control_deselect if mux_control_select fails. This is important, bestie: clean up with mux_control_deselect when you're done and the mux-control is free for others, but do not call mux_control_deselect if mux_control_select fails. Periodt. πŸ’€

⭐ RETURN ⭐

0 when the mux-control state has the requested state or a negative errno on error.

πŸ’œ SEE ALSO πŸ’œ


mwah πŸ’‹ β€” this page is from the ./drivers/mux source/version, dated October 2026. byeeee 🫢✨

πŸ“¦ where this page comes from