STRUCT PDS_LM_STATE_SIZE_COMP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct pds_lm_state_size_comp β€” Kernel API Manual (section 9) ✨

okay bestie, welcome to the glow-up of struct pds_...te_size_comp(9) β€” yes that's literally how the header truncates it, she's shy 🫢 β€” this is the Kernel API Manual page for the STATE_SIZE command completion. We're gonna get you fluent, no cap.


🌸 NAME 🌸

struct pds_lm_state_size_comp β€” the STATE_SIZE command completion. That's it, that's the whole vibe. πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

struct pds_lm_state_size_comp {
    u8 status;
    u8 rsvd;
    __le16 comp_index;
    union {
      __le64 size;
      u8 rsvd2[11];
    };
    u8 color;
 };

Look at her. Iconic. Structured. The union is giving main character energy ngl. πŸ¦‹


✨ Members ✨

okay so here's the member-by-member tea, and I'm keeping every last one:

  • status β€” the status of the command. She's an enum pds_core_status_code, so she comes pre-labeled. πŸ’…
  • rsvd β€” word boundary padding. Not lore, just vibes (and alignment). 🌸
  • comp_index β€” index in the desc ring for which this is the completion. Yeah, that ring. πŸ‘‘
  • {unnamed_union} β€” an anonymous union, living her unnamed truth. No name, all presence. 🧚
  • size β€” size of the device state. Literally the whole point of the struct, she ate. πŸ”₯
  • rsvd2 β€” word boundary padding, the sequel. Same energy, still padding. 🫢
  • color β€” the color bit. A single bit of pure aesthetic. 🌈
fr fr, the padding members are load-bearing β€” don't go deleting them because they "look boring". That's the word boundary, bestie. 😭

πŸ’œ SEE ALSO πŸ’œ

okay this list is LONG and I am not skipping a single one, we ride at dawn. All of these are section 9 ((9)):

First up, the source of truth:

  • Kernel file ./include/linux/pds/pds_adminq.h

Then the whole extended friend group, alphabetically-by-vibes only in spirit β€” in order for real:

  • 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_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_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)

Seventy of them. Seventy!! We did it, nobody left behind. πŸŽ‰


and that's the whole page, bestie 🌈 she lives in ./include/linux/pds and this edition is dated October 2026 β€” go read the neighbors, they're all in SEE ALSO, iykyk πŸ’œπŸŽ€

πŸ“¦ where this page comes from