batadv_atomic_dec_not_zero(9)
batadv_atomic_dec_not_zero(9) π
okay so this one is from the Kernel API Manual, section 9 β tiny helper, very βdecrease unless the number is 0β energy. bestie, itβs honestly iconic in its simplicity. π
πΈ NAME πΈ
batadv_atomic_dec_not_zero β decrease unless the number is 0. no cap, thatβs the whole vibe. β¨
π¦ SYNOPSIS π¦
batadv_atomic_dec_not_zero (v );
π ARGUMENTS π
vβ pointer of typeatomic_t. yes, that kind of pointer, bestie. π«Ά
π₯ RETURN π₯
non-zero if v was not 0, and zero otherwise. thatβs the tea. β
π SEE ALSO π
go peek at these too, iykyk π :
- Kernel file
./net/batman-adv/main.h BATADV_TP_MAX_NUM(9)enum batadv_mesh_state(9)enum batadv_uev_action(9)enum batadv_uev_type(9)batadv_print_vid(9)batadv_compare_eth(9)batadv_has_timed_out(9)batadv_smallest_signed_int(9)batadv_seq_before(9)batadv_seq_after(9)batadv_add_counter(9)batadv_inc_counter(9)BATADV_SKB_CB(9)
mwah π β source/version: ./net/batman-adv; date: October 2026; page: batadv_atomic_dec_not_zero(9).
π¦ 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