pixel_format_cmp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to the Kernel API Manual β€” this is the page for pixel_format_cmp, and it compares two pixel-format descriptions. no cap, that's the whole vibe. ✨


✨ SYNOPSIS ✨

int pixel_format_cmp (const struct pixel_format *lhs , const struct pixel_format *rhs );

🫢 ARGUMENTS 🫢

  • lhs β€” a pixel-format description πŸŽ€
  • rhs β€” a pixel-format description πŸŽ€

πŸ’… DESCRIPTION πŸ’…

It compares two pixel-format descriptions and tells you their order. The semantics are equivalent to memcmp β€” like, that's the exact energy it's giving. πŸ”₯


πŸ”₯ RETURN πŸ”₯

It hands back:

  • 0 if both arguments describe the same pixel format
  • less-than-zero if lhs < rhs
  • greater-than-zero if lhs > rhs

periodt. πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/video/pixel_format.h, plus pixel_format_equal(9) β€” go peek at those, bestie. πŸ‘‘


cute sign-off time: source/version ./include/video, date October 2026, page pixel_format_cmp(9) β€” bye bestie! πŸŽ€πŸ’–

πŸ“¦ where this page comes from