STRUCT FSL_MC_RESOURCE(9)
π struct fsl_mc_resource β MC generic resource π
okay so bestie, welcome to the Kernel API Manual page for struct fsl_mc_resource, aka the little generic-resource baddie that lives in ./include/linux/fsl. it's giving "humble struct, big responsibilities" and honestly? we stan. π
β¨ SYNOPSIS β¨
struct fsl_mc_resource {
enum fsl_mc_pool_type type;
s32 id;
void *data;
struct fsl_mc_resource_pool *parent_pool;
struct list_head node;
};
look at her. five fields. zero notes. absolute main character energy. π
π¦ Members π¦
typeβ the type of resource. literally justβ¦ what kind of resource this is. vibe check passed. β¨idβ the unique MC resource Id within the resources of the same type. so like,idis only unique against its own type-siblings, not against everybody β iykyk. π«Άdataβ a pointer to resource-specific data if the resource is currently allocated, orNULLif the resource is not currently allocated. so if you deref this without checking, that's on you bestie π check forNULLfirst, fr fr.parent_poolβ pointer to the parent resource pool that this resource is allocated from. every resource has a mom, and her name isparent_pool. πnodeβ the node in the free list of the corresponding resource pool. it's on the list, it's chilling, it's waiting for its turn. πΈ
β NOTE β
this structure is meant to be embedded as a field of specific MC resource structures. not a standalone diva β she's a supporting cast member, and she plays that role iconically. π¬
lowkey important: embed her, don't malloc her separately. that's the whole point, no cap. π₯
π SEE ALSO π
- Kernel file
./include/linux/fsl/mc.h struct fsl_mc_driver(9)enum fsl_mc_pool_type(9)struct fsl_mc_device_irq(9)struct fsl_mc_obj_desc(9)struct fsl_mc_device(9)struct fsl_mc_io(9)struct fsl_mc_version(9)struct dpbp_attr(9)struct dpcon_attr(9)struct dpcon_notification_cfg(9)
go read them all, bestie, they're literally all connected π§π
anyway that's the page!! this one's sourced from ./include/linux/fsl and dated October 2026, so likeβ¦ mark your calendars ππ mwah, go forth and embed responsibly β¨
π¦ 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