STRUCT MIN_HEAP_CALLBACKS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct min_heap_callbacks(9) πŸ’…

okay so hi bestie, welcome to the Kernel API Manual ✨. This page is literally about struct min_heap_callbacks, and its whole thing is giving β€œdata/functions to customise the min_heap.” No cap, that’s the vibe. Slay, periodt.


✨ NAME ✨

struct min_heap_callbacks β€” Data/functions to customise the min_heap. That’s it, that’s the main character energy 🫢.

🌸 SYNOPSIS 🌸

struct min_heap_callbacks {
    bool (*less)(const void *lhs, const void *rhs, void *args);
    void (*swp)(void *lhs, void *rhs, void *args);
};

πŸŽ€ Members πŸŽ€

  • less β€” the partial order function for this heap. It’s the β€œwho comes before who” callback, lowkey essential 🧚.
  • swp β€” the swap elements function. It’s literally the swap girlie, handling the element swapping πŸ’….

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/min_heap.h β€” yes bestie, that’s the spot πŸ‘‘

okay bye bestie, signing off from ./include/linux, dated October 2026, with all the love from struct min_heap_callbacks(9) πŸ’–βœ¨

πŸ“¦ where this page comes from