fm10k_iov_update_stats(9)
π fm10k_iov_update_stats β the Kernel API Manual page, bestie edition π
okay so this is a page from the Kernel API Manual, and it's about one very specific little function that keeps your virtual functions' numbers cute and current. it's giving "small function, big responsibilities," honestly. let's get into it β¨
β¨ NAME β¨
fm10k_iov_update_stats β literally just: update stats for all VFs. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
void fm10k_iov_update_stats (struct fm10k_intfc *interface );
no return value, no drama, just vibes and a pointer. π
π ARGUMENTS π
interfaceβ the device private structure, aka the main character of this whole operation. you hand it over and it knows everything about the device. π
π₯ DESCRIPTION π₯
so what does it actually do? it updates the VF statistics for all enabled VFs. every single one that's turned on gets its stats refreshed. no VF left behind, periodt. π
now the important part, bestie, so don't scroll past this: it expects to be called by fm10k_update_stats, and it assumes that locking via the __FM10K_UPDATING_STATS bit is already handled. translation? this function is not out here doing its own lock management. that's already been taken care of upstream, and it is counting on that. so don't go calling it from just anywhere and expect it to sort out its own locking β that is not the assignment. π
lowkey the whole contract here is "someone else already did the locking, I'm just here to update the numbers." respect the contract fr fr.
π SEE ALSO π
- the kernel file
./drivers/net/ethernet/intel/fm10k/fm10k_iov.cβ go read the source, it's right there, iykyk π fm10k_iov_msg_queue_mac_vlan(9)β its sibling page, say hi for me π«Ά
π that's a wrap π
and that's the whole page! short and sweet, just like this function. this little guy comes to you from ./drivers/net/ethernet/intel/f... (that's the source path, yes it's abbreviated on the page, no I will not elaborate) and it's dated October 2026 β a true icon of the future. πβ¨ go forth and update those stats, bestie. π§ββοΈπ
π¦ 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