fsl_create_mc_io(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« 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 or NULL if none. that "NULL if 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:


⭐ 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