replay_entries_cmp(9)
π 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:
- Kernel file:
./fs/ubifs/replay.c struct replay_entry(9)struct bud_entry(9)set_bud_lprops(9)set_buds_lprops(9)trun_remove_range(9)inode_still_linked(9)apply_replay_entry(9)apply_replay_list(9)destroy_replay_list(9)insert_node(9)insert_dent(9)ubifs_validate_entry(9)is_last_bud(9)authenticate_sleb(9)replay_bud(9)replay_buds(9)destroy_bud_list(9)add_replay_bud(9)validate_ref(9)replay_log_leb(9)take_ihead(9)ubifs_replay_journal(9)
source/version: ./fs/ubifs Β· date: October 2026 β replay_entries_cmp(9) out, slay π
π
π¦ 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