batadv_dat_c..._dump_bucket(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_dat_c..._dump_bucket(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so real quick, this is a page from the Kernel API Manual and it's all about batadv_dat_cache_dump_bucket β€” say that five times fast, i dare u 😭


✨ NAME ✨

batadv_dat_cache_dump_bucket β€” dumps exactly one bucket of the DAT cache table out to a netlink socket. one bucket. not the whole table. she's doing her one (1) job and she's slaying it πŸ’…


🌸 SYNOPSIS 🌸

int batadv_dat_cache_dump_bucket (struct sk_buff *msg , u32 portid ,
struct netlink_callback *cb , struct batadv_hashtable *hash , unsigned
int bucket , int *idx_skip );

like yes she returns an int, and yes there are six whole arguments, we'll get to every single one, don't stress 🫢


πŸ’– ARGUMENTS πŸ’–

  • msg β€” the buffer for the message, aka where the output goes. it's giving "hold my data" energy πŸŽ€
  • portid β€” the netlink port. that's the address she's sending to, no cap ✨
  • cb β€” the Control block containing additional options. the little side-car of extra settings, iconic πŸ’«
  • hash β€” the hash to dump. this is the table we're picking a bucket out of πŸ¦‹
  • bucket β€” the bucket index to dump. literally which bucket. that one. right there πŸ‘‘
  • idx_skip β€” how many entries to skip. yes bestie, we're skipping, sometimes u gotta skip 😌

⭐ RETURN ⭐

0 or error code. that's it, that's the whole vibe β€” zero means we ate, anything else means something went sideways πŸ’€


🌈 SEE ALSO 🌈

the kernel file lives at ./net/batman-adv/distributed-arp-table.c, and after that it's basically the entire batman-adv extended family reunion β€” every single one of these, no skipping (unlike idx_skip, we do NOT skip here 😀):


and that's the whole page bestie, go dump a bucket πŸͺ£βœ¨

πŸ’Œ cute sign-off time: this lil page came from ./net/batman-adv, dated October 2026, and she answers to the name batadv_dat_c..._dump_bucket(9). mwah πŸ’‹πŸ¦‹
πŸ“¦ where this page comes from