STRUCT PDS_LM_RESTORE_CMD(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… struct pds_lm_restore_cmd(9) โ€” the Kernel API Manual glow-up ๐ŸŽ€

okay so picture this: you're deep in the kernel API manual (yes, that one, the struct pds_lm_restore_cmd(9) page, bestie, we're literally here) and you're like "what even is the RESTORE command, and why does it have so many padding fields ๐Ÿ˜ญ". Don't worry, I got you. Sit down, hydrate, let's go ๐Ÿซถ


โœจ NAME โœจ

struct pds_lm_restore_cmd โ€” the RESTORE command. that's it, that's the whole vibe. iconic brevity ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

here's the shape of it, exact, no edits, copy-paste ready:

struct pds_lm_restore_cmd {
    u8 opcode;
    u8 rsvd;
    __le16 vf_id;
    u8 rsvd2[4];
    __le64 sgl_addr;
    __le32 num_sge;
 };

like, look at her. little opcode, little vf_id, and then a big __le64 flexing in the middle. main character energy ngl ๐Ÿ‘‘


๐Ÿฆ‹ Members ๐Ÿฆ‹

  • opcode โ€” the opcode, and it's PDS_LM_CMD_RESTORE. that's the whole personality. โœจ
  • rsvd โ€” word boundary padding. yes bestie, it's just vibes and alignment, it's doing important structural work even if it looks like it's napping ๐Ÿ˜ด
  • vf_id โ€” the VF id. ๐Ÿ’œ
  • rsvd2 โ€” more word boundary padding. she's back and she's padded. ๐ŸŽ€
  • sgl_addr โ€” the IOVA address of the SGL to dma the device state. like the little address where the state gets yeeted through DMA ๐Ÿ”ฅ
  • num_sge โ€” total number of SG elements. count 'em, no cap ๐Ÿงฎ

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

this list is long and honestly kind of iconic, so I'm giving it to you in full โ€” every single one, no cutting, no "etc." energy, periodt:

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

like... that's a lot of friends and I respect every single one of them. iykyk ๐Ÿ’€


ngl bestie, if you made it to the bottom of that SEE ALSO list, you deserve a little treat. go get a snack ๐Ÿ“

and that's the page!! source is ./include/linux/pds, dated October 2026, and the manual is the good ol' struct pds_lm_restore_cmd(9) โ€” slay, go restore some device state, ily, bye ๐Ÿ’–โœจ๐Ÿงš

๐Ÿ“ฆ where this page comes from