dpni_get_statistics(9)
π dpni_get_statistics(9) β like, the Kernel API Manual page you've been waiting for β¨
okay bestie, gather round, because we're diving into dpni_get_statistics from the Kernel API Manual and honestly? it's giving "short but iconic." π
πΈ NAME πΈ
dpni_get_statistics β Get DPNI statistics. that's it, that's the whole name section, and yes she ate π
π¦ SYNOPSIS π¦
int dpni_get_statistics (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , u8 page , union dpni_statistics *stat );
so you're calling it like that ^^ β five args, one int coming back at you, periodt. π
π ARGUMENTS π
okay literally every single one of these matters, so let's go one by one, no skipping π
mc_ioβ Pointer to MC portal's I/O object. yes, the portal. your whole entry point, lowkey main character energy πcmd_flagsβ Command flags; one or more of'MC_CMD_FLAG_'. that's a quote from the page, iykyk β one or more of them, and they all start with'MC_CMD_FLAG_'βtokenβ Token of DPNI object. you gotta have your token, fr fr πpageβ Selects the statistics page to retrieve, seeDPNI_GET_STATISTICSoutput. Pages are numbered0to6. so like... seven pages of stats deliciousness, pick your fighter π¦statβ Structure containing the statistics. it's aunion dpni_statistics *, so the stats go in there when you're done π
π RETURN π
so this section exists in the page and there is literally nothing listed under it π no return values documented, no explanation, nothing. the void. the empty set. we love a mystery, but bestie β that's just how the page is written. don't come for me, I'm only the messenger π«Ά
fr fr tho: the synopsis says it hands back an int, and the RETURN section here documents absolutely zero about it. that's the whole vibe check result.
π₯ SEE ALSO π₯
and now the part where she flexes her entire friend group. the Kernel file lives at ./drivers/net/ethernet/freescale/dpaa2/dpni.c and here's every single sibling function, all of them, no cap:
dpni_prepare_key_cfg(9)dpni_open(9)dpni_close(9)dpni_set_pools(9)dpni_enable(9)dpni_disable(9)dpni_is_enabled(9)dpni_reset(9)dpni_set_irq_enable(9)dpni_get_irq_enable(9)dpni_set_irq_mask(9)dpni_get_irq_mask(9)dpni_get_irq_status(9)dpni_clear_irq_status(9)dpni_get_attributes(9)dpni_set_errors_behavior(9)dpni_get_buffer_layout(9)dpni_set_buffer_layout(9)dpni_set_offload(9)dpni_get_qdid(9)dpni_get_tx_data_offset(9)dpni_set_link_cfg(9)dpni_get_link_cfg(9)dpni_get_link_state(9)dpni_set_max_frame_length(9)dpni_get_max_frame_length(9)dpni_set_multicast_promisc(9)dpni_get_multicast_promisc(9)dpni_set_unicast_promisc(9)dpni_get_unicast_promisc(9)dpni_set_primary_mac_addr(9)dpni_get_primary_mac_addr(9)dpni_get_port_mac_addr(9)dpni_enable_vlan_filter(9)dpni_add_vlan_id(9)dpni_remove_vlan_id(9)dpni_add_mac_addr(9)dpni_remove_mac_addr(9)dpni_clear_mac_filters(9)dpni_set_rx_tc_dist(9)dpni_set_congestion_notification(9)dpni_set_queue(9)dpni_get_queue(9)dpni_set_taildrop(9)dpni_get_taildrop(9)dpni_get_api_version(9)dpni_set_rx_fs_dist(9)dpni_set_rx_hash_dist(9)dpni_add_fs_entry(9)dpni_remove_fs_entry(9)dpni_set_qos_table(9)dpni_add_qos_entry(9)dpni_remove_qos_entry(9)dpni_clear_qos_table(9)dpni_set_tx_shaping(9)dpni_get_single_step_cfg(9)dpni_set_single_step_cfg(9)
like, that's the whole squad π
each one gets a (9) because they're all kernel API pages, obviously.
π‘ tiny reminder bestie: when you need the actual output for a specific page number, the page points you at DPNI_GET_STATISTICS output. go look at that, not me. π
and that's the page!! mwah π huge shoutout to the source line ./drivers/net/ethernet/freesca... and the date October 2026 β that's the version footer, she's dated, she's sourced, she's iconic. slay, bye π§ββοΈπ
π¦ 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