STRUCT PENDING_FREE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct pending_free(9) β€” straight from the Kernel API Manual β€” is literally all about information about data structures about to be freed. That's the whole vibe bestie: the bookkeeping for stuff that's about to get yeeted. ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

       struct pending_free {
           struct list_head zapped;
           unsigned long lock_chains_being_freed[BITS_TO_LONGS(
       MAX_LOCKDEP_CHAINS)];
        };

πŸŽ€ Members πŸŽ€

  • zapped β€” head of a list with struct lock_class elements. It's giving "these are the things in line," and honestly, same. πŸ’…
  • lock_chains_being_freed β€” a bitmap that indicates which lock_chains[] elements are about to be freed. No cap, it's literally tracking the soon-to-be-freed lock chains. 🫢

🌈 SEE ALSO 🌈

Bestie, if you're poking around these parts, these are the little sibling pages to check next. πŸ‘‘

Cute sign-off: source/version is ./kernel/locking, dated October 2026 β€” mwah, go read the kernel, ily. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from