refcount_de...lock_irqsave(9)
β¨ 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 π
- Kernel file
./lib/refcount.c
π«Ά cute little sign-off, bestie: source/version is./lib, date is October 2026, and the page isrefcount_de...lock_irqsave(9). bye πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms