STRUCT FSL_MC_IO(9)
πΈ struct fsl_mc_io(9) β the MC I/O bestie struct
okay so this page is from the Kernel API Manual, and it's all about the MC I/O object you pass into mc_send_command(). literally the little struct bestie that makes command calls happen. π
β¨ NAME β¨
struct fsl_mc_io β MC I/O object to be passed-in to mc_send_command() π«Ά
π SYNOPSIS π
struct fsl_mc_io {
struct device *dev;
u16 flags;
u32 portal_size;
phys_addr_t portal_phys_addr;
void __iomem *portal_virt_addr;
struct fsl_mc_device *dpmcp_dev;
union {
struct mutex mutex;
raw_spinlock_t spinlock;
};
};
no cap, that's the whole struct layout. π
π Members π
devβ device associated with this Mc I/O object.flagsβ flags formc_send_command.portal_sizeβ MC command portal size in bytes.portal_phys_addrβ MC command portal physical address.portal_virt_addrβ MC command portal virtual address.dpmcp_devβ pointer to the DPMCP device associated with the MC portal.{unnamed_union}β anonymous.mutexβ Mutex to serializemc_send_commandcalls that use the same MC portal, if thefsl_mc_ioobject was created with theFSL_MC_IO_ATOMIC_CONTEXT_PORTALflag off.mc_send_commandcalls for thisfsl_mc_ioobject must be made only from non-atomic context.spinlockβ Spinlock to serializemc_send_commandcalls that use the same MC portal, if thefsl_mc_ioobject was created with theFSL_MC_IO_ATOMIC_CONTEXT_PORTALflag on.mc_send_commandcalls for thisfsl_mc_ioobject can be made from atomic or non-atomic context.
π Description π
bestie, the original page has these two lines back-to-back, colons and all, with no extra list items after them:
- Fields are only meaningful if the
FSL_MC_IO_ATOMIC_CONTEXT_PORTALflag is not set: - Fields are only meaningful if the
FSL_MC_IO_ATOMIC_CONTEXT_PORTALflag is set:
yes, both are literally there. iconic formatting choices, honestly. π
π¦ SEE ALSO π¦
- Kernel file
./include/linux/fsl/mc.h struct fsl_mc_driver(9)enum fsl_mc_pool_type(9)struct fsl_mc_resource(9)struct fsl_mc_device_irq(9)struct fsl_mc_obj_desc(9)struct fsl_mc_device(9)struct fsl_mc_version(9)struct dpbp_attr(9)struct dpcon_attr(9)struct dpcon_notification_cfg(9)
π«Ά that's the wrap, bestie β source/version vibes: ./include/linux/fsl, dated October 2026. π
π¦ 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