replay_entries_cmp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… replay_entries_cmp πŸ’…

okay bestie, welcome to the replay_entries_cmp(9) page from the Kernel API Manual β€” it's a tiny helper with a very specific little job, and we're gonna get into it. πŸ¦‹

🌸 NAME 🌸

replay_entries_cmp β€” compare 2 replay entries. That's it, that's the assignment. πŸ’–

✨ SYNOPSIS ✨

int replay_entries_cmp (void *priv , const struct list_head *a , const struct list_head *b );

🫢 ARGUMENTS 🫢

  • priv β€” UBIFS file-system description object. It's the context bestie being passed along. πŸ’…
  • a β€” first replay entry. The one on the left, obvs.
  • b β€” second replay entry. The one on the right, no cap.

πŸŽ€ DESCRIPTION πŸŽ€

This is the comparios function for list_sort β€” yes, that's the spelling on the page, and we're keeping every detail, bestie. It compares the 2 replay entries a and b by comparing their sequence number.

It returns 1 if a has a greater sequence number and -1 otherwise. Tiny comparator, very main character energy. ✨

🧚 SEE ALSO 🧚

Go get lost in these, iykyk:


source/version: ./fs/ubifs Β· date: October 2026 β€” replay_entries_cmp(9) out, slay πŸ’…πŸ’–

πŸ“¦ where this page comes from