cdx_mcdi_bus_disable(9)
π cdx_mcdi_bus_disable(9) β the kernel API manual, but make it make sense
okay so bestie, welcome to the Kernel API Manual entry for cdx_mcdi_bus_disable π this one is short and sweet, but it's literally the plug that turns a whole CDX bus off, so pay attention, iykyk.
β¨ NAME β¨
cdx_mcdi_bus_disable β Disable CDX bus represented by bus_num πΈ
that's it. that's the whole vibe. you point at a bus number, it goes night-night π΄
π¦ SYNOPSIS π¦
int cdx_mcdi_bus_disable (struct cdx_mcdi *cdx , u8 bus_num );
look at her, so compact, so iconic π takes a pointer to the MCDI interface and a u8 bus number, hands you back an int. no cap.
π ARGUMENTS π
cdxβ pointer to MCDI interface. yes it's the main character of this call, keep her safe π«Άbus_numβ Bus number. just the number. the whole bus. that's the one you're disabling fr fr.
π₯ RETURN π₯
0on success π slay, bus disabled<0on failure π something went wrong, check your vibes (and your inputs)
π SEE ALSO π
- Kernel file
./drivers/cdx/controller/mcdi_functions.hβ go read the source bestie, it's giving β¨ documentation β¨ cdx_mcdi_get_num_buses(9)cdx_mcdi_get_num_devs(9)cdx_mcdi_get_dev_config(9)cdx_mcdi_bus_enable(9)β the opposite energy πcdx_mcdi_write_msi(9)cdx_mcdi_reset_device(9)cdx_mcdi_bus_master_enable(9)cdx_mcdi_msi_enable(9)
the whole friend group honestly, go say hi π
π§ tiny reminder:0means success here,<0means nope. don't get it twisted, that's the classic kernel way and it ate.
and that's the page, bestie π
brought to you straight out of ./drivers/cdx/controller, dated October 2026 β see you in the next manual page, mwah ππ
π¦ 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