lockdep_ass...d_lock_sched(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, buckle up: this is lockdep_ass...d_lock_sched(9) from the Kernel API Manual, and it’s giving β€œtiny helper, very serious lock-check energy.” 🫢

πŸŽ€ NAME πŸŽ€

lockdep_assert_in_rcu_read_lock_sched β€” WARN if not protected by rcu_read_lock_sched(). That’s the whole vibe: it’s the lockdep check that side-eyes your code when the right RCU read lock isn’t held. 😭

✨ SYNOPSIS ✨

lockdep_assert_in_rcu_read_lock_sched

no args, no drama, just the function name. πŸ’…

πŸ’… DESCRIPTION πŸ’…

Splats if lockdep is enabled and there is no rcu_read_lock_sched in effect. That’s it. That’s the tweet. πŸ’€

Important caveat, bestie: preempt_disable and friends do not suffice here. Nope, not even close. Instead, an actual rcu_read_lock_sched is required. So don’t try to fake it with the preempt crew β€” lockdep wants the real thing. πŸ‘‘

🌈 SEE ALSO 🌈

Kernel file ./include/linux/rcupdate.h β€” and the whole RCU friend group is here too. iykyk:

xoxo, your kernel bestie πŸ’… β€” source/version: ./include/linux, date: October 2026. Periodt. ✨

πŸ“¦ where this page comes from