ASSERT_MEM_NE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ASSERT_MEM_NE(9) ✨

okay so this is a page from the Kernel API Manual (Kernel API Manual, yes bestie, that's the whole vibe) and it's about ASSERT_MEM_NE β€” a little macro that does a vibe check on memory 🫢

πŸ’… NAME

ASSERT_MEM_NE β€” checks that none of the first @_size bytes of @_seen are equal to @_expected. no cap, that's literally the whole job.

and if that check comes back false? it prints the failed test message (only if you're running with --verbose, iykyk πŸ™ˆ) and then it asserts. like, it asserts asserts. dramatic but fair πŸ’€

🌸 SYNOPSIS

ASSERT_MEM_NE (_seen , _expected , _size );

πŸŽ€ ARGUMENTS

  • _seen β€” -- undescribed -- πŸ¦‹ (the page really said "no thoughts, head empty" and moved on, so we're keeping it exactly like that)
  • _expected β€” -- undescribed -- ✨ (same energy, the docs ghosted this one)
  • _size β€” -- undescribed -- πŸ’œ (yep, also undescribed, love that for us)
ngl the source page leaves all three of these as -- undescribed --, so there's literally nothing more to tell you here. that's not me being lazy, that's canon πŸ“–

πŸ‘‘ SEE ALSO

go read those too, they're all in the same friend group πŸ’…


and that's the whole page, bestie 🌈 β€” brought to you by ./tools/testing/memblock/tests, dated October 2026. iconic, timeless, periodt πŸ’–

πŸ“¦ where this page comes from