STRUCT LEAPRAID_DRIVER_CMD(9)
π 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
- 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