STRUCT FSL_MC_RESOURCE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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, id is only unique against its own type-siblings, not against everybody β€” iykyk. 🫢
  • data β€” a pointer to resource-specific data if the resource is currently allocated, or NULL if the resource is not currently allocated. so if you deref this without checking, that's on you bestie 😭 check for NULL first, fr fr.
  • parent_pool β€” pointer to the parent resource pool that this resource is allocated from. every resource has a mom, and her name is parent_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