cdx_mcdi_bus_master_enable(9)
π cdx_mcdi_bus_master_enable(9) β like, the whole glow-up
okay bestie, so this one lives in the Kernel API Manual and it's literally called cdx_mcdi_bus_master_enable β say that five times fast, i can't π β and what it does is Set/Reset bus mastering for cdx device represented by bus_num:dev_num. that's the whole vibe. you're flipping bus mastering on or off for one specific device, and you point at that device with a bus number plus a device number. iconic little coordinate pair, no cap π
β¨ SYNOPSIS β¨
int cdx_mcdi_bus_master_enable (struct cdx_mcdi *cdx , u8 bus_num , u8
dev_num , bool enable );
yup, that's the signature, copy it exactly, don't @ me π
πΈ ARGUMENTS πΈ
cdxβ pointer to MCDI interface. that's your entry point, your main character, the thing you're talking through π«Άbus_numβ Bus number. the first half of the address, slay.dev_numβ Device number. the second half. together withbus_numthey're givingbus_num:dev_numand that's who you're messing with β¨enableβ Enable bus mastering if set, disable otherwise. sotrue= go go go π₯,false= nope, not today π
π RETURN π
0on success β we love a clean zero, fr fr π<0on failure β negative, sad, not the vibe π
π¦ SEE ALSO π¦
- Kernel file
./drivers/cdx/controller/mcdi_functions.h cdx_mcdi_get_num_buses(9)β how many buses we even gotcdx_mcdi_get_num_devs(9)β and how many devscdx_mcdi_get_dev_config(9)β the config lorecdx_mcdi_bus_enable(9)β bus oncdx_mcdi_bus_disable(9)β bus offcdx_mcdi_write_msi(9)β msi writing thingscdx_mcdi_reset_device(9)β the factory-reset ahh momentcdx_mcdi_msi_enable(9)β msi on
all of these are also (9) sections, iykyk π§
lowkey reminder: the see-also list above is exactly what's in the manpage β i'm not out here inventing extra friends for this function π
and that's the tea, bestie π this page came from ./drivers/cdx/controller, dated October 2026, and it's filed under cdx_mcdi_bus_master_enable(9). go enable some bus mastering, you absolute legend ππΊ
π¦ 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