veth_pool_store(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 veth_pool_store(9) β€” sysfs store handler for pool attributes πŸ’…

okay so bestie, this page is straight out of the Kernel API Manual, and it’s lowkey all about storing values in pool attributes without breaking the vibe. iykyk. ✨


✨ NAME ✨

  • veth_pool_store β€” sysfs store handler for pool attributes 🫢

πŸ¦‹ SYNOPSIS πŸ¦‹

ssize_t veth_pool_store (struct kobject *kobj , struct attribute *attr ,
       const char *buf , size_t count );

πŸ’… ARGUMENTS πŸ’…

  • kobj β€” kobject embedded in pool πŸ‘‘
  • attr β€” attribute being changed πŸ’«
  • buf β€” value being stored πŸŽ€
  • count β€” length of buf in bytes 🌸

🌈 DESCRIPTION 🌈

okay so this handler stores a new value in a pool attribute. it verifies the range of the new value for size and buff_size β€” like, make sure the numbers are actually behaving. it also verifies that at least one pool remains available to receive MTU-sized packets. no cap, that last check is the whole vibe check for your buffer pools. πŸ’…πŸ”₯


🧚 CONTEXT 🧚

Process context, bestie. it takes and releases rtnl_mutex to ensure correct ordering of close and open calls. literally locking the group chat so the open/close gossip doesn’t get scrambled. 🫢


πŸ”₯ RETURN πŸ”₯

  • -EPERM β€” Not allowed to disabled all MTU-sized buffer pools 😭
  • -EINVAL β€” New pool size or buffer size is out of range 🚫
  • count β€” Return count for success βœ…
  • other β€” Return value from a failed ibmveth_open call πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/ethernet/ibm/ibmveth.c β€” that’s the main character file, fr fr. 🌟

ibmveth_remove_buffer_from_pool(9), ibmveth_rxq_harvest_buffer(9), ibmveth_reset(9), ibmveth_get_desired_dma(9), ibmveth_reset_kunit(9), ibmveth_remove_buffer_from_pool_test(9), ibmveth_rxq_get_buffer_test(9) ✨

πŸ’– source/version: ./drivers/net/ethernet/ibm Β· date: October 2026 β€” that’s the cute little footer sign-off, bestie. periodt. πŸŽ€
πŸ“¦ where this page comes from