KUNIT_EXPECT_PTR_EQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– KUNIT_EXPECT_PTR_EQ πŸ’–

okay bestie, welcome to the Kernel API Manual page for KUNIT_EXPECT_PTR_EQ β€” the pointer-equality expectation that is lowkey iconic and very much β€œtiny macro, big main character energy.” we are gonna read it together, no skips, periodt. πŸ’…


✨ NAME ✨

KUNIT_EXPECT_PTR_EQ β€” Expects that pointers @left and @right are equal.

🌸 SYNOPSIS 🌸

here’s the whole call, character-for-character, bestie:

KUNIT_EXPECT_PTR_EQ (test , left , right );

πŸŽ€ ARGUMENTS πŸŽ€

  • test β€” The test context object.
  • left β€” an arbitrary expression that evaluates to a pointer.
  • right β€” an arbitrary expression that evaluates to a pointer.

πŸ¦‹ DESCRIPTION πŸ¦‹

So this one sets an expectation that the values that left and right evaluate to are equal. That’s the whole vibe check. ✨

It is semantically equivalent to KUNIT_EXPECT_TRUE(test, (left) == (right)). See KUNIT_EXPECT_TRUE for more information. like, literally, that’s the tea. 🫢

πŸ’œ SEE ALSO πŸ’œ

the whole squad is here, and yes we are listing every single one because nobody gets left out:


xoxo, your local Unix bestie πŸ’– source: ./include/kunit; date: October 2026; manual tag: KUNIT_EXPECT_PTR_EQ(9). bye bestie, slay responsibly πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from