STRUCT PDS_VDPA_VQ_INIT_CMD(9)
π struct pds_vdpa_vq_init_cmd(9) β the queue init command, bestie β¨
okay so this is a page from the Kernel API Manual, and it's literally all about struct pds_vdpa_vq_init_cmd β the queue init command π. Yes it's a mouthful, no you don't have to say it out loud at a party. Come sit, I'll walk you through every single field, fr fr.
β¨ NAME β¨
struct pds_vdpa_vq_init_cmd β the queue init command π like, the little packet-shaped vibe that tells the hardware "hey bestie, set up this queue for me."
π¦ SYNOPSIS π¦
Here's the whole struct, exactly as it lives β do not touch, just admire:
struct pds_vdpa_vq_init_cmd {
u8 opcode;
u8 vdpa_index;
__le16 vf_id;
__le16 qid;
__le16 len;
__le64 desc_addr;
__le64 avail_addr;
__le64 used_addr;
__le16 intr_index;
__le16 avail_index;
__le16 used_index;
};
πΈ Members πΈ
okay, field-by-field, and yes I'm gonna be normal about it (I'm not):
opcodeβ the opcode, and it isPDS_VDPA_CMD_VQ_INIT. that's its whole personality πvdpa_indexβ the index for the vdpa subdevice π«Άvf_idβ the VF id, periodt.qidβ queue id, and here's the tea: bit0 clear = rx, bit0 set = tx, andqid=Nis ctrlq β (iykyk)lenβlog(2)of the max descriptor count π₯ that's a log, not a length, don't come for medesc_addrβ DMA address of the descriptor area πavail_addrβ DMA address of available descriptors (aka driver area) πused_addrβ DMA address of used descriptors (aka device area) π¦intr_indexβ interrupt index β¨avail_indexβ the initial device position in the available ring πused_indexβ the initial device position in the used ring π
π SEE ALSO π
this list is long and honestly iconic β every one of these makes an appearance:
Kernel file ./include/linux/pds/pds_adminq.h
- struct
pds_core_notifyq_event(9) - struct
pds_core_link_change_event(9) - struct
pds_core_reset_event(9) - struct
pds_core_client_event(9) - struct
pds_core_notifyq_cmd(9) - struct
pds_core_client_reg_cmd(9) - struct
pds_core_client_reg_comp(9) - struct
pds_core_client_unreg_cmd(9) - struct
pds_core_client_request_cmd(9) - enum
pds_core_logical_qtype(9) - union
pds_core_lif_config(9) - struct
pds_core_lif_status(9) - struct
pds_core_lif_info(9) - struct
pds_core_lif_identity(9) - struct
pds_core_lif_identify_cmd(9) - struct
pds_core_lif_identify_comp(9) - struct
pds_core_lif_init_cmd(9) - struct
pds_core_lif_init_comp(9) - struct
pds_core_lif_reset_cmd(9) - enum
pds_core_lif_attr(9) - struct
pds_core_lif_setattr_cmd(9) - struct
pds_core_lif_setattr_comp(9) - struct
pds_core_lif_getattr_cmd(9) - struct
pds_core_lif_getattr_comp(9) - struct
pds_core_q_identity(9) - struct
pds_core_q_identify_cmd(9) - struct
pds_core_q_identify_comp(9) - struct
pds_core_q_init_cmd(9) - struct
pds_core_q_init_comp(9) - struct
pds_vdpa_cmd(9) - struct
pds_vdpa_init_cmd(9) - struct
pds_vdpa_ident(9) - struct
pds_vdpa_ident_cmd(9) - struct
pds_vdpa_status_cmd(9) - enum
pds_vdpa_attr(9) - struct
pds_vdpa_setattr_cmd(9) - struct
pds_vdpa_vq_init_comp(9) - struct
pds_vdpa_vq_reset_cmd(9) - struct
pds_vdpa_vq_reset_comp(9) - struct
pds_vdpa_set_features_cmd(9) - struct
pds_lm_cmd(9) - struct
pds_lm_state_size_cmd(9) - struct
pds_lm_state_size_comp(9) - struct
pds_lm_suspend_cmd(9) - struct
pds_lm_suspend_status_cmd(9) - struct
pds_lm_resume_cmd(9) - struct
pds_lm_sg_elem(9) - struct
pds_lm_save_cmd(9) - struct
pds_lm_restore_cmd(9) - union
pds_lm_dev_state(9) - struct
pds_lm_dirty_region_info(9) - struct
pds_lm_dirty_status_cmd(9) - enum
pds_lm_dirty_bmp_type(9) - struct
pds_lm_dirty_status_comp(9) - struct
pds_lm_dirty_enable_cmd(9) - struct
pds_lm_dirty_disable_cmd(9) - struct
pds_lm_dirty_seq_ack_cmd(9) - struct
pds_lm_host_vf_status_cmd(9) - struct
pds_fwctl_cmd(9) - struct
pds_fwctl_comp(9) - struct
pds_fwctl_ident_cmd(9) - struct
pds_fwctl_ident(9) - struct
pds_fwctl_query_cmd(9) - struct
pds_fwctl_query_comp(9) - struct
pds_fwctl_query_data_endpoint(9) - struct
pds_fwctl_query_data_operation(9) - struct
pds_fwctl_query_data(9) - struct
pds_fwctl_rpc_cmd(9) - struct
pds_sg_elem(9) - struct
pds_fwctl_rpc_comp(9)
and that's the whole thing bestie, you ate that ππ
source:./include/linux/pdsΒ· dated October 2026 Β· this little love letter is thestruct pds_vdpa_vq_init_cmd(9)page π§π go set up a queue, you've got this β¨
π¦ 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