STRUCT KUNIT_BINARY_ASSERT_TEXT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct kunit_binary_assert_text(9) ✨

okay so welcome to the Kernel API Manual, bestie β€” this page is about struct kunit_binary_assert_text, and it is literally the tiny string-holder for the binary assert fam. it's giving β€œsmall structs only” energy. no cap. πŸ’…

πŸ’– NAME πŸ’–

struct kunit_binary_assert_text β€” holds strings for &struct kunit_binary_assert and friends to try and make the structs smaller. that’s the whole assignment, and it ate. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

the shape is right here, and yes it’s just three const char * besties:

struct kunit_binary_assert_text {
    const char *operation;
    const char *left_text;
    const char *right_text;
 };

πŸ‘‘ Members πŸ‘‘

  • operation β€” a string representation of the comparison operator, e.g. "==". it’s the operator’s whole identity, lowkey iconic.
  • left_text β€” a string representation of the left expression, e.g. "2+2". left side main character energy.
  • right_text β€” a string representation of the right expression, e.g. "2+2". right side bestie, matching vibe fr fr.

🌈 SEE ALSO 🌈

kernel file ./include/kunit/assert.h is the mothership, and here are all the linked lore drops:

  • enum kunit_assert_type(9)
  • struct kunit_loc(9)
  • struct kunit_assert(9)
  • struct kunit_fail_assert(9)
  • struct kunit_unary_assert(9)
  • struct kunit_ptr_not_err_assert(9)
  • struct kunit_binary_assert(9)
  • struct kunit_binary_ptr_assert(9)
  • struct kunit_binary_str_assert(9)
  • struct kunit_mem_assert(9)

πŸ’– that’s the whole page, bestie β€” source: ./include/kunit, date: October 2026, page: struct kuni..._assert_text(9). mwah πŸ’‹

πŸ“¦ where this page comes from