STRUCT LEAPRAID_DRIVER_CMD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct leapraid_driver_cmd(9) β€” like, the Kernel API Manual page, but make it make sense

okay so bestie, welcome to the glow-up of struct leapraid_driver_cmd(9), straight out of the Kernel API Manual. this is the struct that keeps track of a driver command, and honestly? she's doing a lot. let's get into it πŸŽ€


✨ NAME ✨

struct leapraid_driver_cmd β€” the driver command tracking structure. yes, that's her whole job. tracking. she's the group chat admin of command structs πŸ’…


🌸 SYNOPSIS 🌸

struct leapraid_driver_cmd {
    struct leapraid_default_reply reply;
    struct completion done;
    u16 status;
    u16 taskid;
    u16 hp_taskid;
    u16 inter_taskid;
    u8 cb_idx;
    u8 async_scan_dev;
    struct leapraid_sense_buffer sense;
    struct mutex mutex;
    struct list_head list;
 };

like, look at her. eleven fields. all iconic, no filler πŸ¦‹


πŸ‘‘ Members πŸ‘‘

okay so here's the member-by-member vibe check, but fr fr every detail is staying:

  • reply β€” the default reply structure that gets returned by the adapter. it's giving "here's what the hardware said back" πŸ’Œ
  • done β€” the completion object, used to signal that the command is done. no cap, this is the "we're so back" notification πŸŽ‰
  • status β€” the status code the firmware returned. read it carefully, she's telling you something πŸ”₯
  • taskid β€” the unique task identifier for this command. one of a kind, main character energy ⭐
  • hp_taskid β€” the task identifier for high-priority commands. she gets to skip the line πŸ’…
  • inter_taskid β€” the task identifier for internal commands. behind-the-scenes queen, iykyk πŸ™ˆ
  • cb_idx β€” the callback index, used to identify the completion context. like a little name tag for who gets called back πŸŽ€
  • async_scan_dev β€” true if this command is for an asynchronous device scan. yes bestie, scan her 🌈
  • sense β€” the sense buffer holding error information from the device. not the fun kind of tea, the diagnostic kind 😭
  • mutex β€” the mutex that protects access to this command structure. do NOT skip the lock, i am literally begging 🫢
  • list β€” the list node for linking driver commands into lists. she's a team player, she links πŸ’–

🧚 SEE ALSO 🧚

starting with the kernel file itself: ./drivers/scsi/leapraid/leapraid_func.h β€” and then the whole extended fam:

  • struct leapraid_adapter_features(9)
  • struct leapraid_adapter_attr(9)
  • struct leapraid_io_req_tracker(9)
  • struct leapraid_task_tracker(9)
  • struct leapraid_rep_desc_maint(9)
  • struct leapraid_rep_desc_seg_maint(9)
  • struct leapraid_mem_desc(9)
  • enum LEAPRAID_CB_INDEX(9)
  • struct leapraid_default_reply(9)
  • struct leapraid_sense_buffer(9)
  • struct leapraid_driver_cmds(9)
  • struct leapraid_dynamic_task_desc(9)
  • struct leapraid_fw_evt_work(9)
  • struct leapraid_fw_evt_struct(9)
  • struct leapraid_rq(9)
  • struct leapraid_int_rq(9)
  • struct leapraid_blk_mq_poll_rq(9)
  • struct leapraid_notification_desc(9)
  • struct leapraid_overheat_desc(9)
  • struct leapraid_reset_desc(9)
  • struct leapraid_scan_dev_desc(9)
  • struct leapraid_access_ctrl(9)
  • struct leapraid_fw_log_desc(9)
  • struct leapraid_card_port(9)
  • struct leapraid_card_phy(9)
  • struct leapraid_topo_node(9)
  • struct leapraid_dev_topo(9)
  • struct leapraid_boot_dev(9)
  • struct leapraid_boot_devs(9)
  • struct leapraid_adapter(9)
  • struct leapraid_enc_node(9)
  • struct leapraid_raid_volume(9)
  • struct leapraid_starget_priv(9)
  • struct leapraid_sdev_priv(9)
  • struct leapraid_sas_dev(9)
  • struct leapraid_sas_port(9)
  • struct leapraid_vphy(9)
  • struct leapraid_tgt_rst_list(9)
  • struct sense_info(9)
  • struct leapraid_fw_log_info(9)
  • enum reset_type(9)
  • struct leapraid_card_port_feature(9)

that's the whole friend group, go say hi πŸ’œ


and that's the page, bestie! this one lives in ./drivers/scsi/leapraid, dated October 2026 β€” go read the others too, mwah πŸ’‹βœ¨πŸ«Ά

πŸ“¦ where this page comes from