drm_test_bri...n_verify_fmt(9)
π drm_test_bri...n_verify_fmt(9) β the kernel API manual, but make it make sense π«Ά
okay so bestie, this is a section 9 kernel API page. the full name is a whole mouthful that got squished to drm_test_bri...n_verify_fmt(9) in the header, but the real one is drm_test_bridge_chain_verify_fmt. say it with me. slay. β¨
π¦ NAME π¦
drm_test_bridge_chain_verify_fmt β literally just verifying bridge chain format selection. that's the whole vibe check. π
π SYNOPSIS π
void drm_test_bridge_chain_verify_fmt (struct kunit *test , struct
drm_bridge_chain_priv *priv , const struct fmt_tuple *const expected ,
const unsigned int num_expected );
copy it exactly, no cap, don't retype it from memory. π
πΈ ARGUMENTS πΈ
testβ pointer to the KUnit test object. yes, the test thingy. it's how kunit knows which test is doing the shouting. π§privβ pointer to astruct drm_bridge_chain_privfor this chain. like, the specific chain, not a random one, bestie. πexpectedβ a constant array ofstruct fmt_tuplethat describes the expected input and output bus formats. this is the "what should have happened" list. βnum_expectedβ the number of entries inexpected. yeah. it's the count. if you lie about the count the vibes will be off. π
π₯ DESCRIPTION π₯
so what does it actually do? it runs the KUNIT_EXPECT clauses to verify that the bridge chain format selection resulted in the expected formats. that's it. that's the function. no cap. β¨
and here's the iconic little detail: if 0 is given as a format in a struct fmt_tuple, then it is understood to mean "any". so 0 = wildcard = "i don't care, whatever format, live your truth". π
β οΈ ok important one, don't skip this: must be called with the modeset lock held. like, fr fr. not optional. hold the lock, bestie. π«Ά
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/tests/drm_bridge_test.cβ go read the source, iykyk π struct fmt_tuple(9)β the struct doing all the work πget_tuples_out_fmts(9)β its bestie π¦
π sign-off π
this masterpiece lives under ./drivers/gpu/drm/tests, and it's stamped October 2026 β dated, sourced, and absolutely iconic. 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