ASSERT_MEM_NE(9)
β¨ 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
- Kernel file
./tools/testing/memblock/tests/common.hβ the main character file itself π ASSERT_EQ(9)ASSERT_NE(9)ASSERT_LT(9)ASSERT_LE(9)ASSERT_MEM_EQ(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms