refcount_de...lock_irqsave(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is the refcount_de...lock_irqsave(9) page from the Kernel API Manual, and it's giving β€œreturn holding spinlock with disabled interrupts if able to decrement refcount to 0.” Slay. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

bool refcount_dec_and_lock_irqsave (refcount_t *r , spinlock_t *lock ,
unsigned long *flags );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • r β€” the refcount. literally the refcount bestie.
  • lock β€” the spinlock to be locked. πŸ”’
  • flags β€” the saved IRQ-flags if it's acquired. 🫢

πŸ’… DESCRIPTION πŸ’…

Same as refcount_dec_and_lock above, except that the spinlock is acquired with disabled interrupts. no cap, that's the whole vibe. ✨

🌈 RETURN 🌈

Returns true and holds the spinlock if it's able to decrement the refcount to 0; false otherwise. periodt. πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘


🫢 cute little sign-off, bestie: source/version is ./lib, date is October 2026, and the page is refcount_de...lock_irqsave(9). bye πŸ’–βœ¨
πŸ“¦ where this page comes from