_scsih_check_for_pending_tm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ _scsih_check_for_pending_tm(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual πŸ’– this page is about one tiny little mpt3sas function that is honestly doing the most underrated work in the whole driver, and we're gonna walk through her together, no cap 🌸


✨ NAME ✨

_scsih_check_for_pending_tm β€” check for pending task management

it's giving "librarian checking the hold shelf" energy and honestly? obsessed 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

u8 _scsih_check_for_pending_tm (struct MPT3SAS_ADAPTER *ioc , u16 smid
);

yes the line breaks are exactly where she left them, we do not touch the formatting, periodt πŸ’…


🌈 ARGUMENTS 🌈

  • ioc β€” per adapter object πŸ’œ this is the adapter she's working on, her whole little world
  • smid β€” system request message index ✨ the number that IDs the request, iykyk

πŸ’œ DESCRIPTION πŸ’œ

so what is she actually doing?? she checks the delayed target reset list and feeds the next reqeust β€” and before you come for me: yes that's exactly how it's spelled on the page, the typo is canon, we respect it in this house 😭 (it means "request", ilysm, moving on).

like, picture a lil queue of target resets that got delayed, and she peeks at it and moves the next one along. lowkey the glue holding the retry pipeline together 🧚 no big deal, just main character energy ✨


πŸ”₯ RETURN πŸ”₯

  • 1 β€” meaning mf should be freed from _base_interrupt πŸ‘‘ so the interrupt handler takes it from here
  • 0 β€” means the mf is freed from this function 🫢 she handles it herself

so the return value is literally just "who's on cleanup duty" β€” and honestly the way she communicates that through a single u8? iconic πŸ’…


⭐ SEE ALSO ⭐

the whole mpt3sas family reunion, gathered for your convenience πŸ’– they live in the kernel file ./drivers/scsi/mpt3sas/mpt3sas_scsih.c:


that's the whole page bestie πŸ’– she lives in ./drivers/scsi/mpt3sas and this one's dated October 2026 β€” go forth and check those pending task managements, you got this πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from