cdx_mcdi_get_num_devs(9)
cdx_mcdi_get_num_devs(9) π
okay bestie, welcome to the Kernel API Manual page for cdx_mcdi_get_num_devs β the function that gets the total number of devices on a particular bus of the controller. literally that's the whole vibe. π¦
β¨ NAME β¨
cdx_mcdi_get_num_devs β get the total number of devices on a particular bus of the controller. periodt. π
π οΈ SYNOPSIS π οΈ
int cdx_mcdi_get_num_devs (struct cdx_mcdi *cdx , int bus_num );
π§Ύ ARGUMENTS π§Ύ
cdxβ pointer to MCDI interface. πbus_numβ Bus number. π
π RETURN π
It returns the total number of devices available on the bus, and <0 on failure. so if you see a negative value, that's a fail bestie, no cap π
π SEE ALSO π
- Kernel file:
./drivers/cdx/controller/mcdi_functions.hπ cdx_mcdi_get_num_buses(9)cdx_mcdi_get_dev_config(9)cdx_mcdi_bus_enable(9)cdx_mcdi_bus_disable(9)cdx_mcdi_write_msi(9)cdx_mcdi_reset_device(9)cdx_mcdi_bus_master_enable(9)cdx_mcdi_msi_enable(9)
okay bestie, signing off from ./drivers/cdx/controller, October 2026 β cdx_mcdi_get_num_devs(9) out, 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