cdx_mcdi_bus_master_enable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 with bus_num they're giving bus_num:dev_num and that's who you're messing with ✨
  • enable β€” Enable bus mastering if set, disable otherwise. so true = go go go πŸ”₯, false = nope, not today πŸ’€

🌈 RETURN 🌈

  • 0 on success β€” we love a clean zero, fr fr πŸ‘‘
  • <0 on failure β€” negative, sad, not the vibe 😭

πŸ¦‹ SEE ALSO πŸ¦‹

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