dpni_get_queue(9)
π dpni_get_queue(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for dpni_get_queue, and yes it's exactly what it sounds like: you're getting your queue parameters back out of the DPAA2 life. no cap, it's a little function with a lot of friends (see the SEE ALSO at the bottom, it's giving squad goals π«Ά).
β¨ SYNOPSIS β¨
int dpni_get_queue (struct fsl_mc_io *mc_io , u32 cmd_flags , u16 token
, enum dpni_queue_type qtype , u8 tc , u8 index , struct dpni_queue
*queue , struct dpni_queue_id *qid );
she's long, she's lowercase-ish, she returns an int β iconic behavior honestly π
πΈ ARGUMENTS πΈ
mc_ioβ Pointer to MC portal's I/O object. like, your little handle to the management complex portal, that's the vibe π¦cmd_flagsβ Command flags; one or more ofMC_CMD_FLAG_. pick your flags, be free β¨tokenβ Token of DPNI object. it's au16, it identifies your DPNI, pls don't lose it πqtypeβ Type of queue β all queue types are supported, and we love an inclusive queen πtcβ Traffic class, in range0toNUM_TCS - 1. respect the range, she's strict πindexβ Selects the specific queue out of the set allocated for the same TC. Value must be in range0toNUM_QUEUES - 1. again: range check is real, do not test her πqueueβ Queue configuration structure. this is where the tea gets poured πqidβ Queue identification. your queue's little ID card, very main character π
π RETURN π
bestieβ¦ the RETURN section is literally empty in this manpage. not me noticing that π the return type is int in the synopsis up there, but the original page documents nothing under RETURN, so i'm not gonna make something up. periodt. β
ngl that's a whole vibe check fail from whoever wrote the original, but we respect the source material around here π«Ά
π SEE ALSO π
first up, the kernel file herself:
- Kernel file
./drivers/net/ethernet/freescale/dpaa2/dpni.c
and now the entire extended friend group (grab a snack, this is a long one):
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_statistics(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 department at this point π but fr fr, if you're poking at queues you're gonna bump into these. iykyk π
and that's the page!! this lil beauty comes from ./drivers/net/ethernet/freesca... and is dated October 2026, and it'll keep showing dpni_get_queue(9) in the corner forever because that's her name and she's not changing it π
β¨ slay, go get those queue params 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