batadv_has_timed_out(9)
π batadv_has_timed_out(9) β the Kernel API Manual, bestie edition β¨
okay so this is batadv_has_timed_out, straight out of the Kernel API Manual, and it's literally just the vibes check on whether something's expired. that's it. that's the function. π«Ά
β¨ NAME β¨
batadv_has_timed_out β compares current time (jiffies) and timestamp + timeout
like, it takes the clock right now, and it takes your timestamp plus your timeout, and it's like "which one's bigger, bestie?" π
πΈ SYNOPSIS πΈ
bool batadv_has_timed_out (unsigned long timestamp , unsigned int
timeout );
returns a bool, takes an unsigned long timestamp and an unsigned int timeout. no notes. iconic signature tbh. β
π ARGUMENTS π
timestampβ the base value you're comparing against, injiffies. this is your anchor, your starting point, your main character moment. πtimeoutβ the thing that gets added to that base value before the comparing happens, in milliseconds. yes, milliseconds β different unit fromtimestamp, and that's just how it is, no cap. π¦
ngl the units being different (jiffies vs milliseconds) is the whole twist of this function, so don't sleep on it. π
π₯ RETURN π₯
true if the current time is after timestamp + timeout.
that's the entire condition. current time > timestamp + timeout β true. otherwise you're getting false, and honestly? relatable. π
π SEE ALSO π
Kernel file ./net/batman-adv/main.h, plus the whole squad:
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_atomic_dec_not_zero(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)
go read them all, bestie, they're literally right there β it's giving study group energy πβ¨
kisses from the ./net/batman-adv directory, dated October 2026 β this page was brought to you by batadv_has_timed_out(9) and it ate. periodt. π
π
π¦ 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