STRUCT LOCK_TRACE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this is the page for struct lock_trace(9), and it is literally just one single stack backtrace. no cap, that's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

struct lock_trace {
    struct hlist_node       hash_entry;
    u32 hash;
    u32 nr_entries;
    unsigned long           entries[];
};

that's the struct, icon behavior only πŸ’…


πŸŽ€ Members πŸŽ€

  • hash_entry β€” Entry in a stack_trace_hash[] list. she's on the list, periodt πŸ’–
  • hash β€” jhash of entries. cute little fingerprint energy ✨
  • nr_entries β€” Number of entries in entries. literally the count, bestie πŸ”’
  • entries β€” Actual stack backtrace. the main character data right here πŸ‘‘

🌈 SEE ALSO 🌈

all the related lore lives in the kernel file ./kernel/locking/lockdep.c, and the reference squad is struct pending_free(9), struct delayed_free(9), lockdep_hardirqs_on_prepare(9), and lockdep_cleanup_dead_cpu(9). iykyk 🫢


mwah πŸ’‹ β€” this cute little page is from ./kernel/locking, dated October 2026, and it's serving struct lock_trace(9) realness. slay and read the source, bestie 🌸

πŸ“¦ where this page comes from