lockdep_cleanup_dead_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lockdep_cleanup_dead_cpu(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for lockdep_cleanup_dead_cpu(9) β€” yes, that whole mouthful. stay with me, it's actually a cutie πŸ’…

✨ NAME ✨

lockdep_cleanup_dead_cpu β€” Ensure CPU lockdep state is cleanly stopped

🌸 SYNOPSIS 🌸

void lockdep_cleanup_dead_cpu (unsigned int cpu , struct task_struct
       *idle );

it returns void, so no return-value drama here β€” just vibes and cleanup 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • cpu β€” index of offlined CPU
  • idle β€” task pointer for offlined CPU's idle thread

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function gets invoked after the CPU is dead β€” like, actually dead, not ghosting dead πŸ’€

it ensures that the tracing infrastructure is left in a suitable state for the CPU to be subsequently brought online again. think of it as tucking the tracing setup in properly so the CPU can have its little comeback moment later, no cap ✨

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./kernel/locking/lockdep.c β€” plus these besties: struct pending_free(9), struct delayed_free(9), struct lock_trace(9), and lockdep_hardirqs_on_prepare(9) 🧚

made with πŸ’– in the ./kernel/locking corner of the Kernel API Manual, dated October 2026 β€” bye bestie, stay clean 🫢

πŸ“¦ where this page comes from