STRUCT MMU_INTERVAL_NOTIFIER_OPS(9)
π NAME π
okay so this is the struct mmu_i...notifier_ops(9) page from the Kernel API Manual, and it's literally about struct mmu_interval_notifier_ops β the callback for range notification. no cap, that's the whole NAME vibe. π«Ά
β¨ SYNOPSIS β¨
here's the struct exactly as it appears, because we do not play with code, periodt:
struct mmu_interval_notifier_ops {
bool (*invalidate)(struct mmu_interval_notifier *interval_sub, const
struct mmu_notifier_range *range, unsigned long cur_seq);
bool (*invalidate_start)(struct mmu_interval_notifier *interval_sub,
const struct mmu_notifier_range *range, unsigned long cur_seq, struct
mmu_interval_notifier_finish **finish);
void (*invalidate_finish)(struct mmu_interval_notifier_finish
*finish);
};
π«Ά Members π«Ά
invalidateβ okay so when this returns, the caller must stop using any SPTEs within this range. it can sleep, bestie. returnfalseonly if sleeping was required butmmu_notifier_range_blockable(range)isfalse. lowkey crucial. πinvalidate_startβ similar toinvalidate, but it's for two-pass notifier callbacks, where the call toinvalidate_startis the first pass, and anystruct mmu_interval_notifier_finishpointer returned in thefinishparameter describes the finish pass. if*finishisNULLon return, then no final pass will be called, andinvalidate_startneeds to implement the full notifier, behaving likeinvalidate. the value of*finishis guaranteed to beNULLat function entry. very much important. πinvalidate_finishβ called as the second pass for any notifier that returned a non-NULL*finishfrominvalidate_start. thefinishpointer passed here is the same one returned byinvalidate_start. iconic. π¦
π SEE ALSO π
- Kernel file
./include/linux/mmu_notifier.h enum mmu_notifier_event(9)struct mmu_interval_notifier_finish(9)mmu_interval_set_seq(9)mmu_interval_read_retry(9)mmu_interval_check_retry(9)
okay that's the whole page, byeee bestie π β source: ./include/linux; date: October 2026; page: struct mmu_i...notifier_ops(9); manual: Kernel API Manual.
π¦ 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