fsl_create_mc_io(9)
π« fsl_create_mc_io(9) π«
okay so bestie, welcome to the Kernel API Manual β yes we're in kernel-land now, hold my iced coffee π§, this one's from fsl_create_mc_io(9) and it's giving "small function, big responsibilities" energy.
πΈ NAME πΈ
fsl_create_mc_io β Creates an MC I/O object β¨
Like, literally that's the whole gig. It makes you an MC I/O object. Iconic behavior only.
π SYNOPSIS π
int fsl_create_mc_io (struct device *dev , phys_addr_t
mc_portal_phys_addr , u32 mc_portal_size , struct fsl_mc_device
*dpmcp_dev , u32 flags , struct fsl_mc_io **new_mc_io );
six arguments, one int coming back at you, no cap π
π¦ ARGUMENTS π¦
okay so here's the cast of characters, and every single one of them matters, so don't skip π
devβ the device to be associated with the MC I/O object. like, this is the device it's gonna be linked with π«Άmc_portal_phys_addrβ physical address of the MC portal to use. yes, physical, not virtual, don't come for me π₯mc_portal_sizeβ size in bytes of the MC portal. bytes, bestie, bytes πdpmcp_devβ Pointer to the DPMCP object associated with this MC I/O object orNULLif none. that "NULLif none" part is doing heavy lifting, notice it πflagsβ flags for the new MC I/O object. cute little configuration vibes β¨new_mc_ioβ Area to return pointer to newly created MC I/O object. this is where the brand-new baby gets handed back to you πΌπ
π DESCRIPTION π
Returns '0' on Success; Error code otherwise. π―
that's it, that's the description, and honestly? she's concise. if you get 0 back you slayed, anything else is an error code telling you it didn't go your way π
π SEE ALSO π
go touch grass in the kernel file ./drivers/bus/fsl-mc/mc-io.c and also go read up on your siblings:
fsl_destroy_mc_io(9)β the one who cleans up after you π§Ήfsl_mc_portal_allocate(9)β the portal hander-outer πfsl_mc_portal_free(9)β the portal taker-backer π
β reminder bestie: this page comes from the Kernel API Manual, ./drivers/bus/fsl-mc, and it's dated October 2026 β so yeah, it's from the future, and it's still serving π
π«Ά
k that's the whole page, go forth and create your MC I/O objects responsibly, 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