STRUCT PDS_CORE_MATCH_RECORD_DESC_CMD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct pds_core_match_record_desc_cmd(9) β€” from the Kernel API Manual, bestie πŸ’–

okay so first things first, this came out of the Kernel API Manual and it's the page for struct pds_core_match_record_desc_cmd β€” the MATCH_RECORD_DESC command. yes that's a mouthful. we're getting through it together 🫢


✨ NAME ✨

struct pds_core_match_record_desc_cmd β€” the MATCH_RECORD_DESC command. that's it, that's the whole vibe 🌸


🌈 SYNOPSIS 🌈

here's the struct, exactly as it lives, no cap:

struct pds_core_match_record_desc_cmd {
    u8 opcode;
    u8 ver;
    __le16 type;
    __le16 size;
    u8 rsvd[2];
 };

look at her. five fields, immaculate energy πŸ‘‘


πŸŽ€ Members πŸŽ€

  • opcode β€” it's PDS_CORE_CMD_MATCH_RECORD_DESC, literally the whole point of the struct πŸ’…
  • ver β€” the driver's max supported version of this command. like, how new-school your driver is πŸ¦‹
  • type β€” the PLDM Descriptor Identifier Type ✨
  • size β€” the length of the Descriptor Identifier Value πŸ“
  • rsvd β€” word boundary padding. it's just there keeping things aligned. padding is a main character too 😌

πŸ”₯ Description πŸ”₯

so the deal is: this command expects to find the Descriptor Identifier Data in cmd_regs->data. that's where the data's at, periodt 🫢

also, the driver should keep the devcmd interface locked while it's preparing and sending this command. lock it down, don't let anyone barge in mid-send, iykyk πŸ”’βœ¨


πŸ‘‘ SEE ALSO πŸ‘‘

it all lives in the Kernel file ./include/linux/pds/pds_core_if.h β€” and the full squad of friends is listed, bestie, strap in:

  • struct pds_core_drv_identity(9)
  • enum pds_core_dev_capability(9)
  • struct pds_core_dev_identity(9)
  • struct pds_core_dev_identify_cmd(9)
  • struct pds_core_dev_identify_comp(9)
  • struct pds_core_dev_reset_cmd(9)
  • struct pds_core_dev_reset_comp(9)
  • struct pds_core_dev_init_cmd(9)
  • struct pds_core_dev_init_comp(9)
  • struct pds_core_fw_download_cmd(9)
  • struct pds_core_fw_download_comp(9)
  • enum pds_core_fw_control_oper(9)
  • enum pds_core_fw_slot(9)
  • struct pds_core_fw_control_cmd(9)
  • struct pds_core_fw_control_comp(9)
  • enum pds_core_vf_link_status(9)
  • struct pds_core_vf_setattr_cmd(9)
  • struct pds_core_vf_getattr_cmd(9)
  • struct pds_core_vf_ctrl_cmd(9)
  • struct pds_core_vf_ctrl_comp(9)
  • struct pds_core_send_pkg_data_cmd(9)
  • struct pds_core_send_pkg_data_comp(9)
  • struct pds_core_component_tbl(9)
  • struct pds_core_send_component_tbl_cmd(9)
  • struct pds_core_send_component_tbl_comp(9)
  • enum pds_core_send_component_op(9)
  • struct pds_core_flash_component(9)
  • struct pds_core_send_component_cmd(9)
  • struct pds_core_send_component_comp(9)
  • enum pds_core_fw_component_type(9)
  • enum pds_core_component_info_flags(9)
  • struct pds_core_fw_component_info(9)
  • struct pds_core_component_list_info(9)
  • struct pds_core_get_component_info_cmd(9)
  • struct pds_core_get_component_info_comp(9)
  • struct pds_core_finalize_update_cmd(9)
  • struct pds_core_finalize_update_comp(9)
  • struct pds_core_match_record_desc_comp(9)
  • enum pds_core_host_mem_oper(9)
  • struct pds_core_host_mem_cmd(9)
  • struct pds_core_host_mem_comp(9)
  • struct pds_core_dev_hwstamp_regs(9)
  • struct pds_core_dev_info_regs(9)
  • struct pds_core_dev_cmd_regs(9)
  • struct pds_core_dev_regs(9)

like, that's a whole friend group and they all ate πŸ’€πŸŒΈ go read them too, fr fr.

okay that's the page!! source-wise this came from ./include/linux/pds and it's dated October 2026 β€” so yeah, from the future, slay β­πŸ§šπŸ’œ bye bestie!! πŸŽ€

πŸ“¦ where this page comes from