SCPNT_TO_LOOKUP_IDX(9)
π SCPNT_TO_LOOKUP_IDX π
okay so bestie, welcome to the kernel API manual β this one lives in section 9 of the man pages and honestly it's a whole little moment. It's giving "small but crucial helper function" energy, and we're gonna get into it. No cap. π
β¨ NAME β¨
SCPNT_TO_LOOKUP_IDX β literally searches for a given scmd in the ScsiLookup[] array list. that's it, that's the whole job, and she does it slayfully π¦
πΈ SYNOPSIS πΈ
int SCPNT_TO_LOOKUP_IDX (MPT_ADAPTER *ioc , struct scsi_cmnd *sc );
look at her. iconic signature. two args, returns an int. periodt. π
π§ ARGUMENTS π§
iocβ Pointer toMPT_ADAPTERstructure. it's the adapter babe, the main character of this whole situation πscβscsi_cmndpointer. the command bestie we're out here hunting for π₯
π SEE ALSO π
the kernel file ./drivers/message/fusion/mptscsih.c β which lowkey contains the whole friend group. go say hi to:
mptscsih_info_scsiio(9)mptscsih_info(9)mptscsih_qcmd(9)mptscsih_IssueTaskMgmt(9)mptscsih_abort(9)mptscsih_dev_reset(9)mptscsih_bus_reset(9)mptscsih_host_reset(9)mptscsih_taskmgmt_complete(9)mptscsih_get_scsi_lookup(9)mptscsih_getclear_scsi_lookup(9)mptscsih_set_scsi_lookup(9)mptscsih_get_completion_code(9)mptscsih_do_cmd(9)mptscsih_synchronize_cache(9)
like, that's the entire group chat right there. go read them too, iykyk π«Ά
and that's the page!! mwah π this came from ./drivers/message/fusion, dated October 2026, and yes it's still filed under SCPNT_TO_LOOKUP_IDX(9) β remember her name bestie, she's fr fr doing the most for the ScsiLookup[] array πβπ
π¦ 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