drm_test_bri...n_verify_fmt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a struct drm_bridge_chain_priv for this chain. like, the specific chain, not a random one, bestie. πŸ‘‘
  • expected β€” a constant array of struct fmt_tuple that describes the expected input and output bus formats. this is the "what should have happened" list. ⭐
  • num_expected β€” the number of entries in expected. 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