dpu_rm_get_...ed_resources(9)
π dpu_rm_get_assigned_resources(9)
okay so this is a page straight out of the Kernel API Manual, and honestly? it's a little guy with a very long name. like, the title itself is dpu_rm_get_...ed_resources(9) because apparently even the docs got tired of typing it out π. bestie, we're talking about the DPU resource manager, and this function is the one that tells you what hardware you actually got handed. let's get into it π
β¨ NAME β¨
dpu_rm_get_assigned_resources β get hw resources of the given type that are assigned to this encoder π
like literally, you ask "hey what hardware of this type got assigned to this encoder" and it tells you. no cap.
πΈ SYNOPSIS πΈ
int dpu_rm_get_assigned_resources (struct dpu_rm *rm , struct
dpu_global_state *global_state , struct drm_crtc *crtc , enum
dpu_hw_blk_type type , struct dpu_hw_blk **blks , int blks_size );
it's giving six arguments and an int return, and yes you need all of them π
π¦ ARGUMENTS π¦
rmβ the DPU Resource Manager handle. your main character struct, the one holding all the resource bookkeeping πglobal_stateβ resources shared across multiple kms objects. the communal vibe check, iykyk π«Άcrtcβ the DRM CRTC handle. this is the encoder-ish thing we're asking about β¨typeβ the resource type to return data for. like, which flavor of hw blk do you want, bestie πblksβ pointer to the array to be filled by HW resources. you bring the bucket, it fills the bucket πͺ£blks_sizeβ the size of theblksarray. please tell it how big your bucket is, fr fr π
π SEE ALSO π
kernel file ./drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c and friends:
dpu_rm_init(9)_dpu_rm_get_lm_peer(9)_dpu_rm_check_lm_and_get_connected_blks(9)dpu_rm_release(9)dpu_rm_reserve(9)dpu_rm_reserve_sspp(9)dpu_rm_release_all_sspp(9)dpu_rm_print_state(9)
go read them, they're all part of the same little friend group π
and that's the whole page, bestie β no more sections hiding in the back. this one's from the Kernel API Manual, lives under ./drivers/gpu/drm/msm/disp/dpu1, and the date stamp on it is October 2026. dpu_rm_get_...ed_resources(9) out ππβ¨
π¦ 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