mpi3mr_count_tgt_pending(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… mpi3mr_count_tgt_pending β€” a Kernel API Manual moment (section 9, bestie)

okay so first of all, the manual we're living in is mpi3mr_count_tgt_pending(9) β€” that's the header, that's the whole identity, and honestly? iconic. ✨


πŸŽ€ NAME πŸŽ€

mpi3mr_count_tgt_pending β€” count commands pending for target. that's it, that's the whole job, no cap 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

bool mpi3mr_count_tgt_pending (struct request *rq , void *data );

like, look at her. she takes two args and gives you back a bool. simple, clean, main character energy πŸ’…


🌸 ARGUMENTS 🌸

  • rq β€” the Block request. that's the block-layer request we're side-eyeing, periodt.
  • data β€” the SCSI target reference. this is the target we care about. the one. the only. πŸ’–

⭐ DESCRIPTION ⭐

okay so listen. this is an iterator function β€” lowercase important, highkey important β€” and it gets called for each SCSI command in a host.

and then, bestie, here's the vibe check: if the command is pending in the LLD for the specific target, then the target-specific pending I/O counter gets updated in the target structure. that's the whole move. it goes through, checks the pending-ness, and bumps the counter for that target. no drama, no extra steps, just counting. 🧚


πŸ”₯ RETURN πŸ”₯

true β€” always. literally always. true is the answer, true is the vibe, true is her final form. πŸ’€βœ¨


πŸ‘‘ SEE ALSO πŸ‘‘

also go read the kernel file ./drivers/scsi/mpi3mr/mpi3mr_os.c β€” that's home base, that's where the lore lives. πŸ“

and then, because she has friends, here's the whole group chat (all in section 9, obviously):

mpi3mr_host_tag_for_scmd(9), mpi3mr_scmd_from_host_tag(9), mpi3mr_clear_scmd_priv(9), mpi3mr_fwevt_free(9), mpi3mr_fwevt_get(9), mpi3mr_fwevt_put(9), mpi3mr_alloc_fwevt(9), mpi3mr_fwevt_add_to_list(9), mpi3mr_hdb_trigger_data_event(9), mpi3mr_fwevt_del_from_list(9), mpi3mr_dequeue_fwevt(9), mpi3mr_cancel_work(9), mpi3mr_cleanup_fwevt_list(9), mpi3mr_queue_qd_reduction_event(9), mpi3mr_invalidate_devhandles(9), mpi3mr_print_scmd(9), mpi3mr_flush_scmd(9), mpi3mr_count_dev_pending(9), mpi3mr_flush_host_io(9), mpi3mr_flush_cmds_for_unrecovered_controller(9), mpi3mr_alloc_tgtdev(9), mpi3mr_tgtdev_add_to_list(9), mpi3mr_tgtdev_del_from_list(9), __mpi3mr_get_tgtdev_by_handle(9), mpi3mr_get_tgtdev_by_handle(9), __mpi3mr_get_tgtdev_by_perst_id(9), mpi3mr_get_tgtdev_by_perst_id(9), __mpi3mr_get_tgtdev_from_tgtpriv(9), mpi3mr_set_io_divert_for_all_vd_in_tg(9),

and there's more, don't leave yet πŸ’œ:

mpi3mr_print_device_event_notice(9), mpi3mr_remove_tgtdev_from_host(9), mpi3mr_report_tgtdev_to_host(9), mpi3mr_change_queue_depth(9), mpi3mr_update_sdev(9), mpi3mr_refresh_tgtdevs(9), mpi3mr_debug_dump_devpg0(9), mpi3mr_update_tgtdev(9), mpi3mr_devstatuschg_evt_bh(9), mpi3mr_devinfochg_evt_bh(9), mpi3mr_free_enclosure_list(9), mpi3mr_enclosure_find_by_handle(9), mpi3mr_process_trigger_data_event_bh(9), mpi3mr_encldev_add_chg_evt_debug(9), mpi3mr_encldev_add_chg_evt_bh(9), mpi3mr_sastopochg_evt_debug(9), mpi3mr_sastopochg_evt_bh(9), mpi3mr_pcietopochg_evt_debug(9), mpi3mr_pcietopochg_evt_bh(9), mpi3mr_logdata_evt_bh(9), mpi3mr_update_sdev_qd(9), mpi3mr_set_qd_for_all_vd_in_tg(9), mpi3mr_fwevt_bh(9), mpi3mr_fwevt_worker(9), mpi3mr_create_tgtdev(9), mpi3mr_flush_delayed_cmd_lists(9), mpi3mr_dev_rmhs_complete_iou(9), mpi3mr_dev_rmhs_complete_tm(9), mpi3mr_dev_rmhs_send_tm(9), mpi3mr_complete_evt_ack(9), mpi3mr_send_event_ack(9), mpi3mr_pcietopochg_evt_th(9),

still going, hydrate bestie πŸ“:

mpi3mr_sastopochg_evt_th(9), mpi3mr_devstatuschg_evt_th(9), mpi3mr_preparereset_evt_th(9), mpi3mr_energypackchg_evt_th(9), mpi3mr_cablemgmt_evt_th(9), mpi3mr_add_event_wait_for_device_refresh(9), mpi3mr_os_handle_events(9), mpi3mr_setup_eedp(9), mpi3mr_build_sense_buffer(9), mpi3mr_map_eedp_error(9), mpi3mr_process_op_reply_desc(9), mpi3mr_get_chain_idx(9), mpi3mr_prepare_sg_scmd(9), mpi3mr_build_sg_scmd(9), mpi3mr_tm_response_name(9), mpi3mr_issue_tm(9), mpi3mr_bios_param(9), mpi3mr_map_queues(9), mpi3mr_get_fw_pending_ios(9), mpi3mr_print_pending_host_io(9), mpi3mr_wait_for_host_io(9), mpi3mr_setup_divert_ws(9), mpi3mr_eh_host_reset(9), mpi3mr_eh_bus_reset(9), mpi3mr_eh_target_reset(9), mpi3mr_eh_dev_reset(9), mpi3mr_eh_abort(9), mpi3mr_scan_start(9), mpi3mr_scan_finished(9), mpi3mr_sdev_destroy(9), mpi3mr_target_destroy(9),

the final stretch, you got this 🌈:

mpi3mr_sdev_configure(9), mpi3mr_sdev_init(9), mpi3mr_target_alloc(9), mpi3mr_check_return_unmap(9), mpi3mr_allow_scmd_to_fw(9), mpi3mr_qcmd(9), mpi3mr_init_drv_cmd(9), osintfc_mrioc_security_status(9), mpi3mr_probe(9), mpi3mr_remove(9), mpi3mr_shutdown(9), mpi3mr_suspend(9), mpi3mr_resume(9), mpi3mr_pcierr_error_detected(9), mpi3mr_pcierr_slot_reset(9), mpi3mr_pcierr_resume(9), mpi3mr_pcierr_mmio_enabled(9)

periodt. that's the whole crew. πŸ’…βœ¨


ngl if you read that entire SEE ALSO list out loud you deserve a snack. go get one. you've earned it πŸŽ€

okay and finally the cute little sign-off version of the footer, because she lives in ./drivers/scsi/mpi3mr, the page is dated October 2026, and her name is β€” say it with me β€” mpi3mr_count_tgt_pending(9). πŸ¦‹πŸ’– mwah.

πŸ“¦ where this page comes from