expect(9)
π NAME
expect β bestie, it makes an assertion β¨
(Yes, that's expect from section 9 of the kernel API manual β we're in kernel-land now, no cap π§)
π SYNOPSIS
expect (x , exp );
That's the whole vibe. Two args, one macro, zero drama π
π ARGUMENTS
xβ -- undescribed -- π okay so the docs genuinely do not say what this is. Not me making something up β it's literally marked undescribed in the source, so I'm not gonna invent lore for it, iykyk.expβ -- undescribed -- same situation, bestie π also undescribed in the original. Respect the mystery.
fr fr, both of these are listed in the manual as -- undescribed --. That's not me being lazy, that's the actual documentation. π«Ά
β¨ DESCRIPTION
Okay so here's the tea π₯: unlike the assert macro, this macro returns a boolean result.
That's the entire description and honestly? It ate. assert goes "nope, we're aborting" and this one just hands you back a boolean and lets you decide. Main character energy, truly πβ
πΈ SEE ALSO
- Kernel file
./drivers/block/drbd/drbd_polymorph_printk.hπ¦ β go look at it if you want the full picture, bestie.
π reminder: all the technical deets above are exactly what the page says β I'm just here to make the vibe check pass. Don't come for me ifxandexpstay mysterious, that's on the manpage, not me π
Signed, sealed, delivered π β this page lives under ./drivers/block/drbd and it's dated October 2026. Obsessed with the future energy ngl, see you in the group chat πππ
π¦ 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