get_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_stats(9) β€” the Kernel API Manual, bestie edition 🌸

okay so this is get_stats from section 9 of the manual (the kernel API one, iykyk) β€” and honestly? it's giving "small function, big gossip energy" ✨


πŸŽ€ NAME πŸŽ€

get_stats β€” get LL2 related statistics. that's it, that's the whole vibe. it grabs the stats and hands them to you 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int get_stats (struct qed_dev *cdev , struct qed_ll2_stats *stats );

literally the whole signature, no notes πŸ’œ


✨ ARGUMENTS ✨

  • cdev β€” the Qed dev pointer. like, the device in question, the main character of this whole operation πŸ‘‘
  • stats β€” a pointer to the struct that would be filled with stats. yes bestie, filled β€” you pass it in empty-ish and it comes back looking gorgeous 🌈

⭐ RETURN ⭐

returns 0 on success, and an error otherwise. so like… zero is the slay outcome, anything else is a vibe check failure πŸ˜­πŸ’€


🌸 SEE ALSO 🌸

go read those too, they're all part of the same friend group fr fr πŸ’–


ngl this one's short but it ate. no cap, every detail stayed. periodt πŸ’…

and that's the whole page β€” brought to you from ./include/linux/qed, dated October 2026, under the very iconic title get_stats(9) πŸ§šβ€β™€οΈπŸŽ€ see you in the next man page, bestie! πŸ¦‹

πŸ“¦ where this page comes from