fsl_mc_object_allocate(9)
π fsl_mc_object_allocate π
okay bestie, welcome to the Kernel API Manual moment β this page is all about fsl_mc_object_allocate(9), and it's lowkey iconic. let's get into it π¦β¨
πΈ NAME πΈ
fsl_mc_object_allocate β allocates an fsl-mc object of the given pool type from a given fsl-mc bus instance.
π¦ SYNOPSIS π¦
int fsl_mc_object_allocate (struct fsl_mc_device *mc_dev , enum
fsl_mc_pool_type pool_type , struct fsl_mc_device **new_mc_adev );
π ARGUMENTS π
mc_devβ the fsl-mc device that is used in conjunction with the allocated object. bestie, they're a package deal π«Άpool_typeβ the pool type. that's it, that's the whole vibe πnew_mc_adevβ pointer to the area where the pointer to the allocated device is to be returned. yes, pointer-to-pointer realness π
π₯ DESCRIPTION π₯
okay so here's the tea: allocatable objects are always used in conjunction with some functional device β no solo main character energy for them, periodt. this function allocates an object of the specified type from the DPRC containing the functional device. slay π
β οΈ NOTE β οΈ
bestie, important:pool_typemust be different fromFSL_MC_POOL_MCP, since MC portals are allocated usingfsl_mc_portal_allocate, instead of this function. this is not a drill π
π SEE ALSO π
- Kernel file
./drivers/bus/fsl-mc/fsl-mc-allocator.c fsl_mc_resource_pool_add_device(9)fsl_mc_resource_pool_remove_device(9)fsl_mc_object_free(9)
this cutie came from ./drivers/bus/fsl-mc, dated October 2026, and it's the fsl_mc_object_allocate(9) page β mwah, bye bestie ππβ¨
π¦ 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