fsl_mc_portal_allocate(9)
π fsl_mc_portal_allocate(9) π
okay bestie, welcome to the Kernel API Manual page for fsl_mc_portal_allocate(9) β yes, the manual name is folded in right here because we are not copying the header line, we are living it β¨
π NAME π
fsl_mc_portal_allocate - Allocates an MC portal. that's the whole name, no cap π
β¨ SYNOPSIS β¨
int fsl_mc_portal_allocate (struct fsl_mc_device *mc_dev , u16
mc_io_flags , struct fsl_mc_io **new_mc_io );
π ARGUMENTS π
mc_devβ MC device for which the MC portal is to be allocated. like, the device that's getting its portal moment πmc_io_flagsβ Flags for thefsl_mc_ioobject that wraps the allocated MC portal. flags for the wrapper, because the wrapper matters too π«Άnew_mc_ioβ Pointer to area where the pointer to thefsl_mc_ioobject that wraps the allocated MC portal is to be returned. yes, a pointer to an area where a pointer gets returned β pointerception, but make it slay π
π¦ DESCRIPTION π¦
okay so here's the tea: this function allocates an MC portal from the device's parent DPRC, from the corresponding MC bus' pool of MC portals and wraps it in a new fsl_mc_io object. iconic behavior, honestly.
and if 'mc_dev' is a DPRC itself, the portal is allocated from its own MC bus. periodt. that's the whole description, no extra lore added by me πΈ
π SEE ALSO π
- Kernel file
./drivers/bus/fsl-mc/mc-io.cβfsl_create_mc_io(9),fsl_destroy_mc_io(9),fsl_mc_portal_free(9). these are the see-also besties, go say hi π
mwah π β source/version ./drivers/bus/fsl-mc, date October 2026, page fsl_mc_portal_allocate(9). okay bye, slay your kernel adventures π
π¦ 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