asd_post_ascb_list(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ asd_post_ascb_list(9) πŸ¦‹

okay so bestie, this is the Kernel API Manual page for asd_post_ascb_list(9), and it's literally the function that posts a list of 1 or more aSCBs to the host adapter. main character energy fr fr πŸ’…


✨ NAME ✨

asd_post_ascb_list β€” post a list of 1 or more aSCBs to the host adapter πŸŽ€

🌸 SYNOPSIS 🌸

int asd_post_ascb_list (struct asd_ha_struct *asd_ha , struct asd_ascb
*ascb , int num );

πŸŽ€ ARGUMENTS πŸŽ€

  • asd_ha β€” pointer to a host adapter structure. iconic pointer behavior, no cap.
  • ascb β€” pointer to the first aSCB in the list. it's giving "start here" 🫢
  • num β€” number of aSCBs in the list (to be posted). yes, the count matters, bestie.

πŸ’œ DESCRIPTION πŸ’œ

See the queueing comment in asd_post_escb_list. the lore is over there, iykyk ✨

Additional note on queuing: in order to minimize the ratio of memcpy to the number of ascbs sent, we try to batch-send as many ascbs as possible in one go. batch-send slay πŸ’…

Two cases are possible: A) can_queue >= num, B) can_queue < num.

  • Case A: we can send the whole batch at once. Increment "pending" in the beginning of this function, when it is checked, in order to eliminate races when this function is called by multiple processes. yes, race elimination is the vibe check πŸ”₯
  • Case B: should never happen. like, ever. lowkey do not want 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/scsi/aic94xx/aic94xx_hwi.c is the spot, and the whole squad is:


made with 🫢 from ./drivers/scsi/aic94xx, dated October 2026 β€” periodt. πŸ’–

πŸ“¦ where this page comes from