should_use_d...ock_for_link(9)
π should_use_dmub_inbox0_lock_for_link(9) β from the Kernel API Manual, bestie β¨
Okay so picture this: you're deep in the AMD display driver, you've got a dc_link, you've got a DMUB, and you need to know which inbox lock you're supposed to be using. That's literally this function. She's a little bool-returning icon and she's here to answer exactly one question for you π
πΈ NAME πΈ
should_use_dmub_inbox0_lock_for_link β checks if the inbox0 interlock with DMU should be used. That's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
bool should_use_dmub_inbox0_lock_for_link (const struct dc *dc , const
struct dc_link *link );
Two pointers in, one bool out. Clean. Minimal. Iconic π«Ά
π¦ ARGUMENTS π¦
dcβ pointer to the DC object. Your main character struct, no notes πlinkβ an optional pointer to the link object, and likeβ¦ what it's there for is to check for enabled link features. So if you got features turned on, she wants to see 'em π
Lowkey important: link is optional. Don't come for me if you pass something weird, just know the manpage said optional and I'm just the messenger π
π DESCRIPTION π
So here's the tea, bestie: this is not functionally equivalent to inbox1. Not even a little. Why? Because with inbox0, DMUB will not own the programming of the relevant locking registers. That's the whole distinction. Inbox1 has DMUB doing the register programming; inbox0 does not. Different vibes entirely, fr fr π
β RETURN β
trueβ yes babes, use the inbox0 lock π₯falseβ nope, not this one, go elsewhere π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.hβ go read the header, she's got lore π should_use_dmub_inbox1_lock(9)β the other sibling, the inbox1 onedmub_hw_lock_mgr_does_link_require_lock(9)β does the link need a lock? finds outdmub_hw_lock_mgr_does_context_require_lock(9)β same question, but for the context
Go check those siblings too, iykyk. They're all in the same friend group and they all matter π
That's the whole page, bestie! This little gem comes to you from ./drivers/gpu/drm/amd/display/... and it's dated October 2026 β so yeah, she's from the future AND she's flawless. Slay, periodt π
β¨π
π¦ 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